Module:Infobox Item: Difference between revisions

Jump to navigation Jump to search
263 bytes added ,  13:08, 1 April 2022
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
{ name = 'tool_type', func = 'has_content' },
{ name = 'tool_type', func = 'has_content' },
{ name = 'skill_level', func = 'has_content' },
}
}


Line 295: Line 296:
end
end
--[[
--[[
Add rows for weapon stuff
Add rows for tool stuff
]]
]]


if ret:paramDefined('tool_type') then
if ret:paramDefined('tool_type') and string.lower(ret:paramRead('tool_type')) == "fishing rod" then
ret:pad(20)
ret:pad(20)
:addRow{
:addRow{
{ tag = 'th', content = 'Tool', class = 'infobox-subheader', colspan = '20' },
{ tag = 'th', content = 'Fishing rod', class = 'infobox-subheader', colspan = '20' },
}
}
:pad(20)
:pad(20)
Line 308: Line 309:
{ tag = 'th', content = 'Type', colspan = '7' },
{ tag = 'th', content = 'Type', colspan = '7' },
{ tag = 'argd', content = 'tool_type', colspan = '13' },
{ tag = 'argd', content = 'tool_type', colspan = '13' },
}
:pad(20)
:addRow{
{ tag = 'th', content = 'Skill Level', colspan = '7' },
{ tag = 'argd', content = 'skill_level', colspan = '13' },
}
}
end
end

Navigation menu