Difference between revisions of "Template:Horizontal TOC"

From DMARC Wiki
Jump to navigation Jump to search
(add TOC limit option)
(add align switch from template:TOC top)
Line 1: Line 1:
<div class="hlist {{#if:{{{nonum|}}}|nonumtoc}}">{{#if:{{{limit|}}}|<div class="toclimit-{{{limit}}}">}}__TOC__</div>{{#if:{{{limit|}}}|</div>}}<noinclude>
+
<div class="hlist {{#if:{{{nonum|}}}|nonumtoc}}" style="{{#switch:{{lc:{{{align|}}}}}
 +
|left=float: left; clear: {{{clear|left}}};
 +
|right=float: right; clear: {{{clear|right}}};
 +
|center= margin:auto; clear: {{{clear|none}}};
 +
|#default=clear: {{{clear|left}}};
 +
}}">{{#if:{{{limit|}}}|<div class="toclimit-{{{limit}}}">}}__TOC__</div>{{#if:{{{limit|}}}|</div>}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- place category and language links on the /doc sub-page, not here -->
 
<!-- place category and language links on the /doc sub-page, not here -->
 
</noinclude>
 
</noinclude>

Revision as of 17:09, 14 March 2014

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}