Difference between revisions of "Template:Compact ToC"
Jump to navigation
Jump to search
m (Changed protection level of Template:Compact ToC: Highly visible template ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
(minor clode cleanup) |
||
Line 1: | Line 1: | ||
{|<!--======================================================= | {|<!--======================================================= | ||
− | -- Template | + | -- Template:Compact_ToC - (see NOTES at bottom) |
--======================================================= | --======================================================= | ||
-- | -- | ||
Line 55: | Line 55: | ||
#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 /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|break}}}}" – try {{bxt|{{para|nobreak|y}}}}. | |
}}{{#ifeq:{{{centre|x}}}|x||<br> | }}{{#ifeq:{{{centre|x}}}|x||<br> | ||
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{centre}}}}" – try {{bxt|{{para|center|y}}}}. | |
− | }}{{#ifeq:{{{Top|x}}}|x||<br> | + | }}{{#ifeq:{{{Top|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{Top}}}}" – try lowercase {{bxt|{{para|top|y}}}}. | |
− | }}{{#ifeq:{{{ref|x}}}|x||<br> | + | }}{{#ifeq:{{{ref|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{ref}}}}" – try plural {{bxt|{{para|refs|y}}}}. | |
− | }}{{#ifeq:{{{Ref|x}}}|x||<br> | + | }}{{#ifeq:{{{Ref|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{Ref}}}}" – try lowercase and plural {{bxt|{{para|refs|y}}}}. | |
− | }}{{#ifeq:{{{note|x}}}|x||<br> | + | }}{{#ifeq:{{{note|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{note}}}}" – try plural {{bxt|{{para|notes|y}}}}. | |
− | }}{{#ifeq:{{{ext|x}}}|x||<br> | + | }}{{#ifeq:{{{ext|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{ext}}}}" – try {{bxt|{{extlinks|notes|y}}}}. | |
− | }}{{#ifeq:{{{extlink|x}}}|x||<br> | + | }}{{#ifeq:{{{extlink|x}}}|x||<br /> |
− | + | [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{extlink}}}}" – try plural {{bxt|{{extlinks|notes|y}}}}. | |
}}</div> | }}</div> | ||
|}__NOTOC__<noinclude> | |}__NOTOC__<noinclude> | ||
Line 76: | Line 76: | ||
{{documentation}} | {{documentation}} | ||
<!--PLEASE ADD CATEGORIES & INTERWIKIS TO /doc PAGE, THANKS--> | <!--PLEASE ADD CATEGORIES & INTERWIKIS TO /doc PAGE, THANKS--> | ||
− | <!-- | + | <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
− | + | ~~NOTES: | |
− | + | ~~ | |
− | + | ~~ NOTE C2: Parameter "custom1=zzz" or "Sec1=zzz" shows first | |
− | + | ~~ subheader "zzz" after the "0-9 A B C D...". | |
− | + | ~~ | |
− | + | ~~ NOTE I3: If-statements can be indented by leaving "{{" at | |
− | + | ~~ end of previous line and put "#if:" on next line; | |
− | + | ~~ otherwise indented lines become quote-boxes. | |
− | + | ~~ | |
− | + | ~~ NOTE P2: Parameter "pre1=xxx" shows first subheader "xxx" | |
− | + | ~~ before the condensed "0-9 A B C..." appears. | |
− | + | ~~ | |
− | + | ~~ NOTE S2: Parameter "sep=·" defines the separator | |
− | + | ~~ string displayed between subheaders (not letters). | |
− | + | ~~ It defaults to a single space, "sep= ". | |
− | + | ~~ | |
− | + | ~~ NOTE V9: Coded for MediaWiki language 1.11.1 (Jan.2008); | |
− | + | ~~ wiki-format now omits HTML comments on web xfer. | |
− | + | ~~HISTORY: | |
− | + | ~~ 2009-01-10 Added parameters: sep=· and prebreak=<br>. | |
− | -- | + | ~~ 2009-01-10 Added parameters: 3 more custom6, custom7, custom8. |
− | -- | + | ~~ 2009-01-10 Added parameters: 3 more custom6link...custom8link. |
− | -- | + | ~~ 2009-01-10 Added parameters: 3 more custom6name...custom8name. |
− | -- | + | ~~ 2009-01-10 Added parameters: pre1, pre2, pre3... pre7, pre8. |
− | -- | + | ~~ 2009-01-10 Added parameters: pre1link, pre2link ... pre8link. |
− | -- | + | ~~ 2009-01-10 Added parameters: pre1name, pre2name ... pre8name. |
− | -- | + | ~~ 2009-01-10 Added parameters: preSec1, preSec2, ... preSec8. |
− | -- | + | ~~ 2009-01-10 Spot invalid keywords: Top/ref/Ref/note/ext etc. |
− | -- | + | ~~ 2009-01-10 Added NOTES comments to explain template coding. |
− | -- | + | ~~ 2009-01-10 Added HISTORY comments to log major changes. |
− | -- | + | ~~ 2011-07-01 Added Further reading |
− | -- | + | ~~ 2012-03-13 Misc. code cleanup |
− | -- [These comment lines are | + | ~~[These comment lines are not transcluded.] |
− | + | ~~ | |
− | + | ~~End Template:Compact_ToC --> | |
</noinclude> | </noinclude> |