Spring til indhold

Modul:Ikke-hvis-ens

Page extended-protected
Fra Wikipedia, den frie encyklopædi

require("Modul:No globals")
return {
	entry = function(frame)
		local args = (mw.getCurrentFrame()) and frame:getParent().args or frame.args

		local tekst = args.tekst or ''
		if #tekst == 0 then
			return ''
		end

		local tekst2 = args.tekst2 or ''
		if #tekst2 == 0 then
			return tekst
		end
		
		local postfiks = args.postfiks or ''
		local end_of_tekst
		if #postfiks ~= 0 then
			end_of_tekst = string.find(tekst, postfiks, 1, true)
			if end_of_tekst then
				end_of_tekst = end_of_tekst - 1
			end
		end
		if string.sub(tekst, 1, end_of_tekst) == tekst2 then
			return ''
		end
		return tekst .. (args['ekstra-hvis-ulig'] or '')
	end
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy