Module:Sandbox/User:Alsang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 4: Line 4:
local variants = {'Basic','Moderate','Fine','Strong','Superior','Perfect'}
local variants = {'Basic','Moderate','Fine','Strong','Superior','Perfect'}
local weapons = {'Hammerfist','Throwing Stones','Stone Slab Shield',
'Stone Mace','Stone Discs','War Hammer',
'Bolas','Stone Chunk Shield','Double Headed Hammer',
'Throwing Clubs','Great Stone Mace',' Polished Stone Shield',
'Throwing Hammers','Great Hammer','Sling'}
local weapons = {'Hammerfist','Throwing Stones','Stone Slab Shield',
'Stone Mace','Stone Discs','War Hammer',
'Bolas','Stone Chunk Shield','Double Headed Hammer',
'Throwing Clubs','Great Stone Mace',' Polished Stone Shield',
'Throwing Hammers','Great Hammer','Sling'}
local weapons = {'Hammerfist','Throwing Stones','Stone Slab Shield',
local weapons = {'Hammerfist','Throwing Stones','Stone Slab Shield',
'Stone Mace','Stone Discs','War Hammer',
'Stone Mace','Stone Discs','War Hammer',
Line 13: Line 23:
for i,item in ipairs(variants) do
for i,item in ipairs(variants) do
for j,jtem in ipairs(weapons) do
for j,jtem in ipairs(weapons) do
table.insert(allWeapons,{pagename='[[' .. jtem .. ' (' .. item .. ')]]'})
table.insert(allWeapons,{pagename='[[' .. jtem .. ' (' .. item .. ')]]',wrongname='[[' .. item .. ' ' .. jtem .. ')]]'})
end
end
end
end
Line 164: Line 174:
:tag('tr')
:tag('tr')
:tag('th')
:tag('th')
:wikitext('Page')
:wikitext('Page name')
:done()
:tag('th')
:wikitext('Wrong page name')
:done()
:done()
:tag('th')
:tag('th')
Line 193: Line 206:
:tag('td')
:tag('td')
:wikitext(item.pagename)
:wikitext(item.pagename)
:done()
:tag('td')
:wikitext(item.wrongname)
:done()
:done()
:tag('td')
:tag('td')