Difference between revisions of "Template:Compact ToC"

From DMARC Wiki
Jump to navigation Jump to search
(re-edited to transclude /doc page, after waiting nearly 6 hours and no auto-reformat: still showed old included template documentation; added internal "NOTE I3" about indenting if-statements)
m (robot Adding: nl:Sjabloon:CompactTOC8, no:Mal:CompactTOC8; cosmetic changes)
Line 8: Line 8:
 
{{      <!--see NOTE I3 below-->
 
{{      <!--see NOTE I3 below-->
 
<!-- ----------------------------------- Check name/side-->
 
<!-- ----------------------------------- Check name/side-->
#ifeq:{{{name|}}}|no||! {{{name|{{MediaWiki:Toc}}}}}{{#ifeq:{{{side|{{#ifeq:{{{1|}}}|short1|yes|}}}}}|yes|&#58;|}}
+
#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}}};">}}{{
Line 53: Line 53:
 
#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".
 
   TOC8 - Invalid parameter "break" - try "nobreak=yes".
}}{{#ifeq:{{{centre|x}}}|x||<br>
+
}}{{#ifeq:{{{centre|x}}}|x||<br />
 
   TOC8 - Invalid parameter "centre" - try "center=yes".
 
   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".
 
   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".
 
   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".
 
   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".
 
   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".
 
   TOC8 - Invalid parameter "ext" - try "extlinks=yes".
}}{{#ifeq:{{{extlink|x}}}|x||<br>
+
}}{{#ifeq:{{{extlink|x}}}|x||<br />
 
   TOC8 - Invalid parameter "extlink" - try "extlinks=yes".
 
   TOC8 - Invalid parameter "extlink" - try "extlinks=yes".
 
}}</div>
 
}}</div>
Line 88: Line 88:
 
--          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=·" 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;".
Line 95: Line 95:
 
--          wiki-format now omits HTML comments on web xfer.
 
--          wiki-format now omits HTML comments on web xfer.
 
--HISTORY:
 
--HISTORY:
-- 10Jan09 Added parameters: sep=&middot; and prebreak=<br>.
+
-- 10Jan09 Added parameters: sep=· and prebreak=<br>.
 
-- 10Jan09 Added parameters: 3 more custom6, custom7, custom8.
 
-- 10Jan09 Added parameters: 3 more custom6, custom7, custom8.
 
-- 10Jan09 Added parameters: 3 more custom6link...custom8link.
 
-- 10Jan09 Added parameters: 3 more custom6link...custom8link.
Line 111: Line 111:
 
--End Template:CompactTOC8-->
 
--End Template:CompactTOC8-->
 
</noinclude>
 
</noinclude>
 +
 +
[[nl:Sjabloon:CompactTOC8]]
 +
[[no:Mal:CompactTOC8]]

Revision as of 02:42, 29 April 2009

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}}}}}}


nl:Sjabloon:CompactTOC8 no:Mal:CompactTOC8