Template:TOC top: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(One intermediate revision by the same user 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|}}}}} | <includeonly>{{#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}}}; | | left=float: left; clear: {{{clear|left}}}; | ||
| right=float: right; clear: {{{clear|right}}}; | | right=float: right; clear: {{{clear|right}}}; | ||
Line 6: | Line 6: | ||
}}"> | }}"> | ||
<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 {{#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><noinclude> | </div></includeonly><noinclude> | ||
{{TOC bottom}} | {{TOC bottom}} | ||
{{documentation}} | {{documentation}} | ||
[[Category:Functionality templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 16:18, 31 January 2025
Starts a table of contents.
See also
- Template:TOC bottom – Inserts
</div>
and is used to mark the end of a table of contents.