Difference between revisions of "Template:TOCright/Doc"
The Beyond Skyrim Wiki — Hosted by UESP
(Copying template help from UESP) |
m (remove MetaTemplate dependency) |
||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
This template places a right-aligned table of contents (TOC) at the location where the template is placed. The TOC is in a floating table, so text will be placed side-by-side next to the TOC. | This template places a right-aligned table of contents (TOC) at the location where the template is placed. The TOC is in a floating table, so text will be placed side-by-side next to the TOC. | ||
− | |||
− | |||
== Parameters == | == Parameters == | ||
− | {{ | + | {| class="wikitable" |
− | |1|optional|The maximum width of the table. Percentage or units are both acceptable; the unit or percent sign must be specified. | + | !colspan="3"| {{{template|{{BASEPAGENAME}}}}} |
− | |limit|optional|The limit the subheaders shown in the TOC. For example, <code>limit{{=}}2</code> would only show level-1 or level-2 headers <nowiki>(=..= or ==..==)</nowiki>. (Default is 4.) | + | |- |
− | |clear|optional|Changes the setting for the CSS <code>clear</code> parameter, forcing other content to appear below the TOC on the side(s) specified. Possible values are left, right, both, or none. (Default is "right".) | + | ! Parameter !! Scope !! Description |
− | + | |- | |
+ | |1||optional||The maximum width of the table. Percentage or units are both acceptable; the unit or percent sign must be specified. | ||
+ | |- | ||
+ | |limit||optional||The limit the subheaders shown in the TOC. For example, <code>limit{{=}}2</code> would only show level-1 or level-2 headers <nowiki>(=..= or ==..==)</nowiki>. (Default is 4.) | ||
+ | |- | ||
+ | |clear||optional||Changes the setting for the CSS <code>clear</code> parameter, forcing other content to appear below the TOC on the side(s) specified. Possible values are left, right, both, or none. (Default is "right".) | ||
+ | |} | ||
== Example == | == Example == |
Latest revision as of 11:18, 20 May 2018
Summary[edit]
This template places a right-aligned table of contents (TOC) at the location where the template is placed. The TOC is in a floating table, so text will be placed side-by-side next to the TOC.
Parameters[edit]
TOCright | ||
---|---|---|
Parameter | Scope | Description |
1 | optional | The maximum width of the table. Percentage or units are both acceptable; the unit or percent sign must be specified. |
limit | optional | The limit the subheaders shown in the TOC. For example, limit=2 would only show level-1 or level-2 headers (=..= or ==..==). (Default is 4.)
|
clear | optional | Changes the setting for the CSS clear parameter, forcing other content to appear below the TOC on the side(s) specified. Possible values are left, right, both, or none. (Default is "right".)
|
Example[edit]
{{TOCright}}