Content deleted Content added
m Fixing link | m Adding an "Featured article" and "Featured event" type-option, preventing old featured from appearing as DOTM (instead a generic "Featured article" is now defaulted), and allowing fourth features for key events (Olympics, World Cups, World Expos) from time to time. | ||
Line 5: | Line 5: | ||
<div style="position:relative; float:{{#ifeq:{{{direction}}}|right|left|right}}; margin:-4px;"> | <div style="position:relative; float:{{#ifeq:{{{direction}}}|right|left|right}}; margin:-4px;"> | ||
{{#switch: {{lc: {{{type}}} }} | {{#switch: {{lc: {{{type}}} }} | ||
|#default| | |#default|featured=[[File:OOjs UI icon bookmark-invert.svg|frameless|32px|link=|alt=Featured article]] | ||
|event=[[File:OOjs UI icon calendar-ltr-invert.svg|frameless|32px|link=|alt=Featured event]] | |||
|dotm=[[File:Yes Check Circle white.svg|frameless|32px|link=Previous Destinations of the Month|alt=DotM]] | |||
|otbp=[[File:Right turn icon white.svg|frameless|32px|link=Previously Off the beaten path|alt=OtBP]] | |otbp=[[File:Right turn icon white.svg|frameless|32px|link=Previously Off the beaten path|alt=OtBP]] | ||
|ftt =[[File:Writing Circle white.svg|frameless|32px|link=Previous Featured travel topics|alt=FTT]] | |ftt =[[File:Writing Circle white.svg|frameless|32px|link=Previous Featured travel topics|alt=FTT]] | ||
}}</div> | }}</div> | ||
<h2 style="font-size:1.25em;">{{#switch: {{lc: {{{type}}} }} | <h2 style="font-size:1.25em;">{{#switch: {{lc: {{{type}}} }} | ||
|#default| | |#default|featured=[[{{{title|Main Page}}}|Featured article]] | ||
|event=[[{{{title|Main Page}}}|Featured event]] | |||
|dotm=[[Previous Destinations of the month|Destination of the Month]] | |||
|otbp=[[Previously Off the beaten path|Off the Beaten Path]] | |otbp=[[Previously Off the beaten path|Off the Beaten Path]] | ||
|ftt =[[Previous Featured travel topics|Featured Travel Topic]] | |ftt =[[Previous Featured travel topics|Featured Travel Topic]] |
Revision as of 21:33, 14 July 2025
![]() | This template uses TemplateStyles: |
Documentation
This template is used to generate the banners used on the Main Page.
Usage
{{banner |type=dotm |direction=left |title=Uluru-Kata Tjuta National Park |alt-title=Uluru-Kata Tjuta NP |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
Parameter | Description | Type | Default | |
---|---|---|---|---|
Type | type | The feature category that the banner promotes, and the category that gets printed onto the template.
| String | feature |
Direction | direction | Which side of the image the text box should be aligned to.
| String | right |
Title | title | Required — The name of the featured article.
| String | Main Page |
Alternate title | alt-title | The name of the featured article that gets printed onto the template. To be used when the default title is exceptionally long. "National Park" and "International" should be abbreviated to "NP" and "Int." respectively.
| String | Optional |
Width | width | The width of the text box as a percentage of the template's full width. Modifying this percentage should not be done unless strictly necessary, to uphold a consistent appearance. | Percentage between 40 and 60% | 45% |
Image | image | Required — The banner image without its "File:" prefix.
| File | Placeholder image |
Quote | quote | Required — The text blurb describing the article.
| String | Placeholder blurb |