Template:TOC: Difference between revisions

From Shousetsu Bang*Bang Wiki
Created page with "This template adds a table of contents (TOC) to a category page. I also totally jacked this from the Other Wiki. (b 'v')b <pre style="overflow:auto;"> {{Category TOC | align..."
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
This template adds a table of contents (TOC) to a category page. I also totally jacked this from the Other Wiki. (b 'v')b
<div style="border:1px solid#383838; padding:5px; width:360px">
 
{|
<pre style="overflow:auto;">
|- align="center"
{{Category TOC
|<strong>Contents</strong>
| align     = <!-- left (default) / center / right -->
|- align="center"
| top      = <!-- yes (default) / no -->
|<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}}} Top]
| numerals  = <!-- group (default) / separate / no -->
[{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]
| uppercase = <!-- yes (default) / group / no -->
[{{fullurl:{{FULLPAGENAME}}|from=A}} A] [{{fullurl:{{FULLPAGENAME}}|from=B}} B] [{{fullurl:{{FULLPAGENAME}}|from=C}} C] [{{fullurl:{{FULLPAGENAME}}|from=D}} D] [{{fullurl:{{FULLPAGENAME}}|from=E}} E] [{{fullurl:{{FULLPAGENAME}}|from=F}} F] [{{fullurl:{{FULLPAGENAME}}|from=G}} G] [{{fullurl:{{FULLPAGENAME}}|from=H}} H] [{{fullurl:{{FULLPAGENAME}}|from=I}} I] [{{fullurl:{{FULLPAGENAME}}|from=J}} J] [{{fullurl:{{FULLPAGENAME}}|from=K}} K] [{{fullurl:{{FULLPAGENAME}}|from=L}} L] [{{fullurl:{{FULLPAGENAME}}|from=M}} M] [{{fullurl:{{FULLPAGENAME}}|from=N}} N] [{{fullurl:{{FULLPAGENAME}}|from=O}} O] [{{fullurl:{{FULLPAGENAME}}|from=P}} P] [{{fullurl:{{FULLPAGENAME}}|from=Q}} Q] [{{fullurl:{{FULLPAGENAME}}|from=R}} R] [{{fullurl:{{FULLPAGENAME}}|from=S}} S] [{{fullurl:{{FULLPAGENAME}}|from=T}} T] [{{fullurl:{{FULLPAGENAME}}|from=U}} U] [{{fullurl:{{FULLPAGENAME}}|from=V}} V] [{{fullurl:{{FULLPAGENAME}}|from=W}} W] [{{fullurl:{{FULLPAGENAME}}|from=X}} X] [{{fullurl:{{FULLPAGENAME}}|from=Y}} Y] [{{fullurl:{{FULLPAGENAME}}|from=Z}} Z]</span>
| lowercase = <!-- yes / group / no (default) -->
|}</div>
}}</pre>
 
===Parameters===
*''align''&nbsp;– specifies the position. Default is '''left'''.
*''top''&nbsp;– specifies whether a link to the top of the category is included. Default is '''yes'''.
*''numerals''&nbsp;– specifies whether numerals are included:
**'''group''' (default): there is one link for 0–9.
**'''separate''': each numeral 0,1,...,9 has a separate link.
**'''no''': no link.
*''uppercase''&nbsp;– specifies whether uppercase letters are included:
** '''yes''' (default): each letter A,B,...,Z has a separate link.
** '''group''': there is one link for A-Z.
** '''no''': there is no link for uppercase letters.
*''lowercase''&nbsp;– specifies whether lowercase letters are included:
** '''yes''': each letter a,b,...,z has a separate link.
** '''group''': there is one link for a-z.
** '''no''' (default): there is no link for lowercase letters.

Latest revision as of 20:46, 29 October 2014

Contents
Top

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