Module:Flags: Difference between revisions

Content deleted Content added
Changing order of parameters in order to allow multiple keys e.g. GB UK pointing to a same flag value
Doh, no need for 2 & 3 letter code flags to enter the loop for fullName search.
Line 34:
-- Searching in FlagTranslations, then in FlagMaster
-- Full name search
if commonsName == nil then
flagTables = { translations.fullName, master.fullName, }
for k,v in ipairs(flagTables) do
for flagParameter,commonsFile in pairs(v) do
if flagParameter == territory.args[1] then
commonsName = commonsFile
link = flagParameter
elseif commonsFile == territory.args[1] then
commonsName = commonsFile
link = flagParameter
end
end
end
end
 
-- In the absence of translation for an existing entry, links to the english/original name --