Difference between revisions of "Template:SB Infobox Header"
Jump to navigation
Jump to search
m |
m |
||
Line 6: | Line 6: | ||
{{#if:{{{suppressName|}}}||<div class="SB-Infobox-Name">{{#if:{{{name|}}}|{{{name}}}|{{SUBPAGENAME}}}}{{#if:{{{subtitle|}}}|<div style="font-size:0.8em">{{{subtitle}}}</div>}}</div>}} | {{#if:{{{suppressName|}}}||<div class="SB-Infobox-Name">{{#if:{{{name|}}}|{{{name}}}|{{SUBPAGENAME}}}}{{#if:{{{subtitle|}}}|<div style="font-size:0.8em">{{{subtitle}}}</div>}}</div>}} | ||
{{#ifeq:{{{border|}}}|none|{{#css:.SB-Infobox-Image-Wrap img { outline:none!important; } }}|}}</includeonly> | {{#ifeq:{{{border|}}}|none|{{#css:.SB-Infobox-Image-Wrap img { outline:none!important; } }}|}}</includeonly> | ||
<noinclude><pre> | |||
{{SB Infobox Header | |||
|image= | |||
|previewImage= | |||
|caption= | |||
|name= | |||
|subtitle= | |||
</pre> | |||
The header template includes a parameter called ''previewImage'', which can be used in conjunction with the [[Module:Transcluder|Transcluder]] to transclude an infobox with a lighter-weight image to make loading quicker. | |||
</noinclude> |
Revision as of 12:46, 24 June 2021
{{SB Infobox Header |image= |previewImage= |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.