Difference between revisions of "Template:Subheader"

From LGPedia
Jump to: navigation, search
m
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
|-
+
<includeonly><h2 style="margin: 1em 0em 1em 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;|purple=background-color: #653373; border: 1px solid #653373;|green=background-color: #489F14; border: 1px solid #489F14;|gray=background-color: #666; border: 1px solid #666;|background-color: #535353; border: 1px solid #4682B4;}}"><div style="position: relative; top: 0px; left: 0px; display: inline;">'''{{{1}}}'''<div style="position: absolute; top: 0.25em; left: -1.5em;">[[Image:Star white on {{{2|blue}}}.gif]]</div><div style="position: absolute; top: 0.25em; right: -1.5em;">[[Image:Star white on {{{2|blue}}}.gif]]</div></div></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 purple header|purple}}
 +
<pre>{{Subheader|This is a purple header|purple}}</pre>
 +
 
 +
{{Subheader|This is a red header|red}}
 +
<pre>{{Subheader|This is a red header|red}}</pre>
 +
 
 +
{{Subheader|This is a green header|green}}
 +
<pre>{{Subheader|This is a green header|green}}</pre>
 +
 
 +
{{Subheader|This is a gray header|gray}}
 +
<pre>{{Subheader|This is a gray header|gray}}</pre>
 +
 
 +
 
 +
{{Subheader|This header lacks color information}}
 +
<pre>{{Subheader|This header lacks color information}}</pre>
 +
 
 +
__NOTOC__
 +
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 04:31, 29 August 2008

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
Star white on blue.gif
Star white on blue.gif

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

This is a purple header
Star white on purple.gif
Star white on purple.gif

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

This is a red header
Star white on red.gif
Star white on red.gif

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

This is a green header
Star white on green.gif
Star white on green.gif

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

This is a gray header
Star white on gray.gif
Star white on gray.gif

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


This header lacks color information
Star white on blue.gif
Star white on blue.gif

{{Subheader|This header lacks color information}}