Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(Replaced content with "local p = {} function p.main() return end return p") Tag: Replaced |
||
(52 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
p = {} |
local p = {} |
||
function p.main() |
function p.main() |
||
⚫ | |||
local weaponsStone = { |
|||
'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 weaponsMetal = { |
|||
'Rapier ', |
|||
'Throwing Twinblades', |
|||
'Metal Kite Shield', |
|||
'Flanged Mace', |
|||
'Throwing Rings', |
|||
'Shortsword', |
|||
'Metal Javelins', |
|||
'Metal Heater Shield', |
|||
'Longsword', |
|||
'Throwing Knives', |
|||
'Broadsword', |
|||
'Metal Buckler', |
|||
'Throwing Axes', |
|||
'Battleaxe', |
|||
'Metal Bow'} |
|||
local weaponsBone = { |
|||
'Truncheon', |
|||
'Blowpipe', |
|||
'Wooden Round Shield', |
|||
'Cudgel', |
|||
'Javelins', |
|||
'Club', |
|||
'Light Crossbow', |
|||
'Wooden Square Shield', |
|||
'Quarterstaff', |
|||
'Recurve Bow', |
|||
'Spear', |
|||
'Wooden Hexagon Shield', |
|||
'Longbow', |
|||
'Poleaxe', |
|||
'Heavy Crossbow'} |
|||
local out = mw.html.create('table') |
|||
:addClass('wikitable sortable') |
|||
:tag('tr') |
|||
:tag('th') |
|||
:wikitext('Stone') |
|||
:done() |
|||
:tag('th') |
|||
:wikitext('Metal') |
|||
:done() |
|||
:tag('th') |
|||
:wikitext('Bone') |
|||
:done() |
|||
:done() |
|||
for i,item in ipairs(weaponsStone) do |
|||
local row = out:tag('tr') |
|||
:tag('td') |
|||
:wikitext('[[' .. weaponsStone[i] .. ']]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[' .. weaponsMetal[i] .. ']]') |
|||
:done() |
|||
:tag('td') |
|||
:wikitext('[[' .. weaponsBone[i] .. ']]') |
|||
:done() |
|||
:done() |
|||
end |
|||
⚫ | |||
end |
end |
Latest revision as of 12:51, 6 January 2025
Module documentation
This documentation is transcluded from Module:Sandbox/User:Alsang/doc. [edit] [history] [purge]
This module does not have any documentation. Please consider adding documentation at Module:Sandbox/User:Alsang/doc. [edit]
Module:Sandbox/User:Alsang's function main is invoked by Template:Sandbox/User:Alsang.