Template:Section: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(adding category)
(documentation)
Line 1: Line 1:
<onlyinclude><h2 style="margin:0; background:{{color|{{{2}}}}}; font-size:120%; font-weight:bold; text-align:center; color:#ffffff; padding:0.2em 0.4em;">{{{1}}}</h2></onlyinclude>
<includeonly><h2 style="margin:0; background:{{color|{{{2}}}}}; font-size:120%; font-weight:bold; text-align:center; color:#ffffff; padding:0.2em 0.4em;">{{{1}}}</h2></includeonly>
<noinclude>[[Category:Wiki System Templates]]</noinclude>
<noinclude>
This template creates boxed section headers.
 
<pre>{{Section|Name of Section|Red}}</pre>
 
{{Section|Name of Section|Red}}
 
===Note about colors===
This template translates the standard color names for the divisions to the colors we use on the wiki. Thus '''<font color=maroon>Red</font>, <font color=darkgoldenrod>Gold</font>, <font color=steelblue>Blue</font>, <font color=teal>Teal</font>, <font color=purple>Violet</font>, <font color=black>Black</font>, <font color=dimgray>Silver</font>, and <font color=darkgreen>Green</font>''' are not necessarily the same as their true html color name. Any other html color name or HEX code will be shown as entered.
 
To get around the preset color names above, use the raw HEX code (for instance, use #FF0000 to get <font color=#FF0000>this red</font> rather than using "Red" to get <font color=maroon>this red</font>. [http://www.w3schools.com/html/html_colornames.asp Consult this table for reference.]
 
[[Category:Templates]]</noinclude>

Revision as of 20:37, 5 June 2015


This template creates boxed section headers.

{{Section|Name of Section|Red}}

Name of Section


Note about colors

This template translates the standard color names for the divisions to the colors we use on the wiki. Thus Red, Gold, Blue, Teal, Violet, Black, Silver, and Green are not necessarily the same as their true html color name. Any other html color name or HEX code will be shown as entered.

To get around the preset color names above, use the raw HEX code (for instance, use #FF0000 to get this red rather than using "Red" to get this red. Consult this table for reference.