Template:TOC top: Difference between revisions

Jump to navigation Jump to search
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;"|id="toctitle"}}>{{#ifeq:{{{primary|}}}|false|<strong>{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2>{{{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>
</div>
<noinclude>
{{TOC bottom}}
{{documentation}}</noinclude>

Latest revision as of 04:45, 23 April 2018