Difference between revisions of "Template:Compact ToC"
Jump to navigation
Jump to search
(fixing vertical alignment issue when side=yes) |
(Didn't work as expected; will have to sandbox it and monkey around a bit.) |
||
Line 1: | Line 1: | ||
__NOTOC__{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | <div style="text-align: center;"> }}<div class="toc plainlinks hlist" id="toc" style="{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | margin-left: auto; margin-right: auto; | {{ #ifeq: {{{right}}} | yes | float: right; clear: right; }} }} text-align: {{{align|left}}};"> | __NOTOC__{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | <div style="text-align: center;"> }}<div class="toc plainlinks hlist" id="toc" style="{{ #ifeq: {{{center|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | margin-left: auto; margin-right: auto; | {{ #ifeq: {{{right}}} | yes | float: right; clear: right; }} }} text-align: {{{align|left}}};"> | ||
− | {{ #ifeq: {{{name}}} | no || <div id="toctitle" style="text-align: center; {{ #ifeq: {{{side|{{ #ifeq:{{{1}}} | short1 | yes }}}}} | yes | | + | {{ #ifeq: {{{name}}} | no || <div id="toctitle" style="text-align: center; {{ #ifeq: {{{side|{{ #ifeq:{{{1}}} | short1 | yes }}}}} | yes | display: inline-block; }}"><span style="font-weight: bold;">{{{name|{{MediaWiki:Toc}} }}}{{ #ifeq: {{{side|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | : }}</span></div> }} |
<div style="margin: auto; white-space: nowrap; {{ #ifeq: {{{side|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | display: inline-block; }}">{{ #ifeq: {{{top}}} | yes | | <div style="margin: auto; white-space: nowrap; {{ #ifeq: {{{side|{{ #ifeq: {{{1}}} | short1 | yes }}}}} | yes | display: inline-block; }}">{{ #ifeq: {{{top}}} | yes | | ||
* [[#top|Top]]}} {{ #if: {{{pre1|{{{preSec1|}}} }}} | | * [[#top|Top]]}} {{ #if: {{{pre1|{{{preSec1|}}} }}} | |