Template:TOC top: Difference between revisions

From IxWiki
Jump to navigation Jump to search
>Izno
okay, this is not well formed
 
wp>Izno
use tstyles
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|}}}}}
<templatestyles src="TOC top/styles.css"/>{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks toc-top {{#switch:{{lc:{{{align|}}}}} |left=toc-top-left |right=toc-top-right |center=toc-top-center}}" role="navigation" aria-labelledby="toc-title-text-template" {{#ifeq:{{{primary|}}}|false||id="toc"}} {{#if:{{{clear|}}}|style="clear: {{{clear}}}"}}>
|left=float: left; clear: {{{clear|left}}};
<div class="{{#ifeq:{{{primary|}}}|false|toc-top-false-title|toctitle}}">{{#ifeq:{{{primary|}}}|false|<span role="heading" id="toc-title-text-template">{{{title|{{MediaWiki:Toc}} }}}</span>|<h2 id="toc-title-text">{{{title|{{MediaWiki:Toc}} }}}</h2>}}</div>
|right=float: right; clear: {{{clear|right}}};
{{flatlist}}<noinclude>
|center= margin:auto; clear: {{{clear|none}}};
|#default=clear: {{{clear|left}}};
}}">
<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>
{{TOC bottom}}
{{TOC bottom}}
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Revision as of 13:28, 28 October 2021