Difference between revisions of "Template:TOC"
From Kerbal Space Program Wiki
(Allows custom TOC placement) |
(+cat; *use parameter table; -possible new line;) |
||
Line 1: | Line 1: | ||
− | <div style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};">__TOC__</div> | + | <div style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};">__TOC__</div><noinclude> |
− | <noinclude> | + | Allows customization of the table of contents placement. |
− | Allows customization of the | ||
− | + | {{Parameter Table|name=text|parameters= | |
− | + | {{Parameter Row|align|Floats the TOC if isn't set to <tt>none</tt>. Other values are <tt>left</tt> and <tt>right</tt>.|<tt>none</tt>}} | |
− | + | {{Parameter Row|width|The width in pixels. Determine automatically the width if set to <tt>auto</tt>.|<tt>auto</tt>}} | |
− | + | {{Parameter Row|clear|Clears the TOC if there was already something floating. Can be set to <tt>both</tt>, <tt>left</tt> and <tt>right</tt>.|<tt>both</tt>}} | |
− | + | }} | |
− | + | [[Category:Templates]]</noinclude> | |
− | |||
− | </noinclude> |
Revision as of 10:36, 16 December 2013
Allows customization of the table of contents placement.