Template:Section: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<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>") |
m (Protected "Template:Section" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<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><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> | |||
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> |
Latest revision as of 21:03, 30 April 2016
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.