Template:Banner: Difference between revisions

From Ents Wiki
Jump to navigation Jump to search
Created page with "<includeonly><div style="clear:both; background:{{#if:{{{color|}}}|{{{color}}}|#FBFBEA}}; border:2px solid {{#if:{{{border|}}}|{{{border}}}|#E2E39C}}; padding:0.2em 0.4em 0.2e..."
 
No edit summary
Line 1: Line 1:
<includeonly><div style="clear:both; background:{{#if:{{{color|}}}|{{{color}}}|#FBFBEA}}; border:2px solid {{#if:{{{border|}}}|{{{border}}}|#E2E39C}}; padding:0.2em 0.4em 0.2em 0.4em;">{{#if:{{{image|}}}|<table style="background:{{#if:{{{color|}}}|{{{color}}}|#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:{{{image|}}}|<table style="background:{{#if:{{{colour|}}}|{{{colour}}}|#FBFBEA}}">
  <tr>
  <tr>
   <td width=2em>&nbsp;</td>
   <td width=2em>&nbsp;</td>

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