Difference between revisions of "Template:Banner"

From MansunWiki
Jump to: navigation, search
(Created page with "<div class="banner-image nomobile js-proportonal-resize"> <div class="mainpage-shadowbox banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}...")
 
m
 
(11 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<h3>[[{{{section-link}}}|{{{section}}}]]</h3>
 
<h3>[[{{{section-link}}}|{{{section}}}]]</h3>
 
<div class="quote">[[{{{title}}}|{{{quote}}}]]</div>
 
<div class="quote">[[{{{title}}}|{{{quote}}}]]</div>
</div>[[File:{{{image}}}|frameless|1700px|link={{{title}}}|{{{title}}}]]</div>
+
</div>[[File:{{{image}}}|frameless|1000px|link={{{title}}}|{{{title}}}]]</div>
 
<div id="mf-section-{{{section-id}}}" class="mf-mobile-only">
 
<div id="mf-section-{{{section-id}}}" class="mf-mobile-only">
 
=={{{section}}}==
 
=={{{section}}}==
Line 10: Line 10:
  
 
{{{quote}}}
 
{{{quote}}}
</div><noinclude>
+
</div>
 +
<noinclude>
 
{{documentation}}
 
{{documentation}}
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:09, 25 July 2015

{{{section}}}

[[{{{title}}}|{{{title}}}]]

{{{quote}}}

[view] [edit] [history] [purge] Template-info.svg Template Documentation

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.