Template:HeroHeader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
;Usage | ;Usage | ||
:<nowiki>{{HeroHeader|image=|alt=|caption=|link=| | :<nowiki>{{HeroHeader|image=|alt=|caption=|link=|imgwidth=}}</nowiki> | ||
;Parameters | ;Parameters | ||
:* | :* image — File name only (e.g. 1918_camel_caravan.jpg) | ||
:* | :* alt — Alternative text | ||
:* | :* caption — Optional caption | ||
:* | :* link — Optional link target | ||
:* | :* imgwidth — Source image width to request (default 2000px). Larger = higher quality. | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<div style=" | <div style=" | ||
margin:0 0 1.0em 0; | margin:0 0 1.0em 0; | ||
padding: | padding:4px; | ||
border:1px solid #c8ccd1; | border:1px solid #c8ccd1; | ||
background:#f8f9fa; | background:#f8f9fa; | ||
width: | width:100%; | ||
max-width:100%; | max-width:100%; | ||
box-sizing:border-box; | box-sizing:border-box; | ||
"> | "> | ||
<div class="hero-header-image" style="padding:0; margin:0; line-height:0;"> | |||
<div style="padding:0; margin:0; line-height:0 | [[File:{{{image|}}}|{{{imgwidth|2000px}}}|frameless|class=hero-img|alt={{{alt|}}}|link={{{link|}}}]] | ||
[[File:{{{image|}}}| | |||
</div> | </div> | ||
{{#if:{{{caption|}}}| | {{#if:{{{caption|}}}| | ||
<div style="padding:0.35em 0.6em; font-size:90%; line-height:1.35; color:#202122;"> | <div style="padding:0.35em 0.6em; font-size:90%; line-height:1.35; color:#202122;"> | ||
Latest revision as of 04:46, 15 January 2026
- Usage
- {{HeroHeader|image=|alt=|caption=|link=|imgwidth=}}
- Parameters
-
- image — File name only (e.g. 1918_camel_caravan.jpg)
- alt — Alternative text
- caption — Optional caption
- link — Optional link target
- imgwidth — Source image width to request (default 2000px). Larger = higher quality.