Difference between revisions of "Template:Horizontal TOC"

From DMARC Wiki
Jump to navigation Jump to search
(test)
m (17 revisions imported)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<div class="hlist">
+
<div class="hlist {{#if:{{{nonum|}}}|nonumtoc}} {{#ifeq:{{lc:{{{align|}}}}}|center|center}}" style="{{#switch:{{lc:{{{align|}}}}}
__TOC__
+
|left=float: left; clear: {{{clear|left}}};
</div><noinclude>{{doc|content=
+
|right=float: right; clear: {{{clear|right}}};
 
+
|center= width:auto; margin:auto; clear: {{{clear|none}}};
This template lays out the table of contents in a [[WP:HLIST|horizontal list]] rather than a vertical one.
+
|#default=clear: {{{clear|left}}};
 
+
}}">{{#if:{{{limit|}}}|<div class="toclimit-{{{limit}}}">}}__TOC__</div>{{#if:{{{limit|}}}|</div>}}<noinclude>
== Usage ==
+
{{documentation}}
 
+
<!-- place category links on the /doc sub-page, not here -->
<pre>
+
</noinclude>
{{horizontaltoc}}
 
</pre>
 
 
 
There is no need to specify <code><nowiki>__NOTOC__</nowiki></code>: this template handles that automatically.
 
 
 
[[Category:Wikipedia table of contents templates]]
 
}}</noinclude>
 
 
 
== Test 2 ==
 
 
 
== Test 3 ==
 

Latest revision as of 02:11, 17 July 2015

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