Template:Category anchor: Difference between revisions
Appearance
Content deleted Content added
accept unnumbered parameter for letter |
treat blank category parameter same as undefined |
||
Line 1: | Line 1: | ||
'''<span class="plainlinks">[{{fullurl:Category:{{{category|{{ |
'''<span class="plainlinks">[{{fullurl:Category:{{#if:{{{category|}}} |
||
|{{{category}}} |
|||
|{{PAGENAME}} |
|||
}}|from={{{1|{{{letter}}}}}}}} {{{1|{{{letter}}}}}}]</span>'''{{#if:{{{description|}}}|: {{{description|}}}}}<noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 07:52, 21 April 2010
Wikipedia maintenance categories are often used to categorise different types of pages depending on their sort key. This template gives a way to index entries starting with different letters.
Syntax
{{Category anchor
| category =
| letter =
| description =
}}
Parameters
- category (optional) specifies the category (defaults to the current page);
- letter is the index letter (or character);
- description (optional) is a description of items listed under this letter.
Example
* {{Category anchor
| category = Pending AfC submissions
| letter = H
| description = Held submissions which have been looked at but need further attention.
}}
produces:
- H: Held submissions which have been looked at but need further attention.
See also
- {{Category TOC}}