Editing Template:TOC top

From MINR.ORG WIKI

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#switch:{{lc:{{{align|}}}}}
+
__NOTOC__<table class="toc plainlinks" id="toc" {{#if:{{{align|}}}|align="{{{align}}}"}}>
|left=float: left; clear: {{{clear|left}}};
+
<tr>
|right=float: right; clear: {{{clear|right}}};
+
<td>
|center= margin:auto; clear: {{{clear|none}}};
+
<div id="toctitle" style="text-align: center"><span style="font-weight: bold">{{#if:{{{title|}}}|{{{title}}}|{{MediaWiki:Toc}}}}</span></div>
|#default=clear: {{{clear|left}}};
+
<div><div class="hlist" style="margin: auto"><noinclude>
}}">
+
{{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>}}
+
 
</div>
+
This is used to create custom table of contents templates such as {{tl|list TOC}}.
<noinclude>
+
 
{{TOC bottom}}
+
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.
{{documentation}}</noinclude>
+
 
 +
== See also ==
 +
 
 +
* {{tl|TOC bottom}}
 +
 
 +
[[category:Wikipedia table of contents templates]]
 +
 
 +
}}</noinclude>

Please note that all contributions to MINR.ORG WIKI may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see MINR.ORG WIKI:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)