• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Heading/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Heading
This is the template sandbox page for Template:Heading (diff).
Template documentationviewedithistorypurge


Contents

  • 1 Examples
  • 2 TemplateData
  • 3 See also

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...

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Heading in articles based on its TemplateData.

TemplateData for Heading

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[Edit template data]

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

See also

edit
  • {{Fake heading}}
The above documentation is transcluded from Template:Heading/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Heading/sandbox&oldid=1358453056"