Module:Accessory: Difference between revisions
Add type badge below infobox title showing accessory_type for visual differentiation (via update-page on MediaWiki MCP Server) |
Change type badge to breadcrumb style: Accessory › [accessory_type] (via update-page on MediaWiki MCP Server) |
||
| Line 102: | Line 102: | ||
) | ) | ||
-- Type badge | -- Type badge (breadcrumb) | ||
addFullRow(container, | local badgeWikitext = '[[:Category:Accessories|Accessory]]' | ||
if accessory_type then | |||
badgeWikitext = badgeWikitext .. ' › ' .. accessory_type | |||
end | |||
addFullRow(container, badgeWikitext, '', false, 'infobox-type-badge') | |||
if image_main then | if image_main then | ||