Difference between revisions of "Template:Compact ToC"
Jump to navigation
Jump to search
m (add alternative syntax and track old syntax with Category:Pages using compact toc with deprecated syntax) |
(TESTED - added "allowtoc" parameter which, when activated, allows the automatically-generated table of contents to appear on the page even when this template is transcluded (it disables "__NOTOC__"; needed on WP pages that use this template in examples)) |
||
Line 1: | Line 1: | ||
− | __NOTOC__<!-- | + | {{#if:{{{allowtoc|}}}||__NOTOC__}}<!-- |
-->{{#ifeq:{{{center|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes | | -->{{#ifeq:{{{center|{{#ifeq:{{{1}}}|short1|yes}}}}}|yes | | ||
<div style="text-align:center;"><!-- | <div style="text-align:center;"><!-- |