Difference between revisions of "Template:Fake heading/doc"
imported>Frungi (font size is NOT smaller; it’s 150%, just like a real ==heading==) |
imported>Frungi (→Usage: per my last edit) |
||
| Line 6: | Line 6: | ||
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, and the underline width intentionally shorter than full page. The default output is <code>==</code>-level or <code><nowiki><h2>...</h2></nowiki></code>. | 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, and the underline width intentionally shorter than full page. The default output is <code>==</code>-level or <code><nowiki><h2>...</h2></nowiki></code>. | ||
| − | To simulate <code>===Subheadings===</code> (<code><nowiki><h3>...</h3></nowiki></code>), scaled down a bit | + | To simulate <code>===Subheadings===</code> (<code><nowiki><h3>...</h3></nowiki></code>), scaled down a bit, use the {{para|sub|3}} parameter (only the value "3" is supported - a <code>===Level 4===</code> looks just like boldfaced regular text, and lower levels are uncommon). |
===Example=== | ===Example=== | ||
Revision as of 01:47, 18 May 2013
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, 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, 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:
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.
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.