Difference between revisions of "Template:Fake heading/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frungi
(font size is NOT smaller; it’s 150%, just like a real ==heading==)
imported>DB1729
m (Reverted 1 edit by 108.56.189.125 (talk) to last revision by Aspening)
 
(225 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{template shortcut|Fake header|Fake title|Fakeheader|Fakeheading|Pseudoheading}}
+
{{documentation subpage}}
 +
{{ombox|type=content|text=Don't use this template in articles. See [[WP:PSEUDOHEAD]]}}
 +
{{template shortcut|fhead|Fake header|Fake title|Fakeheader|Fakeheading}}
  
 
==Usage==
 
==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 <code>==Headings==</code>, such as at [[Wikipedia:Manual of Style (glossaries)]], so that editors have a clear idea of what they'll get.  
+
This template is used to create examples of section heading [[Help:Wiki markup|wiki markup]] in help and similar pages and should [[WP:PSEUDOHEAD|NOT be used in articles]]. 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 [[Cascading Style Sheets|CSS]] or skins.
  
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>.
+
==Parameters==
 +
* {{para|level}} or {{para|sub}} is the level number: valid values are 1 through 6. The default is 2 (equivalent of a <code><nowiki>== Main heading ==</nowiki></code> (level 1 is equivalent to page title).
 +
* An unnamed parameter (which can also be specified as {{para|1}}) is used for the section title.
  
To simulate <code>===Subheadings===</code> (<code><nowiki><h3>...</h3></nowiki></code>), scaled down a bit to match the default heading above, 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==
 +
{{markup
 +
|<nowiki>
 +
{{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}}
 +
</nowiki>|
 +
{{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}}
 +
}}
  
===Example===
+
== See also ==
<br />
+
{{fake template list}}
The code:
 
  
 
+
<includeonly>{{Sandbox other||
<blockquote><code>{{tnull|fake heading|FooBarBazQuux}}<br />
 
{{tnull|loremipsum}}<br />
 
{{tnull|fake heading|sub&#61;3|QuuxBazBarFoo}}<br />
 
{{tnull|loremipsum}}</code></blockquote>
 
 
 
 
 
results in:
 
 
 
 
 
<blockquote>{{fake heading|FooBarBazQuux}}
 
{{loremipsum}}
 
{{fake heading|sub=3|QuuxBazBarFoo}}
 
{{loremipsum}}<blockquote>
 
 
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
[[Category:Documentation assistance templates]]
 
[[Category:Documentation assistance templates]]
 
+
}}</includeonly>
</includeonly>
 

Latest revision as of 01:47, 13 January 2021

Usage

This template is used to create examples of section heading wiki markup in help and similar pages and should NOT be used in articles. 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

  • |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).
  • An unnamed parameter (which can also be specified as |1=) 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}}
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

See also

Documentation templates
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