Difference between revisions of "Template:Compact ToC"

From DMARC Wiki
Jump to navigation Jump to search
m (Bug fix.)
m (Trying something extra.)
Line 1: Line 1:
{| id="toc" class="toc" summary="Contents" align="center"
+
{| id="toc" class="toc" summary="Contents" {{#ifeq:{{{center|}}}|yes|align="center"|}}
 
! {{MediaWiki:Toc}}:
 
! {{MediaWiki:Toc}}:
 
|
 
|
Line 7: Line 7:
  
  
 +
----
 +
{{Complicated}}
 
==Purpose==
 
==Purpose==
Provides all the features of [[Template:CompactTOC7]], plus one from [[Template:CompactTOC2]], etc. that #7 doesn't have (the "0-9" section), ''and'' allows you to select what other sections you want.
+
This Table of Contents replacement for alphabetical lists provides all the features of [[Template:CompactTOC7]], plus one from [[Template:CompactTOC2]], etc. that #7 doesn't have (the "0-9" section), ''and'' allows you to select what other sections you want. Even the centering is optional.
  
 
==Usage==
 
==Usage==
Line 27: Line 29:
  
 
{{tlx|CompactTOC8|top=yes|seealso=yes|refs=yes|extlinks=yes}}
 
{{tlx|CompactTOC8|top=yes|seealso=yes|refs=yes|extlinks=yes}}
{{CompactTOC8|top=yes|seealso=yes|refs=yes|extlinks=yes}}
+
{{CompactTOC8|top=yes|seealso=yes|refs=yes|extlinks=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:31, 24 April 2007

Contents: 0–9 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:Complicated

Purpose

This Table of Contents replacement for alphabetical lists provides all the features of Template:CompactTOC7, plus one from Template:CompactTOC2, etc. that #7 doesn't have (the "0-9" section), and allows you to select what other sections you want. Even the centering is optional.

Usage

{{CompactTOC8}} for all features (leave off or change to "no" to disable a feature}}

Examples

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

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

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

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

{{CompactTOC8|top=yes|seealso=yes|refs=yes|extlinks=yes}} Template:CompactTOC8