Difference between revisions of "Template:TOC top"

From DMARC Wiki
Jump to navigation Jump to search
m (optional title)
m (27 revisions imported)
 
(24 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__<table class="toc plainlinks" id="toc" {{#if:{{{align|}}}|align="{{{align}}}"}}>
+
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#switch:{{lc:{{{align|}}}}}
<tr>
+
|left=float: left; clear: {{{clear|left}}};
<td>
+
|right=float: right; clear: {{{clear|right}}};
<div id="toctitle">
+
|center= margin:auto; clear: {{{clear|none}}};
<h2>{{#if:{{{title|}}}|{{{title}}}|{{MediaWiki:Toc}}}}</h2>
+
|#default=clear: {{{clear|left}}};
 +
}}">
 +
<div {{#ifeq:{{{primary|}}}|false|style="text-align:center"|id="toctitle"}}>{{#ifeq:{{{primary|}}}|false|<strong>{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2>{{{title|{{MediaWiki:Toc}} }}}</h2>}}
 
</div>
 
</div>
<div><div class="hlist" style="margin: auto"></includeonly><noinclude>{{doc|content=
+
<noinclude>
 
+
{{TOC bottom}}
This is used to create custom table of contents templates such as {{tl|list TOC}}.
+
{{documentation}}</noinclude>
 
 
Please note that this is '''solely for ease of maintaining existing templates'''. Please '''do not use this to write new templates''': instead, browse through [[:category:Wikipedia table of contents templates]] and use an existing template. This code is one of the final pieces in cleaning up years of redundant and overlapping code in this area.
 
 
 
== See also ==
 
 
 
* {{tl|TOC bottom}}
 
 
 
[[category:Wikipedia table of contents templates]]
 
}}</noinclude>
 

Latest revision as of 16:47, 17 July 2015

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