Difference between revisions of "Template:Heading/doc"
Jump to navigation
Jump to search
imported>Hyacinth (==See also== *{{tl|Sections}}) |
imported>BrandonXLF (Updated doc) |
||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
| − | This | + | 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}}. | ||
| + | * {{para|1}} is the contents of the heading | ||
| + | * {{para|2}} is the level of the heading (1 being the biggest, 5 being the smallest) | ||
| + | |||
| + | |||
| + | ;Examples | ||
| + | {| style="width:100%;" class=wikitable | ||
| + | ! Code | ||
| + | ! Result | ||
| + | |- | ||
| + | | class=nowrap | <pre style="margin-right:20px;">{{heading|Level 1|1}} | ||
| + | Lorem ipsum...</pre> | ||
| + | | style="width:100%;" | {{heading|Level 1|1}} | ||
| + | Lorem ipsum... | ||
| + | |- | ||
| + | | class=nowrap | <pre style="margin-right:20px;">{{heading|Level 2|2}} | ||
| + | Lorem ipsum...</pre> | ||
| + | | style="width:100%;" | {{heading|Level 2|2}} | ||
| + | Lorem ipsum... | ||
| + | |- | ||
| + | | class=nowrap | <pre style="margin-right:20px;">{{heading|Level 3|3}} | ||
| + | Lorem ipsum...</pre> | ||
| + | | style="width:100%;" | {{heading|Level 3|3}} | ||
| + | Lorem ipsum... | ||
| + | |- | ||
| + | | class=nowrap | <pre style="margin-right:20px;">{{heading|Level 4|4}} | ||
| + | Lorem ipsum...</pre> | ||
| + | | style="width:100%;" | {{heading|Level 4|4}} | ||
| + | Lorem ipsum... | ||
| + | |- | ||
| + | | class=nowrap | <pre style="margin-right:20px;">{{heading|Level 5|5}} | ||
| + | Lorem ipsum...</pre> | ||
| + | | style="width:100%;" | {{heading|Level 5|5}} | ||
| + | Lorem ipsum... | ||
| + | |} | ||
Revision as of 02:36, 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.
- 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... |