User:Mathglot/sandbox/Templates/Template:Fake heading
Appearance
Usage
[edit]This template is used to create examples of section heading wiki markup in help and similar pages. Fake headings do not appear in the table of contents. They are styled to appear the same as the default heading styles in the Vector skin, and will not be influenced by custom CSS or skins.
Optional parameter anchor may be used, to make the fake section directly addressable from a Wikilink either on the same page, or another page, in order to mimic the capability of [[Help:Link#Section linking|]].
Parameters
[edit]|level=
or|sub=
is the level number: valid values are 1 through 6. The default is 2 (equivalent of a== Main heading ==
(level 1 is equivalent to page title).|anchor=
is an optional param. If present, it inserts an HTML anchor before the fake heading.- If the anchor param has no value, then by default the inserted anchor contains the same value as the section title:
{{fake heading|sub=2|anchor|Major topic}}
generates{{Anchor|Major topic}}
before the fake heading. - If the anchor param has a value, then the anchor is set to the value given in the parameter:
{{fake heading|sub=3|anchor=dot-com|.com}}
generates{{Anchor|dot-com}}
followed by a fake section entitled ".com".
- If the anchor param has no value, then by default the inserted anchor contains the same value as the section title:
- An unnamed parameter (which can also be specified as
|1=
) is used for the section title.
Example
[edit]Markup | Renders as |
---|---|
{{fake heading|sub=1|Heading 1}} {{fake heading|sub=2|Heading 2}} {{fake heading|sub=3|Heading 3}} {{fake heading|sub=4|Heading 4}} {{fake heading|sub=5|Heading 5}} {{fake heading|sub=6|Heading 6}} |
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
|
See also
[edit]Template | Appearance |
---|---|
{{fake clarify}} | [clarification needed] |
{{fake citation needed}} | [citation needed] |
{{fake verification needed}} | [verification needed] |
{{fake explain}} | [further explanation needed] |
{{fake heading}} | Section
|
{{fake notes and references}} |
Notes
References
|
{{dummy reference}} | [1] |
{{dummy backlink}} | ^ |
{{dummy footnote}} |
1. ^
Citation
|
{{fake link}} | default |
{{fake redlink}} | default |