1,131
edits
No edit summary |
No edit summary |
||
| Line 335: | Line 335: | ||
if ret:paramDefined('tool_type') and string.lower(ret:param('tool_type', 'd')) == "fishing rod" then | if ret:paramDefined('tool_type') and string.lower(ret:param('tool_type', 'd')) == "fishing rod" then | ||
ret | addToolRows(ret, 'Fishing Rod') | ||
end | |||
if ret:paramDefined('tool_type') and string.lower(ret:param('tool_type', 'd')) == "pickaxe" then | |||
addToolRows(ret, 'Pickaxe') | |||
end | |||
if ret:paramDefined('tool_type') and string.lower(ret:param('tool_type', 'd')) == "axe" then | |||
addToolRows(ret, 'Axe') | |||
end | |||
if ret:paramDefined('tool_type') and string.lower(ret:param('tool_type', 'd')) == "shears" then | |||
addToolRows(ret, 'Shears') | |||
end | end | ||
| Line 378: | Line 370: | ||
--[[ | --[[ | ||
Add rows for necklace stuff | Add rows for necklace stuff | ||
]] | ]] | ||
| Line 448: | Line 436: | ||
return ret:tostring() | return ret:tostring() | ||
end | |||
function addToolRows(ret, title) | |||
ret:pad(20) | |||
:addRow{ | |||
{ tag = 'th', content = title, class = 'infobox-subheader', colspan = '20' }, | |||
} | |||
:pad(20) | |||
:addRow{ | |||
{ tag = 'th', content = 'Type', colspan = '7' }, | |||
{ tag = 'argd', content = 'tool_type', colspan = '13' }, | |||
} | |||
:pad(20) | |||
:addRow{ | |||
{ tag = 'th', content = 'Skill Level', colspan = '7' }, | |||
{ tag = 'argd', content = 'skill_level', colspan = '13' }, | |||
} | |||
if ret:paramDefined('tool_effect') then | |||
ret:pad(20) | |||
:addRow{ | |||
{ tag = 'th', content = 'Tool Effect', colspan = '7' }, | |||
{ tag = 'argd', content = 'tool_effect', colspan = '13' }, | |||
} | |||
end | |||
end | end | ||