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, accessory_type or 'Accessory', '', false, 'infobox-type-badge')
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
MediaWiki Appliance - Powered by TurnKey Linux