Difference between revisions of "Template:Compact ToC"

From DMARC Wiki
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 CompactTOC8 -  (see NOTES at bottom)
+
     --  Template:Compact_ToC -  (see NOTES at bottom)
 
     --=======================================================
 
     --=======================================================
 
--
 
--
Line 55: Line 55:
 
#ifeq:{{{extlinks|}}}|yes|{{{sep|&nbsp;}}} [[#External links{{!}}External links]]|}}{{
 
#ifeq:{{{extlinks|}}}|yes|{{{sep|&nbsp;}}} [[#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".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{para|break}}}}" try {{bxt|{{para|nobreak|y}}}}.
 
}}{{#ifeq:{{{centre|x}}}|x||<br>
 
}}{{#ifeq:{{{centre|x}}}|x||<br>
   TOC8 - Invalid parameter "centre" - try "center=yes".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{centre}}}}" try {{bxt|{{para|center|y}}}}.
}}{{#ifeq:{{{Top|x}}}|x||<br>
+
}}{{#ifeq:{{{Top|x}}}|x||<br />
   TOC8 - Invalid parameter "Top" - try lowercase "top=yes".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{Top}}}}" try lowercase {{bxt|{{para|top|y}}}}.
}}{{#ifeq:{{{ref|x}}}|x||<br>
+
}}{{#ifeq:{{{ref|x}}}|x||<br />
   TOC8 - Invalid parameter "ref" - try "refs=yes".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{ref}}}}" try plural {{bxt|{{para|refs|y}}}}.
}}{{#ifeq:{{{Ref|x}}}|x||<br>
+
}}{{#ifeq:{{{Ref|x}}}|x||<br />
   TOC8 - Invalid parameter "Ref" - try lowercase "refs=yes".
+
   [[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 />
   TOC8 - Invalid parameter "note" - try "note'''s'''=yes".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{note}}}}" try plural {{bxt|{{para|notes|y}}}}.
}}{{#ifeq:{{{ext|x}}}|x||<br>
+
}}{{#ifeq:{{{ext|x}}}|x||<br />
   TOC8 - Invalid parameter "ext" - try "extlinks=yes".
+
   [[Template:Compact ToC]] – Invalid parameter "{{!bxt|{{ext}}}}" try {{bxt|{{extlinks|notes|y}}}}.
}}{{#ifeq:{{{extlink|x}}}|x||<br>
+
}}{{#ifeq:{{{extlink|x}}}|x||<br />
   TOC8 - Invalid parameter "extlink" - try "extlinks=yes".
+
   [[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:
--NOTES:
+
~~
--
+
~~ NOTE C2: Parameter "custom1=zzz" or "Sec1=zzz" shows first
-- NOTE C2: Parameter "custom1=zzz" or "Sec1=zzz" shows first
+
~~         subheader "zzz" after the "0-9 A B C D...".
--         subheader "zzz" after the "0-9 A B C D...".
+
~~
--
+
~~ NOTE I3: If-statements can be indented by leaving "{{" at
-- NOTE I3: If-statements can be indented by leaving "{{" at
+
~~         end of previous line and put "#if:" on next line;
--         end of previous line and put "#if:" on next line;
+
~~         otherwise indented lines become quote-boxes.
--         otherwise indented lines become quote-boxes.
+
~~
--
+
~~ NOTE P2: Parameter "pre1=xxx" shows first subheader "xxx"
-- NOTE P2: Parameter "pre1=xxx" shows first subheader "xxx"
+
~~         before the condensed "0-9 A B C..." appears.
--         before the condensed "0-9 A B C..." appears.
+
~~
--
+
~~ NOTE S2: Parameter "sep=&middot;" defines the separator
-- NOTE S2: Parameter "sep=&middot;" defines the separator
+
~~         string displayed between subheaders (not letters).
--         string displayed between subheaders (not letters).
+
~~         It defaults to a single space, "sep=&nbsp;".
--         It defaults to a single space, "sep=&nbsp;".
+
~~
--
+
~~ NOTE V9: Coded for MediaWiki language 1.11.1 (Jan.2008);
-- NOTE V9: Coded for MediaWiki language 1.11.1 (Jan.2008);
+
~~         wiki-format now omits HTML comments on web xfer.
--         wiki-format now omits HTML comments on web xfer.
+
~~HISTORY:
--HISTORY:
+
~~ 2009-01-10 Added parameters: sep=&middot; and prebreak=<br>.
-- 10Jan09 Added parameters: sep=&middot; and prebreak=<br>.
+
~~ 2009-01-10 Added parameters: 3 more custom6, custom7, custom8.
-- 10Jan09 Added parameters: 3 more custom6, custom7, custom8.
+
~~ 2009-01-10 Added parameters: 3 more custom6link...custom8link.
-- 10Jan09 Added parameters: 3 more custom6link...custom8link.
+
~~ 2009-01-10 Added parameters: 3 more custom6name...custom8name.
-- 10Jan09 Added parameters: 3 more custom6name...custom8name.
+
~~ 2009-01-10 Added parameters: pre1, pre2, pre3... pre7, pre8.
-- 10Jan09 Added parameters: pre1, pre2, pre3... pre7, pre8.
+
~~ 2009-01-10 Added parameters: pre1link, pre2link ... pre8link.
-- 10Jan09 Added parameters: pre1link, pre2link ... pre8link.
+
~~ 2009-01-10 Added parameters: pre1name, pre2name ... pre8name.
-- 10Jan09 Added parameters: pre1name, pre2name ... pre8name.
+
~~ 2009-01-10 Added parameters: preSec1, preSec2, ... preSec8.
-- 10Jan09 Added parameters: preSec1, preSec2, ... preSec8.
+
~~ 2009-01-10 Spot invalid keywords: Top/ref/Ref/note/ext etc.
-- 10Jan09 Spot invalid keywords: Top/ref/Ref/note/ext etc.
+
~~ 2009-01-10 Added NOTES comments to explain template coding.
-- 10Jan09 Added NOTES comments to explain template coding.
+
~~ 2009-01-10 Added HISTORY comments to log major changes.
-- 10Jan09 Added HISTORY comments to log major changes.
+
~~ 2011-07-01 Added Further reading
-- 01Jul11 Added Further reading
+
~~ 2012-03-13 Misc. code cleanup
-- [These comment lines are omitted before Internet transfer.]
+
~~[These comment lines are not transcluded.]
--
+
~~
--End Template:CompactTOC8-->
+
~~End Template:Compact_ToC -->
 
</noinclude>
 
</noinclude>

Revision as of 14:58, 13 March 2012

Contents
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}