更多操作
创建页面,内容为“{|<!--======================================================= -- Template:Compact_ToC - (see NOTES at bottom) --======================================================= -- --> id="toc" class="toc" summary="Contents" {{ <!-- ----------------------------------- Check center/right--> #ifeq:{{{center|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|align="center"|}}{{#ifeq:{{{right|}}}|yes|align="right"|}} {{ <!--see NOTE I3 below--> <!-- ----------------------…” |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{| | {|id="toc" class="toc" summary="Contents" {{ | ||
<!-- ----------------------------------- Check center/right | |||
-->#ifeq:{{{center|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|align="center"|}}{{#ifeq:{{{right|}}}|yes|align="right"|}} | |||
{{<!-- ----------------------------------- Check name/side | |||
-->#ifeq:{{{name|}}}|no||! {{{name|{{MediaWiki:Toc}}}}}{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|:|}} | |||
<!-- ----------------------------------- Check center/right--> | |||
#ifeq:{{{center|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|align="center"|}}{{#ifeq:{{{right|}}}|yes|align="right"|}} | |||
{{ | |||
<!-- ----------------------------------- Check name/side--> | |||
#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:{{{nobreak|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes||<div style="text-align:{{{align|left}}};">}}{{<!-- --------------------------------------- Check top | ||
<!-- --------------------------------------- Check top --> | -->#ifeq:{{{top|}}}|yes|[[#top{{!}}Top]] {{{sep| }}}|}} {{<!-- --------------------------------------- Prefix headers-- | ||
#ifeq:{{{top|}}}|yes|[[#top{{!}}Top]] {{{sep| }}}|}} {{ | -->#if:{{{pre1|{{{preSec1|}}}}}}|[[{{{pre1link|{{{preSec1link|#{{{pre1|{{{preSec1|}}}}}}}}}}}}{{!}}{{{pre1name|{{{preSec1name|{{{pre1|{{{preSec1|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | ||
<!-- --------------------------------------- Prefix headers-- | |||
#if:{{{pre1|{{{preSec1|}}}}}}|[[{{{pre1link|{{{preSec1link|#{{{pre1|{{{preSec1|}}}}}}}}}}}}{{!}}{{{pre1name|{{{preSec1name|{{{pre1|{{{preSec1|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | |||
#if:{{{pre2|{{{preSec2|}}}}}}|[[{{{pre2link|{{{preSec2link|#{{{pre2|{{{preSec2|}}}}}}}}}}}}{{!}}{{{pre2name|{{{preSec2name|{{{pre2|{{{preSec2|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | #if:{{{pre2|{{{preSec2|}}}}}}|[[{{{pre2link|{{{preSec2link|#{{{pre2|{{{preSec2|}}}}}}}}}}}}{{!}}{{{pre2name|{{{preSec2name|{{{pre2|{{{preSec2|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | ||
#if:{{{pre3|{{{preSec3|}}}}}}|[[{{{pre3link|{{{preSec3link|#{{{pre3|{{{preSec3|}}}}}}}}}}}}{{!}}{{{pre3name|{{{preSec3name|{{{pre3|{{{preSec3|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | #if:{{{pre3|{{{preSec3|}}}}}}|[[{{{pre3link|{{{preSec3link|#{{{pre3|{{{preSec3|}}}}}}}}}}}}{{!}}{{{pre3name|{{{preSec3name|{{{pre3|{{{preSec3|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | ||
第22行: | 第14行: | ||
#if:{{{pre6|{{{preSec6|}}}}}}|[[{{{pre6link|{{{preSec6link|#{{{pre6|{{{preSec6|}}}}}}}}}}}}{{!}}{{{pre6name|{{{preSec6name|{{{pre6|{{{preSec6|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | #if:{{{pre6|{{{preSec6|}}}}}}|[[{{{pre6link|{{{preSec6link|#{{{pre6|{{{preSec6|}}}}}}}}}}}}{{!}}{{{pre6name|{{{preSec6name|{{{pre6|{{{preSec6|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | ||
#if:{{{pre7|{{{preSec7|}}}}}}|[[{{{pre7link|{{{preSec7link|#{{{pre7|{{{preSec7|}}}}}}}}}}}}{{!}}{{{pre7name|{{{preSec7name|{{{pre7|{{{preSec7|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | #if:{{{pre7|{{{preSec7|}}}}}}|[[{{{pre7link|{{{preSec7link|#{{{pre7|{{{preSec7|}}}}}}}}}}}}{{!}}{{{pre7name|{{{preSec7name|{{{pre7|{{{preSec7|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | ||
#if:{{{pre8|{{{preSec8|}}}}}}|[[{{{pre8link|{{{preSec8link|#{{{pre8|{{{preSec8|}}}}}}}}}}}}{{!}}{{{pre8name|{{{preSec8name|{{{pre8|{{{preSec8|}}}}}}}}}}}}]] {{{sep| }}}|}} {{ | #if:{{{pre8|{{{preSec8|}}}}}}|[[{{{pre8link|{{{preSec8link|#{{{pre8|{{{preSec8|}}}}}}}}}}}}{{!}}{{{pre8name|{{{preSec8name|{{{pre8|{{{preSec8|}}}}}}}}}}}}]] {{{sep| }}}|}} {{<!-- --------------------------------------- Check prebreak | ||
<!-- --------------------------------------- Check prebreak--> | -->#if:{{{prebreak|}}}|{{{prebreak}}}}} {{<!-- --------------------------------------- Check symbols | ||
#if:{{{prebreak|}}}|{{{prebreak}}}}} {{ | -->#ifeq:{{{sym|}}}|yes|[[#!$@|!$@]]|}} {{<!-- --------------------------------------- Check numbers | ||
<!-- --------------------------------------- Check symbols --> | -->#ifeq:{{{num|}}}|yes|{{{0-9|[[#0–9|0–9]]}}}|}} {{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]|<!-- --------------------------------------- List letters | ||
#ifeq:{{{sym|}}}|yes|[[#!$@|!$@]]|}} {{ | -->}} {{{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| |<br />}}{{<!-- ------------------------------ Check after-header1 | ||
<!-- --------------------------------------- Check numbers --> | -->#if:{{{custom1|{{{Sec1|}}}}}}|[[{{{custom1link|{{{Sec1link|#{{{custom1|{{{Sec1|}}}}}}}}}}}}{{!}}{{{custom1name|{{{Sec1name|{{{custom1|{{{Sec1|}}}}}}}}}}}}]] |}}{{<!-- ------------------------------ Check after-header2... | ||
#ifeq:{{{num|}}}|yes|{{{0-9|[[#0–9|0–9]]}}}|}} {{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]| | -->#if:{{{custom2|{{{Sec2|}}}}}}|{{{sep| }}} [[{{{custom2link|{{{Sec2link|#{{{custom2|{{{Sec2|}}}}}}}}}}}}{{!}}{{{custom2name|{{{Sec2name|{{{custom2|{{{Sec2|}}}}}}}}}}}}]] |}}{{ | ||
<!-- --------------------------------------- List letters --> | |||
}} {{{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| |<br />}}{{ | |||
<!-- ------------------------------ Check after-header1 | |||
#if:{{{custom1|{{{Sec1|}}}}}}|[[{{{custom1link|{{{Sec1link|#{{{custom1|{{{Sec1|}}}}}}}}}}}}{{!}}{{{custom1name|{{{Sec1name|{{{custom1|{{{Sec1|}}}}}}}}}}}}]] |}}{{ | |||
<!-- ------------------------------ Check after-header2...--> | |||
#if:{{{custom2|{{{Sec2|}}}}}}|{{{sep| }}} [[{{{custom2link|{{{Sec2link|#{{{custom2|{{{Sec2|}}}}}}}}}}}}{{!}}{{{custom2name|{{{Sec2name|{{{custom2|{{{Sec2|}}}}}}}}}}}}]] |}}{{ | |||
#if:{{{custom3|{{{Sec3|}}}}}}|{{{sep| }}} [[{{{custom3link|{{{Sec3link|#{{{custom3|{{{Sec3|}}}}}}}}}}}}{{!}}{{{custom3name|{{{Sec3name|{{{custom3|{{{Sec3|}}}}}}}}}}}}]] |}}{{ | #if:{{{custom3|{{{Sec3|}}}}}}|{{{sep| }}} [[{{{custom3link|{{{Sec3link|#{{{custom3|{{{Sec3|}}}}}}}}}}}}{{!}}{{{custom3name|{{{Sec3name|{{{custom3|{{{Sec3|}}}}}}}}}}}}]] |}}{{ | ||
#if:{{{custom4|{{{Sec4|}}}}}}|{{{sep| }}} [[{{{custom4link|{{{Sec4link|#{{{custom4|{{{Sec4|}}}}}}}}}}}}{{!}}{{{custom4name|{{{Sec4name|{{{custom4|{{{Sec4|}}}}}}}}}}}}]] |}}{{ | #if:{{{custom4|{{{Sec4|}}}}}}|{{{sep| }}} [[{{{custom4link|{{{Sec4link|#{{{custom4|{{{Sec4|}}}}}}}}}}}}{{!}}{{{custom4name|{{{Sec4name|{{{custom4|{{{Sec4|}}}}}}}}}}}}]] |}}{{ | ||
第41行: | 第26行: | ||
#if:{{{custom6|{{{Sec6|}}}}}}|{{{sep| }}} [[{{{custom6link|{{{Sec6link|#{{{custom6|{{{Sec6|}}}}}}}}}}}}{{!}}{{{custom6name|{{{Sec6name|{{{custom6|{{{Sec6|}}}}}}}}}}}}]] |}}{{ | #if:{{{custom6|{{{Sec6|}}}}}}|{{{sep| }}} [[{{{custom6link|{{{Sec6link|#{{{custom6|{{{Sec6|}}}}}}}}}}}}{{!}}{{{custom6name|{{{Sec6name|{{{custom6|{{{Sec6|}}}}}}}}}}}}]] |}}{{ | ||
#if:{{{custom7|{{{Sec7|}}}}}}|{{{sep| }}} [[{{{custom7link|{{{Sec7link|#{{{custom7|{{{Sec7|}}}}}}}}}}}}{{!}}{{{custom7name|{{{Sec7name|{{{custom7|{{{Sec7|}}}}}}}}}}}}]] |}}{{ | #if:{{{custom7|{{{Sec7|}}}}}}|{{{sep| }}} [[{{{custom7link|{{{Sec7link|#{{{custom7|{{{Sec7|}}}}}}}}}}}}{{!}}{{{custom7name|{{{Sec7name|{{{custom7|{{{Sec7|}}}}}}}}}}}}]] |}}{{ | ||
#if:{{{custom8|{{{Sec8|}}}}}}|{{{sep| }}} [[{{{custom8link|{{{Sec8link|#{{{custom8|{{{Sec8|}}}}}}}}}}}}{{!}}{{{custom8name|{{{Sec8name|{{{custom8|{{{Sec8|}}}}}}}}}}}}]] |}}{{ | #if:{{{custom8|{{{Sec8|}}}}}}|{{{sep| }}} [[{{{custom8link|{{{Sec8link|#{{{custom8|{{{Sec8|}}}}}}}}}}}}{{!}}{{{custom8name|{{{Sec8name|{{{custom8|{{{Sec8|}}}}}}}}}}}}]] |}}{{<!-- ---------------------------------- Check seealso | ||
<!-- ---------------------------------- Check seealso--> | -->#ifeq:{{{seealso|}}}|yes|{{{sep| }}} [[#See also{{!}}See also]] |}}{{<!-- ---------------------------------- Check notesfirst | ||
#ifeq:{{{seealso|}}}|yes|{{{sep| }}} [[#See also{{!}}See also]] |}}{{ | -->#ifeq:{{{notesfirst|}}}|yes|{{{sep| }}} [[#Notes{{!}}Notes]] |}}{{<!-- ---------------------------------- Check refs | ||
<!-- ---------------------------------- Check notesfirst--> | -->#ifeq:{{{refs|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{{sep| }}} [[#References{{!}}References]] |}}{{<!-- ---------------------------------- Check notes | ||
#ifeq:{{{notesfirst|}}}|yes|{{{sep| }}} [[#Notes{{!}}Notes]] |}}{{ | -->#ifeq:{{{notes|}}}|yes|{{{sep| }}} [[#Notes{{!}}Notes]] |}}{{<!-- ---------------------------------- Further reading | ||
<!-- ---------------------------------- Check refs--> | -->#ifeq:{{{further|}}}|yes|{{{sep| }}} [[#Further reading{{!}}Further reading]] |}}{{<!-- ---------------------------------- Check extlinks | ||
#ifeq:{{{refs|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|{{{sep| }}} [[#References{{!}}References]] |}}{{ | -->#ifeq:{{{extlinks|}}}|yes|{{{sep| }}} [[#External links{{!}}External links]]|}}{{<!-- ================================== Check invalid words | ||
<!-- ---------------------------------- Check notes--> | -->#ifeq:{{{break|x}}}|x||<br /> | ||
#ifeq:{{{notes|}}}|yes|{{{sep| }}} [[#Notes{{!}}Notes]] |}}{{ | |||
<!-- ---------------------------------- Further reading--> | |||
#ifeq:{{{further|}}}|yes|{{{sep| }}} [[#Further reading{{!}}Further reading]] |}}{{ | |||
<!-- ---------------------------------- Check extlinks--> | |||
#ifeq:{{{extlinks|}}}|yes|{{{sep| }}} [[#External links{{!}}External links]]|}}{{ | |||
<!-- ================================== Check invalid words--> | |||
#ifeq:{{{break|x}}}|x||<br /> | |||
[[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|break}}}}" – try {{bxt|{{para|nobreak|y}}}}. | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|break}}}}" – try {{bxt|{{para|nobreak|y}}}}. | ||
}}{{#ifeq:{{{centre|x}}}|x||<br> | }}{{#ifeq:{{{centre|x}}}|x||<br> | ||
第72行: | 第50行: | ||
[[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|extlink}}}}" – try plural {{bxt|{{para|extlinks|y}}}}. | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|extlink}}}}" – try plural {{bxt|{{para|extlinks|y}}}}. | ||
}}</div> | }}</div> | ||
|}__NOTOC__ | |}__NOTOC__ | ||