Template:Category TOCEdit This Page

From FamilySearch Wiki

(Difference between revisions)
(Created page with '<table id="toc" class="toc plainlinks noprint" summary="Contents" align="center"> <tr><th>{{MediaWiki:Toc}}:</th><td><!-- -->{{#if:{{{top|yes}}}|    [{{fullurl:{{F…')
 
(change from= to pagefrom=)
 
Line 2: Line 2:
 
<tr><th>{{MediaWiki:Toc}}:</th><td><!--
 
<tr><th>{{MediaWiki:Toc}}:</th><td><!--
 
-->{{#if:{{{top|yes}}}|&nbsp;&nbsp;&nbsp; [{{fullurl:{{FULLPAGENAME}}}} Top]}}<!--
 
-->{{#if:{{{top|yes}}}|&nbsp;&nbsp;&nbsp; [{{fullurl:{{FULLPAGENAME}}}} Top]}}<!--
-->{{#ifeq:{{{numerals|group}}}|group|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]}}<!--
+
-->{{#ifeq:{{{numerals|group}}}|group|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|pagefrom=0}} 0–9]}}<!--
-->{{#ifeq:{{{numerals|group}}}|separate|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=0}} 0] [{{fullurl:{{FULLPAGENAME}}|from=1}} 1] [{{fullurl:{{FULLPAGENAME}}|from=2}} 2] [{{fullurl:{{FULLPAGENAME}}|from=3}} 3] [{{fullurl:{{FULLPAGENAME}}|from=4}} 4] [{{fullurl:{{FULLPAGENAME}}|from=5}} 5] [{{fullurl:{{FULLPAGENAME}}|from=6}} 6] [{{fullurl:{{FULLPAGENAME}}|from=7}} 7] [{{fullurl:{{FULLPAGENAME}}|from=8}} 8] [{{fullurl:{{FULLPAGENAME}}|from=9}} 9]}}<!--
+
-->{{#ifeq:{{{numerals|group}}}|separate|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|pagefrom=0}} 0] [{{fullurl:{{FULLPAGENAME}}|pagefrom=1}} 1] [{{fullurl:{{FULLPAGENAME}}|pagefrom=2}} 2] [{{fullurl:{{FULLPAGENAME}}|pagefrom=3}} 3] [{{fullurl:{{FULLPAGENAME}}|pagefrom=4}} 4] [{{fullurl:{{FULLPAGENAME}}|pagefrom=5}} 5] [{{fullurl:{{FULLPAGENAME}}|pagefrom=6}} 6] [{{fullurl:{{FULLPAGENAME}}|pagefrom=7}} 7] [{{fullurl:{{FULLPAGENAME}}|pagefrom=8}} 8] [{{fullurl:{{FULLPAGENAME}}|pagefrom=9}} 9]}}<!--
-->{{#ifeq:{{{uppercase|yes}}}|yes|&nbsp;&nbsp;'''·'''&nbsp; [{{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]}}<!--
+
-->{{#ifeq:{{{uppercase|yes}}}|yes|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|pagefrom=A}} A] [{{fullurl:{{FULLPAGENAME}}|pagefrom=B}} B] [{{fullurl:{{FULLPAGENAME}}|pagefrom=C}} C] [{{fullurl:{{FULLPAGENAME}}|pagefrom=D}} D] [{{fullurl:{{FULLPAGENAME}}|pagefrom=E}} E] [{{fullurl:{{FULLPAGENAME}}|pagefrom=F}} F] [{{fullurl:{{FULLPAGENAME}}|pagefrom=G}} G] [{{fullurl:{{FULLPAGENAME}}|pagefrom=H}} H] [{{fullurl:{{FULLPAGENAME}}|pagefrom=I}} I] [{{fullurl:{{FULLPAGENAME}}|pagefrom=J}} J] [{{fullurl:{{FULLPAGENAME}}|pagefrom=K}} K] [{{fullurl:{{FULLPAGENAME}}|pagefrom=L}} L] [{{fullurl:{{FULLPAGENAME}}|pagefrom=M}} M] [{{fullurl:{{FULLPAGENAME}}|pagefrom=N}} N] [{{fullurl:{{FULLPAGENAME}}|pagefrom=O}} O] [{{fullurl:{{FULLPAGENAME}}|pagefrom=P}} P] [{{fullurl:{{FULLPAGENAME}}|pagefrom=Q}} Q] [{{fullurl:{{FULLPAGENAME}}|pagefrom=R}} R] [{{fullurl:{{FULLPAGENAME}}|pagefrom=S}} S] [{{fullurl:{{FULLPAGENAME}}|pagefrom=T}} T] [{{fullurl:{{FULLPAGENAME}}|pagefrom=U}} U] [{{fullurl:{{FULLPAGENAME}}|pagefrom=V}} V] [{{fullurl:{{FULLPAGENAME}}|pagefrom=W}} W] [{{fullurl:{{FULLPAGENAME}}|pagefrom=X}} X] [{{fullurl:{{FULLPAGENAME}}|pagefrom=Y}} Y] [{{fullurl:{{FULLPAGENAME}}|pagefrom=Z}} Z]}}<!--
-->{{#ifeq:{{{lowercase|no}}}|yes|&nbsp;&nbsp;'''·'''&nbsp;[{{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]}}
+
-->{{#ifeq:{{{lowercase|no}}}|yes|&nbsp;&nbsp;'''·'''&nbsp;[{{fullurl:{{FULLPAGENAME}}|pagefrom=a}} a] [{{fullurl:{{FULLPAGENAME}}|pagefrom=b}} b] [{{fullurl:{{FULLPAGENAME}}|pagefrom=c}} c] [{{fullurl:{{FULLPAGENAME}}|pagefrom=d}} d] [{{fullurl:{{FULLPAGENAME}}|pagefrom=e}} e] [{{fullurl:{{FULLPAGENAME}}|pagefrom=f}} f] [{{fullurl:{{FULLPAGENAME}}|pagefrom=g}} g] [{{fullurl:{{FULLPAGENAME}}|pagefrom=h}} h] [{{fullurl:{{FULLPAGENAME}}|pagefrom=i}} i] [{{fullurl:{{FULLPAGENAME}}|pagefrom=j}} j] [{{fullurl:{{FULLPAGENAME}}|pagefrom=k}} k] [{{fullurl:{{FULLPAGENAME}}|pagefrom=l}} l] [{{fullurl:{{FULLPAGENAME}}|pagefrom=m}} m] [{{fullurl:{{FULLPAGENAME}}|pagefrom=n}} n] [{{fullurl:{{FULLPAGENAME}}|pagefrom=o}} o] [{{fullurl:{{FULLPAGENAME}}|pagefrom=p}} p] [{{fullurl:{{FULLPAGENAME}}|pagefrom=q}} q] [{{fullurl:{{FULLPAGENAME}}|pagefrom=r}} r] [{{fullurl:{{FULLPAGENAME}}|pagefrom=s}} s] [{{fullurl:{{FULLPAGENAME}}|pagefrom=t}} t] [{{fullurl:{{FULLPAGENAME}}|pagefrom=u}} u] [{{fullurl:{{FULLPAGENAME}}|pagefrom=v}} v] [{{fullurl:{{FULLPAGENAME}}|pagefrom=w}} w] [{{fullurl:{{FULLPAGENAME}}|pagefrom=x}} x] [{{fullurl:{{FULLPAGENAME}}|pagefrom=y}} y] [{{fullurl:{{FULLPAGENAME}}|pagefrom=z}} z]}}
 
</td></tr></table><noinclude>
 
</td></tr></table><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:26, 1 November 2012

[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

This template adds a table of contents (TOC) to a category page. It should only be added to category pages. It is generally not used for categories containing less than 500 total pages.

{{CategoryTOC
 | top       = yes / no
 | numerals  = separate / group / no
 | uppercase = yes / no
 | lowercase = yes / no
}}

Parameters

  • top - specifies whether a link to the top of the category is included. Default is yes.
  • numerals - specifies whether numerals are included:
    • separate: each numeral 0,1,...,9 has a separate link.
    • group (default): there is one link for 0-9.
    • no: no link.
  • uppercase - specifies whether there is a link for each uppercase letter A,B,...,Z. Default is yes.
  • lowercase - specifies whether there is a link for each lowercase letter a,b,...,z. Default is no.

Common variants

Template:CategoryTOC-Numeric

Template:CategoryTOClc

Template:CategoryTOCnum

See also

  • This page was last modified on 1 November 2012, at 19:26.
  • This page has been accessed 909 times.