User:Relmutsie AN/Heading

< User:Relmutsie AN

__NOTOC__
'''Template:Heading''' acts as a central heading Template. When editing this Template, edit the part between the <onlyinclude> tags, then copy/paste that between the <pre> tags under the [[#Template Code]] section. When you want to try out new colors, you can copy/paste the code for the individual headers onto somewhere else on the page, change the colors, and then preview the page (don't save it). When you're satisfied, ''then'' you should remove the preview code and change the Template accordingly.

==Usage==

 {{Heading|''Letter''|''Header Text''}}

==Examples of Usage==

{| cellpadding="5" cellspacing="3" style="background-color: #CCC; margin: 1em 0;"
! Code !! style="width: 400px;" | Result
|- style="background-color: #FFF;"
| <pre>{{Heading|A|Header A Text}}
|

Contents

Header A Text

|- style="background-color: #FFF;"

|
{{Heading|B|Header B Text}}
|

Header B Text

|- style="background-color: #FFF;"

|
{{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 #{{Secondary}}; background:#{{Primary}}; color:#fff; font-size:120%; font-weight:bold; text-align:left; -moz-border-radius:0.2em;">{{{2|WIKINAME}}}</h2>
| B =
<h2 style="padding:0.2em 0.4em; margin:10px 0 10px 0; border:1px solid #{{Primary}}; background:#{{Secondary}}; color:#fff; font-size:120%; font-weight:bold; text-align:left; -moz-border-radius:0.2em;">{{{2|WIKINAME}}}</h2>
| C =
<h2 style="padding:0.2em 0.4em; margin:10px 0 10px 0; border:1px solid #{{Back}}; background:#{{Tertiary}}; color:#fff; font-size:120%; font-weight:bold; text-align:center; -moz-border-radius:0.2em;">{{{2|WIKINAME}}}</h2>
}}


</pre>