Jump to content

Template:Heading/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template is used to produce a heading when wikitext (e.g. ==Heading== ) won't work. Headings will be added to the table of contents like normal headings.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Heading content1

The name of the (sub)section this heading represents

Stringrequired
Heading size2

A whole number between 1 and 5, with 1 being the largest (forbidden by MOS) and 5 being the smallest

Suggested values
1 2 3 4 5
Default
2
Numberoptional
Styling3 style

Additional CSS styling for the header element

Example
padding-left: 0.5em; font-size: 120%; font-family: Times New Roman;
Stringoptional

Examples

[edit]
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...

See also

[edit]