Template:Banner: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="banner-image <!--nomobile--> js-proportonal-resize"> | <div class="banner-image <!--nomobile--> js-proportonal-resize"> | ||
<div class="mainpage-shadowbox banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}}> | <div class="mainpage-shadowbox banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}}> | ||
<h3>{{{title}}}</h3> | <h3>{{{title}}}</h3> | ||
<div class="quote">{{{quote}}}</div> | <div class="quote">{{{quote}}}</div> | ||
</div>[[File:{{{image}}}|frameless|1700px | </div> | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|1700px]]}} | |||
</div> | |||
<!-- Mobile-only section (optional, can be kept or removed) --> | |||
<!--<div id="mf-section-{{{section-id}}}" class="mf-mobile-only"> | <!--<div id="mf-section-{{{section-id}}}" class="mf-mobile-only"> | ||
'''{{{title}}}'''<br>{{{quote}}} | '''{{{title}}}'''<br>{{{quote}}} | ||
</div>--> | </div>--> | ||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 00:29, 25 October 2024
The template description below will not be displayed when the template is placed.
Template:
─ Template/doc: Documentation
This template is used to generate the banners used on the Main Page.
Usage
{{banner |direction=left |width=60% |title=Uluru-Kata Tjuta National Park |section=Destination of the Month |section-link=Previous Destinations of the month |image=UluruKataTjutaBanner3.jpg |quote=Home of the awesome stone monolith formerly known as Ayers Rock, a key player in the Aboriginal creation myth and one of Australia's best-known national symbols. }}
Parameters:
- direction - determines which side of the banner the text should be aligned. Valid values are "left" or "right".
- width - (optional) allows the CSS width property to be overridden if, for example, the banner has a long title. Sample values should be of the form "45%".
- title - Page title for the banner.
- section - Sub-section for the banner, usually "Destination of the Month", "Off the Beaten Path" or "Featured Travel Topic".
- section-link - Link subject for the sub-section, usually "Previous Destinations of the month", "Previously Off the beaten path" or "Previous Featured travel topics".
- image - The banner image, without the File: prefix. Example: "MohenjoDaroBanner1.jpg".
- quote - 1-2 sentences of text to appear below the banner sub-section.