Difference between revisions of "Template:Heading/doc"

From blackwiki
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==
−
;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==
−
;Examples
 
 
{| style="width:100%;" class=wikitable
 
{| style="width:100%;" class=wikitable
 
! Code
 
! Code

Latest revision as of 02:37, 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...