Template:HeroHeader: Difference between revisions

From The Largs to Largs Grand Tour
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
;Purpose
:Provides a clean, Vector-friendly hero banner for the Main Page (or other hub pages), without requiring custom CSS.


;Usage
;Usage
:<nowiki>{{HeroHeader|image=|alt=|caption=|link=|width=}}</nowiki>
:<nowiki>{{HeroHeader|image=|alt=|caption=|link=|width=|imgwidth=}}</nowiki>


;Parameters
;Parameters
:* <code>image</code> — File name only (e.g. <code>1918_camel_caravan.jpg</code>)
:* image — File name only (e.g. 1918_camel_caravan.jpg)
:* <code>alt</code> — Alternative text (short)
:* alt — Alternative text
:* <code>caption</code> — Optional caption (short)
:* caption — Optional caption
:* <code>link</code> — Optional link target (defaults to empty / no link)
:* link — Optional link target
:* <code>width</code> Optional container width (defaults to <code>1200px</code>; use <code>100%</code> for full-width)
:* width — Container width (default 1200px; use 100% for full width)
:* imgwidth — Rendered image width (default 1600px). Must be px, not %.
</noinclude>
</noinclude>


Line 30: Line 28:


<div style="padding:0; margin:0; line-height:0; text-align:center;">
<div style="padding:0; margin:0; line-height:0; text-align:center;">
[[File:{{{image|}}}|center|frameless|alt={{{alt|}}}|link={{{link|}}}]]
[[File:{{{image|}}}|{{{imgwidth|1600px}}}|center|frameless|alt={{{alt|}}}|link={{{link|}}}]]
</div>
</div>



Revision as of 04:19, 15 January 2026

Usage
{{HeroHeader|image=|alt=|caption=|link=|width=|imgwidth=}}
Parameters
  • image — File name only (e.g. 1918_camel_caravan.jpg)
  • alt — Alternative text
  • caption — Optional caption
  • link — Optional link target
  • width — Container width (default 1200px; use 100% for full width)
  • imgwidth — Rendered image width (default 1600px). Must be px, not %.