Module:CRTModel: Difference between revisions

Add type badge below infobox title showing crt_type (e.g. TV, Monitor) for visual differentiation (via update-page on MediaWiki MCP Server)
Change type badge to breadcrumb style: CRT model › [type] (via update-page on MediaWiki MCP Server)
Line 298: Line 298:
)
)


-- Type badge
-- Type badge (breadcrumb)
addFullRow(container, crt_type or 'CRT', '', false, 'infobox-type-badge')
local badgeWikitext = '[[:Category:CRT models|CRT model]]'
if crt_type then
badgeWikitext = badgeWikitext .. ' › ' .. crt_type
end
addFullRow(container, badgeWikitext, '', false, 'infobox-type-badge')


if image_main then
if image_main then
MediaWiki Appliance - Powered by TurnKey Linux