Difference between revisions of "Template:Compact ToC"

From DMARC Wiki
Jump to navigation Jump to search
(rm masses of redundant comments, legacy implementation notes, and other cruft that only interfered with the refactoring this badly needs)
(finish paring this down. next step is to properly hlistify it)
Line 1: Line 1:
{| id="toc" class="toc" summary="Contents" {{#ifeq:{{{center|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|align="center"|}}{{#ifeq:{{{right|}}}|yes|align="right"|}}
+
{| id="toc" class="toc" summary="Contents" {{#ifeq:{{{center|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|align="center"}}{{#ifeq:{{{right|}}}|yes|align=right}}
{{      
+
{{#ifeq:{{{name|}}}|no||! {{{name|{{MediaWiki:Toc}}}}}{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|:}}
#ifeq:{{{name|}}}|no||! {{{name|{{MediaWiki:Toc}}}}}{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|:|}}
+
{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{!}}|{{!}}-}} }}
{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{!}}|{{!}}-}}}}
+
|{{#ifeq:{{{nobreak|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes||<div style="text-align:{{{align|left}}}">}}{{#ifeq:{{{top|}}}|yes|[[#top{{!}}Top]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre1|{{{preSec1|}}}}}}|[[{{{pre1link|{{{preSec1link|#{{{pre1|{{{preSec1|}}} }}} }}} }}}{{!}}{{{pre1name|{{{preSec1name|{{{pre1|{{{preSec1|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre2|{{{preSec2|}}}}}}|[[{{{pre2link|{{{preSec2link|#{{{pre2|{{{preSec2|}}} }}} }}} }}}{{!}}{{{pre2name|{{{preSec2name|{{{pre2|{{{preSec2|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre3|{{{preSec3|}}}}}}|[[{{{pre3link|{{{preSec3link|#{{{pre3|{{{preSec3|}}} }}} }}} }}}{{!}}{{{pre3name|{{{preSec3name|{{{pre3|{{{preSec3|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre4|{{{preSec4|}}}}}}|[[{{{pre4link|{{{preSec4link|#{{{pre4|{{{preSec4|}}} }}} }}} }}}{{!}}{{{pre4name|{{{preSec4name|{{{pre4|{{{preSec4|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre5|{{{preSec5|}}}}}}|[[{{{pre5link|{{{preSec5link|#{{{pre5|{{{preSec5|}}} }}} }}} }}}{{!}}{{{pre5name|{{{preSec5name|{{{pre5|{{{preSec5|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre6|{{{preSec6|}}}}}}|[[{{{pre6link|{{{preSec6link|#{{{pre6|{{{preSec6|}}} }}} }}} }}}{{!}}{{{pre6name|{{{preSec6name|{{{pre6|{{{preSec6|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre7|{{{preSec7|}}}}}}|[[{{{pre7link|{{{preSec7link|#{{{pre7|{{{preSec7|}}} }}} }}} }}}{{!}}{{{pre7name|{{{preSec7name|{{{pre7|{{{preSec7|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{pre8|{{{preSec8|}}}}}}|[[{{{pre8link|{{{preSec8link|#{{{pre8|{{{preSec8|}}} }}} }}} }}}{{!}}{{{pre8name|{{{preSec8name|{{{pre8|{{{preSec8|}}} }}} }}} }}}]]&nbsp;{{{sep|&nbsp;}}}}} {{#if:{{{prebreak|}}}|{{{prebreak}}}}} {{#ifeq:{{{sym|}}}|yes|[[#!$@|!$@]]}} {{#ifeq:{{{num|}}}|yes|{{{0-9|[[#0–9|0–9]]}}} }}{{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]}} {{{a|[[#A|A]]}}} {{{b|[[#B|B]]}}} {{{c|[[#C|C]]}}} {{{d|[[#D|D]]}}} {{{e|[[#E|E]]}}} {{{f|[[#F|F]]}}} {{{g|[[#G|G]]}}} {{{h|[[#H|H]]}}} {{{i|[[#I|I]]}}} {{{j|[[#J|J]]}}} {{{k|[[#K|K]]}}} {{{l|[[#L|L]]}}} {{{m|[[#M|M]]}}} {{{n|[[#N|N]]}}} {{{o|[[#O|O]]}}} {{{p|[[#P|P]]}}} {{{q|[[#Q|Q]]}}} {{{r|[[#R|R]]}}} {{{s|[[#S|S]]}}} {{{t|[[#T|T]]}}} {{{u|[[#U|U]]}}} {{{v|[[#V|V]]}}} {{{w|[[#W|W]]}}} {{{x|[[#X|X]]}}} {{{y|[[#Y|Y]]}}} {{{z|[[#Z|Z]]}}} {{#ifeq:{{{nobreak|{{#ifeq:{{{1}}}|short1|yes|}}}}}|yes|&nbsp;|<br />}}{{#if:{{{custom1|{{{Sec1|}}}}}}|[[{{{custom1link|{{{Sec1link|#{{{custom1|{{{Sec1|}}} }}} }}} }}}{{!}}{{{custom1name|{{{Sec1name|{{{custom1|{{{Sec1|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom2|{{{Sec2|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom2link|{{{Sec2link|#{{{custom2|{{{Sec2|}}} }}} }}} }}}{{!}}{{{custom2name|{{{Sec2name|{{{custom2|{{{Sec2|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom3|{{{Sec3|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom3link|{{{Sec3link|#{{{custom3|{{{Sec3|}}} }}} }}} }}}{{!}}{{{custom3name|{{{Sec3name|{{{custom3|{{{Sec3|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom4|{{{Sec4|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom4link|{{{Sec4link|#{{{custom4|{{{Sec4|}}} }}} }}} }}}{{!}}{{{custom4name|{{{Sec4name|{{{custom4|{{{Sec4|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom5|{{{Sec5|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom5link|{{{Sec5link|#{{{custom5|{{{Sec5|}}} }}} }}} }}}{{!}}{{{custom5name|{{{Sec5name|{{{custom5|{{{Sec5|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom6|{{{Sec6|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom6link|{{{Sec6link|#{{{custom6|{{{Sec6|}}} }}} }}} }}}{{!}}{{{custom6name|{{{Sec6name|{{{custom6|{{{Sec6|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom7|{{{Sec7|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom7link|{{{Sec7link|#{{{custom7|{{{Sec7|}}} }}} }}} }}}{{!}}{{{custom7name|{{{Sec7name|{{{custom7|{{{Sec7|}}} }}} }}} }}}]]&nbsp;}}{{#if:{{{custom8|{{{Sec8|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom8link|{{{Sec8link|#{{{custom8|{{{Sec8|}}} }}} }}} }}}{{!}}{{{custom8name|{{{Sec8name|{{{custom8|{{{Sec8|}}} }}} }}} }}}]]&nbsp;}}{{#ifeq:{{{seealso|}}}|yes|{{{sep|&nbsp;}}} [[#See also{{!}}See also]]&nbsp;}}{{#ifeq:{{{notesfirst|}}}|yes|{{{sep|&nbsp;}}} [[#Notes{{!}}Notes]]&nbsp;}}{{#ifeq:{{{refs|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{{sep|&nbsp;}}} [[#References{{!}}References]]&nbsp;}}{{#ifeq:{{{notes|}}}|yes|{{{sep|&nbsp;}}} [[#Notes{{!}}Notes]]&nbsp;}}{{#ifeq:{{{further|}}}|yes|{{{sep|&nbsp;}}} [[#Further reading{{!}}Further reading]]&nbsp;}}{{#ifeq:{{{extlinks|}}}|yes|{{{sep|&nbsp;}}} [[#External links{{!}}External links]]}}</div>
|{{#ifeq:{{{nobreak|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes||<div style="text-align:{{{align|left}}};">}}{{#ifeq:{{{top|}}}|yes|[[#top{{!}}Top]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre1|{{{preSec1|}}}}}}|[[{{{pre1link|{{{preSec1link|#{{{pre1|{{{preSec1|}}}}}}}}}}}}{{!}}{{{pre1name|{{{preSec1name|{{{pre1|{{{preSec1|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre2|{{{preSec2|}}}}}}|[[{{{pre2link|{{{preSec2link|#{{{pre2|{{{preSec2|}}}}}}}}}}}}{{!}}{{{pre2name|{{{preSec2name|{{{pre2|{{{preSec2|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre3|{{{preSec3|}}}}}}|[[{{{pre3link|{{{preSec3link|#{{{pre3|{{{preSec3|}}}}}}}}}}}}{{!}}{{{pre3name|{{{preSec3name|{{{pre3|{{{preSec3|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre4|{{{preSec4|}}}}}}|[[{{{pre4link|{{{preSec4link|#{{{pre4|{{{preSec4|}}}}}}}}}}}}{{!}}{{{pre4name|{{{preSec4name|{{{pre4|{{{preSec4|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre5|{{{preSec5|}}}}}}|[[{{{pre5link|{{{preSec5link|#{{{pre5|{{{preSec5|}}}}}}}}}}}}{{!}}{{{pre5name|{{{preSec5name|{{{pre5|{{{preSec5|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre6|{{{preSec6|}}}}}}|[[{{{pre6link|{{{preSec6link|#{{{pre6|{{{preSec6|}}}}}}}}}}}}{{!}}{{{pre6name|{{{preSec6name|{{{pre6|{{{preSec6|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre7|{{{preSec7|}}}}}}|[[{{{pre7link|{{{preSec7link|#{{{pre7|{{{preSec7|}}}}}}}}}}}}{{!}}{{{pre7name|{{{preSec7name|{{{pre7|{{{preSec7|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{pre8|{{{preSec8|}}}}}}|[[{{{pre8link|{{{preSec8link|#{{{pre8|{{{preSec8|}}}}}}}}}}}}{{!}}{{{pre8name|{{{preSec8name|{{{pre8|{{{preSec8|}}}}}}}}}}}}]]&nbsp;{{{sep|&nbsp;}}}|}} {{#if:{{{prebreak|}}}|{{{prebreak}}}}} {{#ifeq:{{{sym|}}}|yes|[[#!$@|!$@]]|}} {{#ifeq:{{{num|}}}|yes|{{{0-9|[[#0–9|0–9]]}}}|}} {{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]|
 
}} {{{a|[[#A|A]]}}} {{{b|[[#B|B]]}}} {{{c|[[#C|C]]}}} {{{d|[[#D|D]]}}} {{{e|[[#E|E]]}}} {{{f|[[#F|F]]}}} {{{g|[[#G|G]]}}} {{{h|[[#H|H]]}}} {{{i|[[#I|I]]}}} {{{j|[[#J|J]]}}} {{{k|[[#K|K]]}}} {{{l|[[#L|L]]}}} {{{m|[[#M|M]]}}} {{{n|[[#N|N]]}}} {{{o|[[#O|O]]}}} {{{p|[[#P|P]]}}} {{{q|[[#Q|Q]]}}} {{{r|[[#R|R]]}}} {{{s|[[#S|S]]}}} {{{t|[[#T|T]]}}} {{{u|[[#U|U]]}}} {{{v|[[#V|V]]}}} {{{w|[[#W|W]]}}} {{{x|[[#X|X]]}}} {{{y|[[#Y|Y]]}}} {{{z|[[#Z|Z]]}}} {{#ifeq:{{{nobreak|{{#ifeq:{{{1}}}|short1|yes|}}}}}|yes|&nbsp;|<br />}}{{#if:{{{custom1|{{{Sec1|}}}}}}|[[{{{custom1link|{{{Sec1link|#{{{custom1|{{{Sec1|}}}}}}}}}}}}{{!}}{{{custom1name|{{{Sec1name|{{{custom1|{{{Sec1|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom2|{{{Sec2|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom2link|{{{Sec2link|#{{{custom2|{{{Sec2|}}}}}}}}}}}}{{!}}{{{custom2name|{{{Sec2name|{{{custom2|{{{Sec2|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom3|{{{Sec3|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom3link|{{{Sec3link|#{{{custom3|{{{Sec3|}}}}}}}}}}}}{{!}}{{{custom3name|{{{Sec3name|{{{custom3|{{{Sec3|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom4|{{{Sec4|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom4link|{{{Sec4link|#{{{custom4|{{{Sec4|}}}}}}}}}}}}{{!}}{{{custom4name|{{{Sec4name|{{{custom4|{{{Sec4|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom5|{{{Sec5|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom5link|{{{Sec5link|#{{{custom5|{{{Sec5|}}}}}}}}}}}}{{!}}{{{custom5name|{{{Sec5name|{{{custom5|{{{Sec5|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom6|{{{Sec6|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom6link|{{{Sec6link|#{{{custom6|{{{Sec6|}}}}}}}}}}}}{{!}}{{{custom6name|{{{Sec6name|{{{custom6|{{{Sec6|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom7|{{{Sec7|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom7link|{{{Sec7link|#{{{custom7|{{{Sec7|}}}}}}}}}}}}{{!}}{{{custom7name|{{{Sec7name|{{{custom7|{{{Sec7|}}}}}}}}}}}}]]&nbsp;|}}{{#if:{{{custom8|{{{Sec8|}}}}}}|{{{sep|&nbsp;}}} [[{{{custom8link|{{{Sec8link|#{{{custom8|{{{Sec8|}}}}}}}}}}}}{{!}}{{{custom8name|{{{Sec8name|{{{custom8|{{{Sec8|}}}}}}}}}}}}]]&nbsp;|}}{{#ifeq:{{{seealso|}}}|yes|{{{sep|&nbsp;}}} [[#See also{{!}}See also]]&nbsp;|}}{{#ifeq:{{{notesfirst|}}}|yes|{{{sep|&nbsp;}}} [[#Notes{{!}}Notes]]&nbsp;|}}{{#ifeq:{{{refs|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{{sep|&nbsp;}}} [[#References{{!}}References]]&nbsp;|}}{{#ifeq:{{{notes|}}}|yes|{{{sep|&nbsp;}}} [[#Notes{{!}}Notes]]&nbsp;|}}{{#ifeq:{{{further|}}}|yes|{{{sep|&nbsp;}}} [[#Further reading{{!}}Further reading]]&nbsp;|}}{{#ifeq:{{{extlinks|}}}|yes|{{{sep|&nbsp;}}} [[#External links{{!}}External links]]|}}</div>
 
 
|}__NOTOC__<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES & INTERWIKIS TO /doc PAGE, THANKS --></noinclude>
 
|}__NOTOC__<noinclude>{{documentation}}<!-- PLEASE ADD CATEGORIES & INTERWIKIS TO /doc PAGE, THANKS --></noinclude>

Revision as of 16:05, 6 February 2013

Contents
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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