Template:Fake heading/doc

From Clicklaw Wikibooks
< Template:Fake heading
Revision as of 18:16, 1 May 2013 by Nate Russell (talk | contribs) (Created page with "{{template shortcut|Fake header|Fake title|Fakeheader|Fakeheading|Pseudoheading}} ==Usage== This template is used to create examples of heading wikimarkup in style guides and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Template shortcut

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 and has a subtly different appearance so that it is distinguishable from an actual heading and doesn't confuse anyone. The grey it uses for the underline is intentionally darker than the real thing, its font size slightly smaller, and the underline width intentionally shorter than full page. The default output is ==-level or <h2>...</h2>.

To simulate ===Subheadings=== (<h3>...</h3>), scaled down a bit to match the default heading above, use the |sub=3 parameter (only the value "3" is supported - a ===Level 4=== looks just like boldfaced regular text, and lower levels are uncommon).

Example


The code:


{{fake heading|FooBarBazQuux}}

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

{{loremipsum}}


results in:


FooBarBazQuux

Template:Loremipsum

QuuxBazBarFoo

Template:Loremipsum