Module:Flags: Difference between revisions

Content deleted Content added
Doh, no need for 2 & 3 letter code flags to enter the loop for fullName search.
Removing obsolete code and sorting border exception conditional
Line 48:
end
end
 
-- In the absence of translation for an existing entry, links to the english/original name --
if commonsName ~= nil and link == '' then
link = commonsName
end
-- Fallback to Commons when the parameter doesn't have an entry in the table.
Line 58 ⟶ 53:
commonsName = territory.args[1]
link = territory.args[1]
end
-- Border for everybody except Nepal and Ohio
if commonsName == "Nepal" or commonsName == "Ohio" then
border = ""
else
border = "border|"
end
 
Line 85 ⟶ 73:
commonsName = "Flag of None"
end
 
-- Border for everybody except Nepal and Ohio
if commonsName ~== nil"Nepal" andor linkcommonsName == ''"Ohio" then
linkborder = commonsName""
endelse
border = "border|"
end
 
 
-- Size of flag --