Template:CompactTOC: Difference between revisions
No edit summary |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 26: | Line 26: | ||
#ifeq:{{{num|}}}|yes|[[#0–9|0–9]]|}} {{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]|}} {{ | #ifeq:{{{num|}}}|yes|[[#0–9|0–9]]|}} {{#ifeq:{{{symnum|}}}|yes|[[#!–9|!–9]]|}} {{ | ||
<!-- List letters --> | <!-- List letters --> | ||
#ifeq:{{{ | #ifeq:{{{abc|}}}|no|| | ||
{{{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 />}} }} {{ | {{{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 />}} }} {{#vardefine: custommenu}} {{ | ||
#forargs: custom | |||
# | | key | ||
< | | value | ||
# | | <nowiki/> | ||
#if:{{ | {{#vardefine: custommenu|{{#var: custommenu}}{{#if:{{#var: custommenu}}|{{{sep| }}}}}[[#{{#var: value}}|{{#var: value}}]] }} }} | ||
# | {{#var: custommenu}} {{ | ||
<!-- [[#{{#var: value}}|{{#var: value}}]]{{{sep| }}} }} {{--> | |||
# | |||
# | |||
<!-- Check seealso--> | <!-- Check seealso--> | ||
#ifeq:{{{seealso|}}}|yes|{{{sep| }}} [[#See also{{!}}See also]] |}}{{ | #ifeq:{{{seealso|}}}|yes|{{{sep| }}} [[#See also{{!}}See also]] |}}{{ | ||
Line 50: | Line 45: | ||
<!-- Check extlinks--> | <!-- Check extlinks--> | ||
#ifeq:{{{extlinks|}}}|yes|{{{sep| }}} [[#External links{{!}}External links]]|}}{{ | #ifeq:{{{extlinks|}}}|yes|{{{sep| }}} [[#External links{{!}}External links]]|}}{{ | ||
<!-- Check invalid words--> | <!-- Check invalid words--> | ||
#ifeq:{{{break|x}}}|x||<br> | #ifeq:{{{break|x}}}|x||<br> | ||
TOC8 - Invalid parameter "break" - try "nobreak=yes". | |||
}}{{#ifeq:{{{centre|x}}}|x||<br> | }}{{#ifeq:{{{centre|x}}}|x||<br> | ||
TOC8 - Invalid parameter "centre" - try "center=yes". | |||
}}{{#ifeq:{{{Top|x}}}|x||<br> | }}{{#ifeq:{{{Top|x}}}|x||<br> | ||
TOC8 - Invalid parameter "Top" - try lowercase "top=yes". | |||
}}{{#ifeq:{{{ref|x}}}|x||<br> | }}{{#ifeq:{{{ref|x}}}|x||<br> | ||
TOC8 - Invalid parameter "ref" - try "refs=yes". | |||
}}{{#ifeq:{{{Ref|x}}}|x||<br> | }}{{#ifeq:{{{Ref|x}}}|x||<br> | ||
TOC8 - Invalid parameter "Ref" - try lowercase "refs=yes". | |||
}}{{#ifeq:{{{note|x}}}|x||<br> | }}{{#ifeq:{{{note|x}}}|x||<br> | ||
TOC8 - Invalid parameter "note" - try "note'''s'''=yes". | |||
}}{{#ifeq:{{{ext|x}}}|x||<br> | }}{{#ifeq:{{{ext|x}}}|x||<br> | ||
TOC8 - Invalid parameter "ext" - try "extlinks=yes". | |||
}}{{#ifeq:{{{extlink|x}}}|x||<br> | }}{{#ifeq:{{{extlink|x}}}|x||<br> | ||
TOC8 - Invalid parameter "extlink" - try "extlinks=yes". | |||
}}</div> | }}</div> | ||
|}__NOTOC__<noinclude> | |}__NOTOC__<noinclude> | ||
Line 72: | Line 67: | ||
<!-- | <!-- | ||
-- NOTES: | -- NOTES: | ||
-- new parameter | -- new parameter abc added. if set to no alphabet is suppressed | ||
-- custom menu options now use loops | |||
--> | --> | ||
</noinclude> | </noinclude> |