Difference between revisions of "Template:Horizontal TOC"
Jump to navigation
Jump to search
(add align switch from template:TOC top) |
(attempt to fix broken align=center) |
||
Line 1: | Line 1: | ||
− | <div class="hlist {{#if:{{{nonum|}}}|nonumtoc}}" style="{{#switch:{{lc:{{{align|}}}}} | + | <div class="hlist {{#if:{{{nonum|}}}|nonumtoc}} {{#ifeq:{{lc:{{{align|}}}}}|center|center}}" style="{{#switch:{{lc:{{{align|}}}}} |
|left=float: left; clear: {{{clear|left}}}; | |left=float: left; clear: {{{clear|left}}}; | ||
|right=float: right; clear: {{{clear|right}}}; | |right=float: right; clear: {{{clear|right}}}; | ||
− | |center= margin:auto; clear: {{{clear|none}}}; | + | |center= width:auto; margin:auto; clear: {{{clear|none}}}; |
|#default=clear: {{{clear|left}}}; | |#default=clear: {{{clear|left}}}; | ||
}}">{{#if:{{{limit|}}}|<div class="toclimit-{{{limit}}}">}}__TOC__</div>{{#if:{{{limit|}}}|</div>}}<noinclude> | }}">{{#if:{{{limit|}}}|<div class="toclimit-{{{limit}}}">}}__TOC__</div>{{#if:{{{limit|}}}|</div>}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
− | <!-- place category | + | <!-- place category links on the /doc sub-page, not here --> |
</noinclude> | </noinclude> |
Revision as of 17:19, 1 November 2014
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}