Modul:Common: Unterschied zwischen den Versionen

+ isTrue()
(- mw.log)
(+ isTrue())
Zeile 216: Zeile 216:
function p.fullpagename()
function p.fullpagename()
return tostring(mw.title.getCurrentTitle())
return tostring(mw.title.getCurrentTitle())
end
function p.isTrue(s)
local result = false
if not p.isEmpty(s) then
if type(s) == "number" then
result = s
else
result = ( s == "Ja" or s == "ja" or s == "Wahr" or s == "wahr" or s == "true" or s == "1" )
end
end
return result
end
end


return p
return p