Module:Sandbox/BrandonXLF/3: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 5:
 
function getImage(frame, image)
if string.match(image, ".-%+.-") then
_, image = string.match(image, "(.-)%+(.-)")
end
 
local file = nil
 
if string.match(image, "(.-)%.(.*)") then
file = frame:expandTemplate{title = "flagicon image", args = {image}}
elseif string.match(image, ".-%s%(.-%)") then
Line 24:
 
function getCountry(country)
if string.match(country, ".-%+.-") then
country, _ = string.match(imagecountry, "(.-)%+(.-)")
end