Template:Banner: Difference between revisions

From Ents Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="clear:both; background:{{#if:{{{colour|}}}|{{{colour}}}|#FBFBEA}}; border:2px solid {{#if:{{{border|}}}|{{{border}}}|#E2E39C}}; padding:0.2em 0.4em 0.2em 0.4em;">{{#if:{{{image|}}}|<table style="background:{{#if:{{{colour|}}}|{{{colour}}}|#FBFBEA}}">
<includeonly><div style="clear:both; background:{{#if:{{{colour|}}}|{{{colour}}}|#FBFBEA}}; border:2px solid {{#if:{{{border|}}}|{{{border}}}|#E2E39C}}; padding:0.2em 0.4em 0.2em 0.4em;{{#if:{{{align|}}}|text-align:{{{align}}};|}}">{{#if:{{{image|}}}|<table style="background:{{#if:{{{colour|}}}|{{{colour}}}|#FBFBEA}}">
  <tr>
  <tr>
   <td width=2em>&nbsp;</td>
   <td width=2em>&nbsp;</td>
   <td valign=center>[[Image:{{{image}}}|48px|link=]]</td>
   <td valign=center>[[Image:{{{image}}}|48px|link=]]</td>
   <td style="width:100%; padding-left:2em; vertical-align:center">{{{text}}}</td>
   <td style="width:100%; padding-left:2em; vertical-align:center;{{#if:{{{align|}}}|text-align:{{{align}}};|}}">{{{text}}}</td>
  </tr>
  </tr>
</table>|{{{text}}}}}</div></includeonly><noinclude>
</table>|{{{text}}}}}</div></includeonly><noinclude>
{{High-risk}}
{{{{FULLPAGENAME}}/doc}}
{{{{FULLPAGENAME}}/doc}}
</noinclude>
</noinclude>

Latest revision as of 13:41, 3 June 2013


This template creates a banner with a block of text and an optional icon.

About Templates

  • Parameters should be changed prior to saving the page.
  • Parameters may appear on a single line or multiple lines, but parameters must be preceded by a | (pipe).

For more information on how templates work, see Help:Templates

Quick Reference

{{Banner|text=text}}


text


{{Banner|text=This is an information banner!|image=Information icon.svg}}


  This is an information banner!

Parameters

{{Banner
|text = The block of text the banner displays. (required)
|image = The image displayed on the left-hand side of banner. (recommended)
|colour = The background color of the banner. For possible values, see here. (optional)
|border = The color of the banner's border. (optional)
|align = The alignment of the text - left, right, center. (optional)
}}

Template Dependencies

None

None