Template:SubHeading

From 118Wiki
Jump to navigation Jump to search

This template creates a subheading style that uses a thin colored line specified by the user. Basically, it creates a heading one level below Template:Heading when listed in the table of contents (the equivalent of h3 or ===This level=== compared to Template:Heading, which is equivalent to h2 or ==This Level==). For instance, notice in the table of contents that "How to Use" is a parent header to all the other headers in the table of contents. This is because it is using Template:Heading.

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.

How to Use


{{SubHeading|Name of Heading|Blue}}

Name of Heading



Clearing a Section

You can also add a <br clear=all> before the heading so that a thumbnail or sidebar will be displayed completely above it by adding "clear" to the end :

{{SubHeading|Name of Heading|Color|clear}}

Before



After



Changing alignment of text

You can now have the subheading text appear on the center or right by adding ALIGN=center or ALIGN=right.

{{SubHeading|USS Enterprise|Red|ALIGN=center}}

USS Enterprise


{{SubHeading|Starfleet Medical|Teal|ALIGN=right}}

Starfleet Medical