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

From blackwiki
Jump to navigation Jump to search
imported>Frungi
(→‎Parameters: using {{para}} for the parameter)
imported>Gadget850
(→‎HTML: update from Help:HTML in wikitext|HTML_section)
Line 24: Line 24:
 
==HTML==
 
==HTML==
 
Section heading wikimarkup is rendered to HTML [[HTML element#h1|heading elements]], {{tag|h1|o}} through {{tag|h6|o}}, styled as follows:
 
Section heading wikimarkup 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}}
{| class="wikitable"
 
|-
 
! Wikimarkup !! [[HTML]] !! Style
 
|-
 
| <code>= Heading =</code> || {{tag|h1|o}} || font size 188%; bottom border
 
|-
 
| <code>== Heading ==</code> || {{tag|h2|o}} || font size 150%; bottom border
 
|-
 
| <code>=== Heading ===</code> || {{tag|h3|o}} || font size 132%; bold
 
|-
 
| <code>==== Heading ====</code> || {{tag|h4|o}} || font size 116%; bold
 
|-
 
| <code>===== Heading =====</code> || {{tag|h5|o}} || font size 100%; bold
 
|-
 
| <code>====== Heading ======</code> || {{tag|h6|o}} || font size 80%; bold
 
|-
 
|}
 
  
 
==See also==
 
==See also==

Revision as of 10:54, 25 May 2013

Usage

This template is used to create examples of section heading wikimarkup in help and similar pages. A fake heading will not appear in the table of contents. They are styled as default, and will not be influenced by custom CSS.

Parameters

  • |sub= is the level number: 1 through 6. The default is 2.
  • An unnamed parameter is used for the section title.

Example

Markup Renders as
{{fake heading|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 2
Heading 3
Heading 4
Heading 5
Heading 6

HTML

Section heading wikimarkup is rendered to HTML heading elements, <h1> through <h6>, styled as follows: {{#lst:Help:HTML in wikitext|HTML_section}}

See also