Module:CRTModel: Difference between revisions

Add variants display to infobox (via update-page on MediaWiki MCP Server)
Add form_factor and built_in_devices display to infobox (via update-page on MediaWiki MCP Server)
Line 74: Line 74:
local model_3d = trim(args.model_3d)
local model_3d = trim(args.model_3d)
local crt_type = trim(args.crt_type)
local crt_type = trim(args.crt_type)
local form_factor = trim(args.form_factor)
local built_in_devices = trim(args.built_in_devices)
local screen_size_in = trim(args.screen_size_in)
local screen_size_in = trim(args.screen_size_in)
local aspect_ratio = trim(args.aspect_ratio)
local aspect_ratio = trim(args.aspect_ratio)
Line 160: Line 162:
addRow(container, 'Type', crt_type, false)
addRow(container, 'Type', crt_type, false)
end
end
-- Form factor row (only show if not "Standard")
if form_factor and form_factor ~= 'Standard' then
addRow(container, 'Form factor', form_factor, false)
end
-- Built-in devices row
if built_in_devices then
addRow(container, 'Built-in', built_in_devices, false)
end
if screen_size_in then
if screen_size_in then
addRow(container, 'Screen size', screen_size_in .. '″', false)
addRow(container, 'Screen size', screen_size_in .. '″', false)
MediaWiki Appliance - Powered by TurnKey Linux