Module:CRTModel: Difference between revisions

No edit summary
Tags: Reverted Mobile edit Mobile web edit
No edit summary
Tags: Manual revert Mobile edit Mobile web edit
Line 196: Line 196:
addSectionRow(tbl, 'Standards')
addSectionRow(tbl, 'Standards')
addFullRow(tbl, standards_semantic, 'padding:0.2em 0.4em;', false)
addFullRow(tbl, standards_semantic, 'padding:0.2em 0.4em;', false)
end
-- Photos section: display gallery if images parameter exists
local images = trim(args.images)
if images then
addSectionRow(tbl, 'Photos')
-- Invoke EveryCRTImages gallery module
local galleryWikitext = '{{#invoke:EveryCRTImages|gallery|images=' .. images .. '|mode=packed|heights=160}}'
local galleryHtml = frame:preprocess(galleryWikitext)
addFullRow(tbl, galleryHtml, 'padding:0;', true)
end
end


MediaWiki Appliance - Powered by TurnKey Linux