Template:SideTOC

From Savage Game Design Wiki
Revision as of 13:38, 18 October 2020 by Lou Montana (talk | contribs) (-)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>