Template:TOC
From Wikimapia
(Difference between revisions)
(Testing temporary fix for width problem (logic to add "px")) |
(Collapsed spaces within style parameters) |
||
| Line 1: | Line 1: | ||
| − | <div style="clear: {{{clear|both}}}; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin:0em 0em 1em 2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin:0em 2.5em 1em 0em; | <!-- align=none --> }} }} width:{{#if:{{{width}}}|{{#ifeq:{{{width}}}|auto||{{{width}}}px}}|auto}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div><noinclude> | + | <div style="clear:{{{clear|both}}}; float:{{{align|none}}}; {{#ifeq:{{lc:{{{align|}}}}}|right|margin:0em 0em 1em 2.5em;|{{#ifeq:{{lc:{{{align|}}}}}|left|margin:0em 2.5em 1em 0em;|<!-- align=none -->}}}} width:{{#if:{{{width}}}|{{#ifeq:{{{width}}}|auto||{{{width}}}px}}|auto}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div><noinclude> |
{{TOC/doc}} | {{TOC/doc}} | ||
[[Category:Utility templates|{{PAGENAME}}]] | [[Category:Utility templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:16, 24 July 2012
Template for showing the table of contents, with the option to set limited level and alignment to left or right.
- Parameters
- align - "none" (default), "left" or "right"
- limit - max. number of nested levels; if assigned, adds CSS class = "toclimit-<limit>"
- width - "auto" (default) or width size in px
- clear - "both" (default), "left" or "right"
| Language: | English |
|---|