Difference between revisions of "Template:SideTOC"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) (-) |
||
Line 1: | Line 1: | ||
− | <includeonly><div style="float: right; font-size: {{{1|1}}}em; margin: 0 0 0.5em 1.5em; max-width: 25% | + | <includeonly><div style="float: right; font-size: {{{1|1}}}em; margin: 0 0 0.5em 1.5em; max-width: 25%">__TOC__</div></includeonly><noinclude>{{SideTOC}} |
− | |||
− | |||
− | |||
− | + | Shows the '''T'''able '''o'''f '''C'''ontents ('''ToC''') on the right side of the page with a maximum width of 25%. | |
− | |||
− | == | + | == Usage == |
− | + | {{<nowiki/>SideTOC|'''''fontSize'''''}} | |
− | + | * fontSize: number, in <tt>em</tt> | |
== HTML and CSS behind it == | == HTML and CSS behind it == | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
− | <div style="float: right; font-size: {{{1|1}}}em; margin | + | <div style="float: right; font-size: {{{1|1}}}em; margin: 0 0 0.5em 1.5em; max-width: 25%">__TOC__</div> |
− | </syntaxhighlight>[[Category:Templates]] | + | </syntaxhighlight> |
+ | |||
+ | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:38, 18 October 2020
Contents
Shows the Table of Contents (ToC) on the right side of the page with a maximum width of 25%.
Usage
{{SideTOC|fontSize}}
- fontSize: number, in em
HTML and CSS behind it
<div style="float: right; font-size: {{{1|1}}}em; margin: 0 0 0.5em 1.5em; max-width: 25%">__TOC__</div>