Difference between revisions of "Template:TOC top"

From DMARC Wiki
Jump to navigation Jump to search
(use primary=false, to make the toc not identify as primary)
(fix for align=center per protected edit request)
Line 1: Line 1:
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#if:{{{align|}}}|float:{{{align}}};clear:{{{align}}};|clear:left;}}">
+
{{#ifeq:{{{primary|}}}|false||__NOTOC__}}<div class="toc plainlinks hlist" {{#ifeq:{{{primary|}}}|false||id="toc"}} style="{{#switch:{{lc:{{{align|}}}}}
 +
|left=float: left; clear: {{{clear|left}}};
 +
|right=float: right; clear: {{{clear|right}}};
 +
|center= margin:auto; clear: {{{clear|none}}};
 +
|#default=clear: {{{clear|left}}};
 +
}}">
 
<div id="toctitle">{{#ifeq:{{{primary|}}}|false|<strong>{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2>{{{title|{{MediaWiki:Toc}} }}}</h2>}}
 
<div id="toctitle">{{#ifeq:{{{primary|}}}|false|<strong>{{{title|{{MediaWiki:Toc}} }}}</strong>|<h2>{{{title|{{MediaWiki:Toc}} }}}</h2>}}
 
</div>
 
</div>

Revision as of 08:59, 11 October 2013

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}