Template:Banner: Difference between revisions

From Equinox Wiki
Created page with "<templatestyles src="Banner/styles.css"/><div class="banner-image nomobile"> <div class="banner-box banner-box-{{{direction}}}"> <div class="name">{{{title}}}</div> <div class="type">{{{section}}}</div> </div>[[File:{{{image}}}|frameless|1700px|link=]]</div><noinclude> {{Uses TemplateStyles|Template:Banner/styles.css}} Template for MediaWiki/Homepage redesign. See also Template:Full-width image. <templatedata> { "params": { "direction": {}, "title": { "t..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Banner/styles.css"/><div class="banner-image nomobile">
<templatestyles src="Banner/styles.css"/>
<div class="banner-box banner-box-{{{direction}}}">
<div class="banner-image js-proportonal-resize notheme">
<div class="name">{{{title}}}</div>
[[File:Interactive icon.svg|frameless|link=|class=nolink interactiveIcon]]
<div class="type">{{{section}}}</div>
<div class="mainpage-shadowbox notheme banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}}>
</div>[[File:{{{image}}}|frameless|1700px|link=]]</div><noinclude>
<h2>[[{{{title}}}|{{{alt-title|{{{title}}}}}}]]</h2>
{{Uses TemplateStyles|Template:Banner/styles.css}}
<h3>[[{{{section-link}}}|{{{section}}}]]</h3>
Template for [[MediaWiki/Homepage redesign]].
<div class="quote">[[{{{title}}}|{{{quote}}}]]</div>
See also [[Template:Full-width image]].
</div>
 
[[File:{{{image}}}|frameless|1700px|link=|{{{title}}}|class=nolink]]
<templatedata>
[[File:{{{image}}}|frameless|1700px|link={{{title}}}|{{{title}}}]]</div>
{
<!-- -->
"params": {
<noinclude>
"direction": {},
{{documentation}}
"title": {
"type": "string",
"required": true
},
"section": {},
"image": {
"description": "Image name, without the File: prefix",
"example": "Example.png",
"required": true,
"type": "wiki-file-name"
},
"section-id": {}
},
"description": "Template for full-width images with inset text.",
"paramOrder": [
"image",
"title",
"section",
"direction",
"section-id"
]
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 14:39, 17 December 2024

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.