Module:Part: Difference between revisions

Refactor Compatible CRT Models and Compatible AV Devices to use group-by-type label/value rows instead of full wikitables (via update-page on MediaWiki MCP Server)
Add type badge below infobox title showing part_type (and subtype if present) for visual differentiation (via update-page on MediaWiki MCP Server)
Line 111: Line 111:
'infobox-title'
'infobox-title'
)
)
-- Type badge
local badgeText = part_type or 'Part'
if part_subtype then
badgeText = part_subtype .. ' ' .. badgeText
end
addFullRow(container, badgeText, '', false, 'infobox-type-badge')


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