Zum Inhalt springen

Modul:Wikidata utilities: Unterschied zwischen den Versionen

K
Korrektur
(+ module administration, getValuesWithQualifiers modified)
K (Korrektur)
Zeile 353: Zeile 353:
end
end


-- similar function like Modul:Failsafe
function wu._failsafe( version, moduleInterface )
function wu._failsafe( version, moduleInterface )
if type( moduleInterface ) ~= 'table' then
if type( moduleInterface ) ~= 'table' then
Zeile 370: Zeile 371:
end
end
version = v
version = v
-- otherwise version should be a string
end
elseif type( version ) == 'string' then
-- version should be a string
if type( version ) == 'string' then
-- check if empty string
-- check if empty string
version = mw.text.trim( version )
version = mw.text.trim( version )
Anonymer Benutzer