Difference between revisions of "Template:Compact ToC"

From DMARC Wiki
Jump to navigation Jump to search
m (Examples: Typo fix)
m (Twiddles.)
Line 13: Line 13:
  
 
==Usage==
 
==Usage==
<code><nowiki>{{</nowiki>'''CompactTOC8'''<nowiki>|side=yes|center=yes|top=yes|num=yes|seealso=yes|refs=yes|notes=yes|extlinks=yes}}</nowiki></code> for all features (leave off or change to "no" to disable a feature}}
+
<code><nowiki>{{</nowiki>'''CompactTOC8'''<nowiki>|side=yes|center=yes|top=yes|num=yes|seealso=yes|refs=yes|notes=yes|extlinks=yes}}</nowiki></code>
 +
<br />for all features (leave off or change to "no" to disable a feature}}
  
 
===Examples===
 
===Examples===
 
{{tlx|CompactTOC8|top&#61;yes}}
 
{{tlx|CompactTOC8|top&#61;yes}}
 
{{CompactTOC8|top=yes}}
 
{{CompactTOC8|top=yes}}
 +
  
 
{{tlx|CompactTOC8|center&#61;yes|top&#61;yes|seealso&#61;yes}}
 
{{tlx|CompactTOC8|center&#61;yes|top&#61;yes|seealso&#61;yes}}
 
{{CompactTOC8|center=yes|top=yes|seealso=yes|notes=yes}}
 
{{CompactTOC8|center=yes|top=yes|seealso=yes|notes=yes}}
 +
  
 
{{tlx|CompactTOC8|side&#61;yes|num&#61;yes|refs&#61;yes|extlinks&#61;yes}}
 
{{tlx|CompactTOC8|side&#61;yes|num&#61;yes|refs&#61;yes|extlinks&#61;yes}}
 
{{CompactTOC8|side=yes|num=yes|refs=yes|extlinks=yes}}
 
{{CompactTOC8|side=yes|num=yes|refs=yes|extlinks=yes}}
 +
  
 
{{tlx|CompactTOC8|top&#61;no|refs&#61;yes|notes&#61;yes|extlinks&#61;yes}}
 
{{tlx|CompactTOC8|top&#61;no|refs&#61;yes|notes&#61;yes|extlinks&#61;yes}}
 
{{CompactTOC8|top=no|refs=yes|notes=yes|extlinks=yes}}
 
{{CompactTOC8|top=no|refs=yes|notes=yes|extlinks=yes}}
 +
  
 
{{tlx|CompactTOC8|side&#61;yes|center&#61;yes|num&#61;yes|seealso&#61;yes}}
 
{{tlx|CompactTOC8|side&#61;yes|center&#61;yes|num&#61;yes|seealso&#61;yes}}
 
{{CompactTOC8|side=yes|center=yes|num=yes|seealso=yes}}
 
{{CompactTOC8|side=yes|center=yes|num=yes|seealso=yes}}
 +
  
 
[[Category:TOC templates|{{PAGENAME}}]]
 
[[Category:TOC templates|{{PAGENAME}}]]
 
[[Category:Templates using parser functions|{{PAGENAME}}]]
 
[[Category:Templates using parser functions|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 09:55, 24 April 2007

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



Template:Esoteric

Purpose

This Table of Contents replacement for alphabetical lists provides all the features of Template:CompactTOC7, plus ones from Template:CompactTOC2, etc. that #7 doesn't have (the "Top" "0-9" sections, optionally), and allows you to select what other sections you want. Even the centering is optional, and you can have the "Contents" heading on the top (default) or the side.

Usage

{{CompactTOC8|side=yes|center=yes|top=yes|num=yes|seealso=yes|refs=yes|notes=yes|extlinks=yes}}
for all features (leave off or change to "no" to disable a feature}}

Examples

{{CompactTOC8|top=yes}} Template:CompactTOC8


{{CompactTOC8|center=yes|top=yes|seealso=yes}} Template:CompactTOC8


{{CompactTOC8|side=yes|num=yes|refs=yes|extlinks=yes}} Template:CompactTOC8


{{CompactTOC8|top=no|refs=yes|notes=yes|extlinks=yes}} Template:CompactTOC8


{{CompactTOC8|side=yes|center=yes|num=yes|seealso=yes}} Template:CompactTOC8