Difference between revisions of "Template:Banner/doc"

From MansunWiki
Jump to: navigation, search
(Created page with "{{Documentation subpage}} ==Documentation== This template is used to generate the banners used on the Main Page. == Usage == <pre style="white-space:pre-wrap"> {{banner...")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
==Documentation==
 
==Documentation==
This template is used to generate the banners used on the [[Main Page]].
+
This template is used to generate the banners used on the [[MansunWiki]], [[Mansun News|News]] and [[Spooky Action At A Distance|Spooky Action]] pages.
  
 
== Usage ==
 
== Usage ==
Line 10: Line 10:
 
|width=75%
 
|width=75%
 
|title=MansunWiki
 
|title=MansunWiki
|section=Destination of the Month
+
|section=
|section-link=Previous Destinations of the month
+
|section-link=
 
|image=Banner3.jpg
 
|image=Banner3.jpg
 
|quote=Welcome to MansunWiki, your home to all resources Mansun.  Check out our gigs, band gear and discography sections
 
|quote=Welcome to MansunWiki, your home to all resources Mansun.  Check out our gigs, band gear and discography sections
Line 21: Line 21:
 
* direction - determines which side of the banner the text should be aligned.  Valid values are "left" or "right".
 
* 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%".
 
* 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.
+
* title - Page title for the banner image.
* section - Sub-section for the banner, usually "Destination of the Month", "Off the Beaten Path" or "Featured Travel Topic".
+
* section - Sub-section for the banner.
* section-link - Link subject for the sub-section, usually "Previous Destinations of the month", "Previously Off the beaten path" or "Previous Featured travel topics".
+
* section-link - Link subject for the sub-section.
* image - The banner image, without the File: prefix.  Example: "MohenjoDaroBanner1.jpg".
+
* image - The banner image, without the File: prefix.  Example: "Banner1.jpg".
* quote - 1-2 sentences of text to appear below the banner sub-section.
+
* quote - 1-2 sentences of text to appear below the banner sub-section, linking back to the Wiki Page referenced in the title.

Latest revision as of 14:13, 26 June 2015


Documentation

This template is used to generate the banners used on the MansunWiki, News and Spooky Action pages.

Usage

{{banner
|direction=left
|width=75%
|title=MansunWiki
|section=
|section-link=
|image=Banner3.jpg
|quote=Welcome to MansunWiki, your home to all resources Mansun.  Check out our gigs, band gear and discography sections
}}

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 image.
  • section - Sub-section for the banner.
  • section-link - Link subject for the sub-section.
  • image - The banner image, without the File: prefix. Example: "Banner1.jpg".
  • quote - 1-2 sentences of text to appear below the banner sub-section, linking back to the Wiki Page referenced in the title.