Difference between revisions of "Template:Heading/doc"
Jump to navigation
Jump to search
imported>BrandonXLF (Updated doc) |
imported>BrandonXLF (FORCETOC) |
||
| Line 1: | Line 1: | ||
| − | {{documentation subpage}} | + | __FORCETOC__{{documentation subpage}} |
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 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. | ||
| − | + | ==Parameters== | |
| − | |||
This templates takes 2 parameters, {{para|1}} and {{para|2}}. | This templates takes 2 parameters, {{para|1}} and {{para|2}}. | ||
* {{para|1}} is the contents of the heading | * {{para|1}} is the contents of the heading | ||
* {{para|2}} is the level of the heading (1 being the biggest, 5 being the smallest) | * {{para|2}} is the level of the heading (1 being the biggest, 5 being the smallest) | ||
| − | + | ==Examples== | |
| − | |||
{| style="width:100%;" class=wikitable | {| style="width:100%;" class=wikitable | ||
! Code | ! Code | ||
Latest revision as of 02:37, 30 January 2020
| This is a documentation subpage for Template:Heading. It contains usage information, categories and other content that is not part of the original template page. |
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.
Contents
Parameters
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
| Code | Result |
|---|---|
{{heading|Level 1|1}}
Lorem ipsum...
|
Level 1Lorem ipsum... |
{{heading|Level 2|2}}
Lorem ipsum...
|
Level 2Lorem ipsum... |
{{heading|Level 3|3}}
Lorem ipsum...
|
Level 3Lorem ipsum... |
{{heading|Level 4|4}}
Lorem ipsum...
|
Level 4Lorem ipsum... |
{{heading|Level 5|5}}
Lorem ipsum...
|
Level 5Lorem ipsum... |