Template:Heading

Revision as of 12:46, 7 May 2009 by Deathsythe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Heading acts as a central Template to replace Template:HeadingA, Template:HeadingB, and Template:HeadingC.

Usage

{{Heading|Letter|Header Text}}

Examples of Usage

Code Result
{{Heading|A|Header A Text}}

Header A Text

{{Heading|B|Header B Text}}

Header B Text

{{Heading|C|Header C Text}}

Header C Text

Template Code

{{#switch: {{{1|A}}}
| A =
<h2 style="padding:0.2em 0.4em; margin:10px 0 10px 0; border:1px solid #a3bfb1; background:#99ccff; color:#000; font-size:120%; font-weight:bold; text-align:left; -moz-border-radius:0.2em;">{{{2|Formula One}}}</h2>
| B =
<h2 style="padding:0.2em 0.4em; margin:10px 0 10px 0; border:1px solid #a3bfb1; background:#cedff2; color:#000; font-size:120%; font-weight:bold; text-align:left; -moz-border-radius:0.2em;">{{{2|Formula One}}}</h2>
| C =
<h2 style="padding:0.2em 0.4em; margin:10px 0 10px 0; border:1px solid #a3bfb1; background:#EEEEEE; color:#000; font-size:120%; font-weight:bold; text-align:center; -moz-border-radius:0.2em;">{{{2|Formula One}}}</h2>
}}