Template:Banner: Difference between revisions

From Ents Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
   <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:{{{colour}}};|}}">{{{text}}}</td>
  </tr>
  </tr>
</table>|{{{text}}}}}</div></includeonly><noinclude>
</table>|{{{text}}}}}</div></includeonly><noinclude>

Revision as of 13:38, 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