Template:Tocright/doc: Difference between revisions

From DnD with Extra Tongues
Jump to navigation Jump to search
dnd5efandom>Foxwells
No edit summary
 
m (1 revision imported)
 
(No difference)

Latest revision as of 20:49, 9 June 2019

[[Category:{{#switch: Template | Template = Template | Module = Module | User = User | #default = Page }} documentation]]

Description
This template will float the article's table of contents (ToC) to the right. It will also force a ToC to appear even if it would not normally appear.
Use it only when needed.
Syntax
{{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: tocright | 0 | 1 }} | : || {{ #if: || Template }} }}:tocright|{{ #ifeq: {{ #sub: tocright | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Tocright | tocright }}]]{{ #if: style=code
 | |style=code }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }}
Parameters
maxwidth = Optionally change max-width allowed for TOC box (default is 20em)