Difference between revisions of "Template:Fake heading"

From GodWiki
Jump to: navigation, search
(Borrowed from The Other Wiki. For use in documentation, formatting examples, and other metagodwiki content.)
 
(Add & document optional |style= parameter)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; {{#switch: {{{level|{{{sub|}}}}}}
 
<div style="color: #000000; background: none; overflow: hidden; page-break-after: avoid; {{#switch: {{{level|{{{sub|}}}}}}
  | 1 = font-size: 1.8em; font-family: Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;
+
  | 1 = font-size: 1.8em; font-family: 'Linux Libertine',Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #a2a9b1;
  | 2 | #default = font-size: 1.5em; font-family: Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;
+
  | 2 | #default = font-size: 1.5em; font-family: 'Linux Libertine',Georgia,Times,serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #a2a9b1;
  | 3 = font-size: 1.17em; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
+
  | 3 = font-size: 1.2em; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
 
  | 4 = font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;
 
  | 4 = 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;
 
  | 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=
(Brief docs for now, possibly throwaway if the docs get centralized so hold off on creating a doc subpage.)
 
 
==Parameters==
 
==Parameters==
{{tlx|fake heading|<var>1</var>|level{{=}}<var>level</var>}}
+
{{tlx|fake heading|<var>content</var>|level{{=}}<var>level</var>|style{{=}}<var>inline styles</var>}}
* '''1''': 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

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.)