Template:Heading: Difference between revisions

added alignment option
No edit summary
(added alignment option)
Line 1: Line 1:
<includeonly>{{br|{{{3|}}}}}<h2 style="border-bottom: none; font-size:large; font-weight:bold;">{{{1|}}}</h2><hr style="background:{{color|{{{2}}}}}; height:2px"></includeonly><noinclude>This template creates a heading style that uses a thin colored line specified by the user. It is an alternative to [[Template:Section]] and [[Template:Header]].
<includeonly>{{br|{{{3|}}}}}<h2 style="border-bottom: none; font-size:large; font-weight:bold;{{#if: {{{ALIGN|}}}|text-align:{{{ALIGN|}}}|}}">{{{1|}}}</h2><hr style="background:{{color|{{{2}}}}}; height:2px"></includeonly><noinclude>This template creates a heading style that uses a thin colored line specified by the user. It is an alternative to [[Template:Section]] and [[Template:Header]].


===Note about colors===
===Note about colors===
Line 24: Line 24:
[[File:Trip.jpg|thumb|[[Template:Header|Whoa!]]]]
[[File:Trip.jpg|thumb|[[Template:Header|Whoa!]]]]
{{Heading|After|Gold|clear}}
{{Heading|After|Gold|clear}}
===Changing alignment of text===
You can now have the subheading text appear on the center or right by adding ALIGN=center or ALIGN=right.
<pre>{{SubHeading|USS Enterprise|Red|ALIGN=center}}</pre>
{{SubHeading|USS Enterprise|Red|ALIGN=center}}
<pre>{{SubHeading|Starfleet Medical|Teal|ALIGN=right}}</pre>
{{SubHeading|Starfleet Medical|Teal|ALIGN=right}}


[[Category:Templates]]
[[Category:Templates]]
__NOTOC__</noinclude>
__NOTOC__</noinclude>