Difference between revisions of "Template:TOC top"

From DMARC Wiki
Jump to navigation Jump to search
m (c)
(split doc, simplify a conditional)
Line 2: Line 2:
 
<tr>
 
<tr>
 
<td>
 
<td>
<div id="toctitle" style="text-align: center"><span style="font-weight: bold">{{#if:{{{title|}}}|{{{title}}}|{{MediaWiki:Toc}}}}</span></div>
+
<div id="toctitle" style="text-align: center"><span style="font-weight: bold">{{{title|{{MediaWiki:Toc}} }}}</span></div>
 
<div><div class="hlist" style="margin: auto"><noinclude>
 
<div><div class="hlist" style="margin: auto"><noinclude>
{{TOC bottom}} {{doc|content=
+
{{TOC bottom}}
 
+
{{documentation}}</noinclude>
This is used to create custom table of contents templates such as {{tl|list TOC}}.
 
 
 
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]]
 
[[bn:টেমপ্লেট:TOC top]]
 
[[ur:سانچہ:TOC top]]
 
}}</noinclude>
 

Revision as of 10:23, 7 February 2013