Template:TOC top: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
m (30 revisions imported from wikipedia:Template:TOC_top) |
||
(28 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div role="navigation" aria-labelledby="toc-title-text" class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#switch:{{lc:{{{align|}}}}} |
|||
|left=float: left; clear: {{{clear|left}}}; |
|||
<tr> |
|||
|right=float: right; clear: {{{clear|right}}}; |
|||
<td> |
|||
|center= margin:auto; clear: {{{clear|none}}}; |
|||
<div id="toctitle"> |
|||
|#default=clear: {{{clear|left}}}; |
|||
<h2>{{MediaWiki:Toc}}</h2> |
|||
}}"> |
|||
</div> |
|||
<div {{#ifeq:{{{primary|}}}|false|style="text-align:center"|class="toctitle"}}>{{#ifeq:{{{primary|}}}|false|<strong role="heading" id="toc-title-text">{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2 id="toc-title-text">{{{title|{{MediaWiki:Toc}} }}}</h2>}} |
|||
<div><div class="hlist" style="margin: auto"></includeonly><noinclude>{{doc|content= |
|||
⚫ | |||
⚫ | |||
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 == |
|||
⚫ | |||
[[category:Wikipedia table of contents templates]] |
|||
⚫ |