Difference between revisions of "Template:Fake heading/doc"
Jump to navigation
Jump to search
imported>Dalahäst m (Reverted edits by Mojojo1984 (talk) to last version by Trappist the monk) |
imported>Wdchk (clarifications, WLs) |
||
| Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
| − | This template is used to create examples of section heading | + | This template is used to create examples of section heading [[Help:Wiki markup|wiki markup]] in help and similar pages. Fake headings do not appear in the [[H:TOC|table of contents]]. They are styled to appear the same as the default heading styles in the Vector [[WP:Skin|skin]], and will not be influenced by custom CSS or skins. |
==Parameters== | ==Parameters== | ||
| − | * {{para|sub}} is the level number: 1 through 6. The default is 2. | + | * {{para|sub}} is the level number: valid values are 1 through 6. The default is 2. |
* An unnamed parameter is used for the section title. | * An unnamed parameter is used for the section title. | ||
==Example== | ==Example== | ||
{{markup | {{markup | ||
| − | |<nowiki>{{fake heading|sub=1|Heading 1}} | + | |<nowiki> |
| + | {{fake heading|sub=1|Heading 1}} | ||
{{fake heading|sub=2|Heading 2}} | {{fake heading|sub=2|Heading 2}} | ||
{{fake heading|sub=3|Heading 3}} | {{fake heading|sub=3|Heading 3}} | ||
| Line 16: | Line 17: | ||
{{fake heading|sub=5|Heading 5}} | {{fake heading|sub=5|Heading 5}} | ||
{{fake heading|sub=6|Heading 6}} | {{fake heading|sub=6|Heading 6}} | ||
| − | </nowiki>|{{fake heading|sub=1|Heading 1}} | + | </nowiki>| |
| + | {{fake heading|sub=1|Heading 1}} | ||
{{fake heading|sub=2|Heading 2}} | {{fake heading|sub=2|Heading 2}} | ||
{{fake heading|sub=3|Heading 3}} | {{fake heading|sub=3|Heading 3}} | ||
| Line 25: | Line 27: | ||
==HTML== | ==HTML== | ||
| − | Section heading | + | Section heading wiki markup is rendered to HTML [[HTML element#h1|heading elements]], {{tag|h1|o}} through {{tag|h6|o}}, styled as follows: |
{{#lst:Help:HTML in wikitext|HTML_section}} | {{#lst:Help:HTML in wikitext|HTML_section}} | ||
Revision as of 03:15, 31 July 2015
Contents
Usage
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.
Parameters
|sub=is the level number: valid values are 1 through 6. The default is 2.- An unnamed parameter is used for the section title.
Example
| 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}}
|
|
HTML
Section heading wiki markup is rendered to HTML heading elements, <h1> through <h6>, styled as follows:
{{#lst:Help:HTML in wikitext|HTML_section}}
See also
| Template | Appearance |
|---|---|
| {{fake clarify}} | [clarification needed] |
| {{fake citation needed}} | [citation needed] |
| {{fake verification needed}} | [verification needed] |
| {{fake explain}} | [further explanation needed] |
| {{fake heading}} | |
| {{fake notes and references}} |
|
| {{dummy reference}} | [1] |
| {{dummy backlink}} | ^ |
| {{dummy footnote}} | 1. ^
Citation
|
| {{fake link}} | default |