Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "Template:SB Infobox Header"

From Starbase wiki
Jump to navigation Jump to search
(Added (hacky) edgeless image support)
m
Line 1: Line 1:
<includeonly><nowiki/>
<includeonly><nowiki/>
<div class="SB-Infobox-Header">
<div class="SB-Infobox-Header">
<div class="SB-Infobox-Image-Wrap" style="{{#if:{{{edgeless|}}}|padding:0;max-height:25em;||}}">{{{image|}}}
<div class="SB-Infobox-Image-Wrap {{#if:{{{edgeless|}}}|SB-Infobox-Edgeless||}}">{{{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 15: Line 15:
}}
}}
</pre>
</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>
</noinclude>

Revision as of 11:29, 29 December 2021


{{SB Infobox Header
  |image=
  |caption=
  |name=
  |subtitle=
}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.