Module:CRTModel: Difference between revisions

No edit summary
No edit summary
Line 81: Line 81:
css(tbl, 'float:right; clear:right; margin:0 0 1em 1em; width:22em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; font-size:88%; line-height:1.5em;')
css(tbl, 'float:right; clear:right; margin:0 0 1em 1em; width:22em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; font-size:88%; line-height:1.5em;')


local caption = tbl:tag('caption')
-- Title row (no background color, centered, bold)
css(caption, 'text-align:center; font-size:125%; font-weight:bold; padding:0.5em;')
addFullRow(
caption:wikitext((brand or '') .. ' ' .. (model_code or ''))
tbl,
(brand or '') .. ' ' .. (model_code or ''),
'text-align:center; font-size:125%; font-weight:bold; padding:0.5em;',
false
)


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