Difference between revisions of "Template:TOC top"

From DMARC Wiki
Jump to navigation Jump to search
m (27 revisions imported)
 
(17 intermediate revisions by 10 users not shown)
Line 1: Line 1:
__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" style="text-align: center"><span style="font-weight: bold">{{#if:{{{title|}}}|{{{title}}}|{{MediaWiki:Toc}}}}</span></div>
+
|center= margin:auto; clear: {{{clear|none}}};
<div><div class="hlist" style="margin: auto"><noinclude>
+
|#default=clear: {{{clear|left}}};
{{TOC bottom}} {{doc|content=
+
}}">
 
+
<div {{#ifeq:{{{primary|}}}|false|style="text-align:center"|id="toctitle"}}>{{#ifeq:{{{primary|}}}|false|<strong>{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2>{{{title|{{MediaWiki:Toc}} }}}</h2>}}
This is used to create custom table of contents templates such as {{tl|list TOC}}.
+
</div>
 
+
<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.
+
{{TOC bottom}}
 
+
{{documentation}}</noinclude>
== See also ==
 
 
 
* {{tl|TOC bottom}}
 
 
 
[[category:Wikipedia table of contents templates]]
 
[[ur:سانچہ:TOC top]]
 
}}</noinclude>
 

Latest revision as of 16:47, 17 July 2015

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