Difference between revisions of "Template:Heading"
Jump to navigation
Jump to search
(Created page with "<includeonly><h{{#expr:{{{2|{{{level|1}}}}}}+1}} {{#if:{{{style|}}}|style="{{{style|}}}"}}>{{{1}}}</h{{#expr:{{{2|{{{level|1}}}}}}+1}}></includeonly><noinclude>This template i...") |
|||
Line 1: | Line 1: | ||
<includeonly><h{{#expr:{{{2|{{{level|1}}}}}} | <includeonly><h{{#expr:{{{2|{{{level|1}}}}}}}} {{#if:{{{style|}}}|style="{{{style|}}}"}}>{{{1}}}</h{{#expr:{{{2|{{{level|1}}}}}}}}></includeonly><noinclude>This template is used to produce a heading when wikitext (eg: ==Heading== ) won't work. Headings will be added to the table of contents like normal headings. This templates takes 2 parameters, |1= and |2=. | ||
* |1= is the contents of the heading | * |1= is the contents of the heading | ||
Line 6: | Line 6: | ||
----- | ----- | ||
Examples: | |||
<nowiki>{{Heading|Top Header}}</nowiki> | |||
{{Heading|Top Header}} | |||
<nowiki>{{Heading|Lower Header|3}}</nowiki> | |||
{{Heading|Lower Header|3}}</noinclude> |
Latest revision as of 08:08, 26 August 2021
This template is used to produce a heading when wikitext (eg: ==Heading== ) won't work. Headings will be added to the table of contents like normal headings. This templates takes 2 parameters, |1= and |2=.
- |1= is the contents of the heading
- |2= is the level of the heading (1 being the biggest, 5 being the smallest)
Examples:
{{Heading|Top Header}}
Top Header
{{Heading|Lower Header|3}}