Difference between revisions of "Template:Horizontal TOC"

From DMARC Wiki
Jump to navigation Jump to search
(fix)
m (17 revisions imported)
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<div class="toc hlist" summary="Contents" align="{{{align|}}}">
+
<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>
 

Latest revision as of 02:11, 17 July 2015

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