Template:Fake heading/doc

From blackwiki
< Template:Fake heading
Revision as of 02:13, 18 May 2013 by imported>Frungi (further updating to match the current template)
Jump to navigation Jump to search

Usage

This template is used to create examples of heading wikimarkup in style guides and in essays such as Wikipedia:Verification methods, and to create examples of the output of code that generates ==Headings==, such as at Wikipedia:Manual of Style (glossaries), so that editors have a clear idea of what they'll get.

A fake heading will not appear in the table of contents, though it's visually identical to a normal heading. The default output is ==-level or <h2>...</h2>.

To simulate ===Subheadings=== (<h3>...</h3> through <h6>...</h6>), use the |sub= parameter with values 3 through 6.

Example


The code:


{{fake heading|FooBarBazQuux}}

{{loremipsum}}
{{fake heading|sub=3|QuuxBazBarFoo}}

{{loremipsum}}


results in:


FooBarBazQuux

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

QuuxBazBarFoo

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.