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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><nowiki/>
<includeonly><nowiki/>
<div class="SB-Infobox-Header">
<div class="SB-Infobox-Header {{#if:{{{edgeless|}}}|SB-Infobox-Edgeless||}}">
<div class="SB-Infobox-Image-Wrap" style="{{#if:{{{edgeless|}}}|padding:0;max-height:25em;||}}">{{{image|}}}
<div class="SB-Infobox-Image-Wrap">{{{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>

Latest revision as of 10:00, 30 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.