Module:AUAssembly: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
function p.table( frame ) | function p.table( frame ) | ||
text = "{| class='wikitable' style='text-align:left;'\n|+ List of MPs in the AU Assembly\n| colspan='12' style='text-align:center' |[[File:AU Assembly.png| | text = "{| class='wikitable' style='text-align:left;'\n|+ List of MPs in the AU Assembly\n| colspan='12' style='text-align:center' |[[File:AU Assembly.png|540px]]\n|-" | ||
table. | table. Sort(players) | ||
for i, v in ipairs(players) do | for i, v in ipairs(players) do | ||
text = text.."\n| "..v | text = text.."\n|{PlayerIMG|"..v.."|small}} [[Aurora:"..v.."|"..v.."]]" | ||
end | end | ||
text = text.."\n|}" | text = text.."\n|}" |
Revision as of 19:00, 7 October 2023
Documentation for this module may be created at Module:AUAssembly/doc
local p = {} --p stands for package
local players = {"iUpgrade","Dools2"}
local text = ""
function p.table( frame )
text = "{| class='wikitable' style='text-align:left;'\n|+ List of MPs in the AU Assembly\n| colspan='12' style='text-align:center' |[[File:AU Assembly.png|540px]]\n|-"
table. Sort(players)
for i, v in ipairs(players) do
text = text.."\n|{PlayerIMG|"..v.."|small}} [[Aurora:"..v.."|"..v.."]]"
end
text = text.."\n|}"
return text
end
return p