Difference between revisions of "Template:Category anchor"

From blackwiki
Jump to navigation Jump to search
imported>MSGJ
(accept unnumbered parameter for letter)
imported>MSGJ
(treat blank category parameter same as undefined)
Line 1: Line 1:
'''<span class="plainlinks">[{{fullurl:Category:{{{category|{{PAGENAME}}}}}|from={{{1|{{{letter}}}}}}}} {{{1|{{{letter}}}}}}]</span>'''{{#if:{{{description|}}}|&#58; {{{description|}}}}}<noinclude>
+
'''<span class="plainlinks">[{{fullurl:Category:{{#if:{{{category|}}}
 +
|{{{category}}}
 +
|{{PAGENAME}}
 +
}}|from={{{1|{{{letter}}}}}}}} {{{1|{{{letter}}}}}}]</span>'''{{#if:{{{description|}}}|&#58; {{{description|}}}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:52, 21 April 2010

{{{letter}}}

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

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

id:Templat:Category anchor sl:Predloga:Category anchor