Template:SideTOC

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

Description

This template places the Table of Contents (ToC) on the right of the page with a maximum width of 25%. This page uses it, other uses can be found on this list.

How to use it

Write {{SideTOC}} at the top of the edited content. The ToC will then appear on the side of the page.

Options

Only one parameter is available, that is font-size: {{SideTOC|0.85}}. This example will have the font size reduced to 85% of the original.

HTML and CSS behind it

<div style="float: right; font-size: {{{1|1}}}em; margin-left: 0 0 0.5em 1.5em; max-width: 25%;">__TOC__</div>