Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
595 bytes added ,  13:01, 1 April 2022
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
-- * Text on drop
-- * Text on drop
-- * Equipable
-- * Equipable
-- * Automatic categories with semantic mediawiki
-- * Tool info (skill levels etc)
--
--
------------------------
------------------------
Line 64: Line 64:


{ name = 'damage', func = 'has_content' },
{ name = 'damage', func = 'has_content' },
-- Tool Params --
{ name = 'tool_type', func = 'has_content' },
}
}


Line 288: Line 292:
{ tag = 'th', content = 'Damage', colspan = '7' },
{ tag = 'th', content = 'Damage', colspan = '7' },
{ tag = 'argd', content = 'damage', colspan = '13' },
{ tag = 'argd', content = 'damage', colspan = '13' },
}
end
--[[
Add rows for weapon stuff
]]
if ret:paramDefined('tool_type') then
ret:pad(20)
:addRow{
{ tag = 'th', content = 'Tool', class = 'infobox-subheader', colspan = '20' },
}
:pad(20)
:addRow{
{ tag = 'th', content = 'Type', colspan = '7' },
{ tag = 'argd', content = 'tool_type', colspan = '13' },
}
}
end
end
Line 362: Line 382:
['weapon'] = 'Weapons',
['weapon'] = 'Weapons',
},
},
tool_type = {
['fishing_rod'] = 'Fishing Rods',
['rod'] = 'Fishing Rods',
['fishingRod'] = 'Fishing Rods',
['axe'] = 'Axes',
['pickaxe'] = 'Pickaxes',
['shears'] = 'Shears',
}
}
}
}
}

Navigation menu