Difference between revisions of "Template:Fake heading"

From GodWiki
Jump to: navigation, search
m (Match font-size, underline color, font-family to site CSS.)
(Add & document optional |style= parameter)
 
Line 6: Line 6:
 
  | 5 = font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
 
  | 5 = font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
 
  | 6 = font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
 
  | 6 = font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
}}">{{{1|Section}}}</div><noinclude>
+
}} {{{style|}}}">{{{1|Section}}}</div><noinclude>
 
{{doc|content=
 
{{doc|content=
 
==Parameters==
 
==Parameters==
{{tlx|fake heading|<var>content</var>|level{{=}}<var>level</var>}}
+
{{tlx|fake heading|<var>content</var>|level{{=}}<var>level</var>|style{{=}}<var>inline styles</var>}}
 
* '''<var>content</var>''' ''(first unnamed parameter)'': Heading text
 
* '''<var>content</var>''' ''(first unnamed parameter)'': Heading text
 
* '''level''': Level (1-6) of heading to simulate
 
* '''level''': Level (1-6) of heading to simulate
 +
* '''style''': Optional additional styling to apply (valid CSS terminated with <code>;</code>. '''NO quotation marks.''')
 
}}
 
}}
 
[[Category:Templates|{{PAGENAME}}]] [[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]] [[Category:Formatting templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:44, 17 January 2019

Section
Documentation  Documentation

Parameters

{{fake heading|content|level=level|style=inline styles}}

  • content (first unnamed parameter): Heading text
  • level: Level (1-6) of heading to simulate
  • style: Optional additional styling to apply (valid CSS terminated with ;. NO quotation marks.)