Template:Subheader: Difference between revisions

From LGPedia
Jump to navigationJump to search
Misty (talk | contribs)
No edit summary
Renegade (talk | contribs)
Reworked for new header
Line 1: Line 1:
|-
<includeonly><h2 style="margin:0; margin-bottom: 1.0em;font-size:120%;text-align:center;color:#fff;padding:0.2em 0.4em; {{#switch: {{lc:{{{2|blue}}}}}|blue=background-color: #194B95; border: 1px solid #153d7a;|red=background-color: #ae2301; border: 1px solid #941f01;|background-color: #535353; border: 1px solid #4682B4;}}">[[Image:Star white on {{{2|blue}}}.gif]]&nbsp; &nbsp;'''{{{1}}}'''&nbsp; &nbsp;[[Image:Star white on {{{2|blue}}}.gif]]</h2></includeonly><noinclude>This template generates subheaders with a layout fitting [[Template:Header]]. Current options are either <tt>blue</tt> for LG15 or <tt>red</tt> for KM.
! <div style="margin:0;background-color:#535353;font-size:120%;border:1px solid #4682B4;text-align:center;color:#fff;padding:0.2em 0.4em;">[[Image:star.gif]]&nbsp;&nbsp;{{{1}}}&nbsp; &nbsp;[[Image:star.gif]]</div>
==Usage==
|-
{{Subheader|This is a blue header|blue}}
|style="color:#000"|
<pre>{{Subheader|This is a blue header|blue}}</pre>
<noinclude>
 
{{Subheader|Is Taylor Gay?}}
{{Subheader|This is a red header|red}}
<pre>{{Subheader|This is a red header|red}}</pre>
 
{{Subheader|This header lacks color information|}}
<pre>{{Subheader|This header lacks color information|}}</pre>
 
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 03:16, 1 October 2007

This template generates subheaders with a layout fitting Template:Header. Current options are either blue for LG15 or red for KM.

Usage

   This is a blue header   

{{Subheader|This is a blue header|blue}}

   This is a red header   

{{Subheader|This is a red header|red}}

File:Star white on .gif   This header lacks color information   File:Star white on .gif

{{Subheader|This header lacks color information|}}