Difference between revisions of "Template:SB Infobox Header"
Jump to navigation
Jump to search
m |
(Added (hacky) edgeless image support) |
||
Line 1: | Line 1: | ||
<includeonly><nowiki/> | <includeonly><nowiki/> | ||
<div class="SB-Infobox-Header"> | <div class="SB-Infobox-Header"> | ||
<div class="SB-Infobox-Image-Wrap">{{{image|}}} | <div class="SB-Infobox-Image-Wrap" style="{{#if:{{{edgeless|}}}|padding:0;max-height:25em;||}}">{{{image|}}} | ||
<div class="SB-Infobox-Faction-Logo">{{{factionLogo|}}}</div> | <div class="SB-Infobox-Faction-Logo">{{{factionLogo|}}}</div> | ||
</div><span class="SB-Infobox-Header-Caption">{{{caption|}}}</span></div> | </div><span class="SB-Infobox-Header-Caption">{{{caption|}}}</span></div> | ||
Line 10: | Line 10: | ||
{{SB Infobox Header | {{SB Infobox Header | ||
|image= | |image= | ||
|caption= | |caption= | ||
|name= | |name= |
Revision as of 09:03, 29 December 2021
{{SB Infobox Header |image= |caption= |name= |subtitle= }}
The header template includes a parameter called previewImage, which can be used in conjunction with the Transcluder to transclude an infobox with a lighter-weight image to make loading quicker.