Forskjell mellom versjoner av «Mal:CategoryTOC»

Fra Språkrådets termwiki
Hopp til: navigasjon, søk
m (Importerte én revisjon: Legger til sett med maler fra Mediawiki.org for å få CategoryTOC)
 
(En mellomliggende revisjon av en annen bruker er ikke vist)
Linje 1: Linje 1:
 
<table id="cattoc" class="toc plainlinks noprint" summary="Contents" align="{{{align|center}}}">
 
<table id="cattoc" class="toc plainlinks noprint" summary="Contents" align="{{{align|center}}}">
 
<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}}}} Topp]}}<!--
 
-->{{#ifeq:{{{numerals|group}}}|group|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=0}} 0–9]}}<!--
 
-->{{#ifeq:{{{numerals|group}}}|group|&nbsp;&nbsp;'''·'''&nbsp; [{{fullurl:{{FULLPAGENAME}}|from=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}}|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:{{{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}}|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] [{{fullurl:{{FULLPAGENAME}}|from=Æ}} Æ] [{{fullurl:{{FULLPAGENAME}}|from=Ø}} Ø] [{{fullurl:{{FULLPAGENAME}}|from=Å}} Å]}}<!--
-->{{#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}}|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] [{{fullurl:{{FULLPAGENAME}}|from=æ}} æ] [{{fullurl:{{FULLPAGENAME}}|from=ø}} ø] [{{fullurl:{{FULLPAGENAME}}|from=å}} å]}}
 
</td></tr></table><noinclude>
 
</td></tr></table><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Nåværende revisjon fra 3. jun. 2013 kl. 01:10

[view] [edit] [history] [purge] 50px 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
 | align = left / center / right
}}

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.
  • align - placement of links. Default is center.
Language: English