Module:ISO 3166/sandbox: Difference between revisions

Content deleted Content added
simplify
simplify
Line 144:
if code1 == "" then
mw.addWarning((args[1] ~= "" and ('Invalid parameter "' .. args[1] .. '"') or 'No parameter') ..
if args[1] ~= "" then
mw.addWarning('Invalid parameterfor "'the ..country args[1] .. '"given ([[Module:ISO 3166]]).')
else
mw.addWarning('No parameter for the country given ([[Module:ISO 3166]]).')
end
return cats('nocountry', args), '<span style="font-size:100%" class="error">"No parameter for the country given"</span>'
end