Content deleted Content added
BrandonXLF (talk | contribs) Undid revision 1052916985 by BrandonXLF (talk) |
BrandonXLF (talk | contribs) No edit summary |
||
Line 5:
function getImage(frame, image)
if
_, image = string.match(image,"(.-)%+(.-)")
end
Line 24:
function getCountry(country)
if string.match(country,".-%+.-") then
country, _ = string.match(image,"(.-)%+(.-)")
end
local title = mw.title.new(country)
Line 39 ⟶ 43:
local i = 1
while args[i +
image = getImage(frame, args[i])
table.insert(entries, {
image = image,
country = getCountry(args[i
post = args[i +
})
Line 52 ⟶ 56:
end
i = i +
end
|