Template:TOC top: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi- (talk | contribs) mNo edit summary |
imported>Matt Fitzpatrick (WAI-ARIA navigation role for container, heading role for "Contents") |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#switch:{{lc:{{{align|}}}}} | {{#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}}}; | ||
|center= margin: auto; clear: {{{clear|none}}}; | |center= margin:auto; clear: {{{clear|none}}}; | ||
|#default=clear: {{{clear|left}}}; | |#default=clear: {{{clear|left}}}; | ||
}}"> | }}"> | ||
<div {{#ifeq:{{{primary|}}}|false|style="text-align: center | <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> | ||
<noinclude> | |||
{{TOC bottom}} | |||
{{documentation}}</noinclude> |
Latest revision as of 04:45, 23 April 2018
File:Test Template Info-Icon - Version (2).svg Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |