Difference between revisions of "Template:Heading/doc"

From blackwiki
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 templates takes 2 parameters, unnamed parameter 1 and level, unnamed parameter one is the contents of the heading, and level is the level of the heading (1 being the biggest, 5 being the smallest)
+
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.
−
{{heading|level=1}}
 
−
{{heading|level=2}}
 
−
{{heading|level=3}}
 
−
{{heading|level=4}}
 
−
{{heading|level=5}}
 
  
−
==See also==
+
 
−
*{{tl|Sections}}
+
;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 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 1

Lorem ipsum...

{{heading|Level 2|2}}
Lorem ipsum...

Level 2

Lorem ipsum...

{{heading|Level 3|3}}
Lorem ipsum...

Level 3

Lorem ipsum...

{{heading|Level 4|4}}
Lorem ipsum...
Level 4

Lorem ipsum...

{{heading|Level 5|5}}
Lorem ipsum...
Level 5

Lorem ipsum...