Module:T-Person: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 86: Line 86:
     if ElementPortraitCarousel then
     if ElementPortraitCarousel then
         Blueprint.registerElement(ElementPortraitCarousel.elementName, ElementPortraitCarousel)
         Blueprint.registerElement(ElementPortraitCarousel.elementName, ElementPortraitCarousel)
         Blueprint.addElementToTemplate(template, 'portraitCarousel')
       
        -- Add the element with a custom wrapper that creates a separate table row
         Blueprint.addElementToTemplate(template, 'portraitCarousel', {
            wrapperTemplate = '|-\n| colspan="2" class="person-portrait-row" |%s'
        })
     end
     end
end
end