Difference between revisions of "Template:Albums category/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Rich Farmbrough
blackwiki>Koavf
Line 9: Line 9:
  
 
;Special
 
;Special
<code><nowiki>{{Albums category|<article name>|display=<display name>|type=[compilation|soundtrack|...]|the=<any text>|empty=no}}</nowiki></code>
+
<code><nowiki>{{Albums category|<article name>|display=<display name>|type=[compilation|soundtrack|...]|the=<any text>}}</nowiki></code>
  
 
The article name should only be specified if it is different from that in the category name. Per normal categorization rules this should rarely be the case.
 
The article name should only be specified if it is different from that in the category name. Per normal categorization rules this should rarely be the case.
  
 
The <display name> is only needed if it is different form  the article name, for example <nowiki>{{Albums category|London Symphony Orchestra|the London Symphony Orchestra|....</nowiki>  Alternatively use <code>the=</code> for example <nowiki>{{Albums category|London Symphony Orchestra|the =yes|....</nowiki> to provide an unlinked "the" before the band name.
 
The <display name> is only needed if it is different form  the article name, for example <nowiki>{{Albums category|London Symphony Orchestra|the London Symphony Orchestra|....</nowiki>  Alternatively use <code>the=</code> for example <nowiki>{{Albums category|London Symphony Orchestra|the =yes|....</nowiki> to provide an unlinked "the" before the band name.
 
'''empty=no''' will keep the category out of the [[:Category:Empty categories]], this is useful as the released MediaWiki functionality on the Wikimedia sites means that categories with "&" or "'" in their name can't be checked for emptiness.
 
  
 
'''type''' will change the categorization of the category to allow for compilation, soundtrack, and EP categories etc.
 
'''type''' will change the categorization of the category to allow for compilation, soundtrack, and EP categories etc.
Line 28: Line 26:
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:WikiProject Albums templates]]
 
[[Category:WikiProject Albums templates]]
 
 
</includeonly>
 
</includeonly>

Revision as of 21:21, 6 May 2012

Usage

Normal

{{Albums category}}

Special

{{Albums category|<article name>|display=<display name>|type=[compilation|soundtrack|...]|the=<any text>}}

The article name should only be specified if it is different from that in the category name. Per normal categorization rules this should rarely be the case.

The <display name> is only needed if it is different form the article name, for example {{Albums category|London Symphony Orchestra|the London Symphony Orchestra|.... Alternatively use the= for example {{Albums category|London Symphony Orchestra|the =yes|.... to provide an unlinked "the" before the band name.

type will change the categorization of the category to allow for compilation, soundtrack, and EP categories etc.

Uses of the template with invalid type are listed at Category:Albums category uses with invalid parameters under T.

List of types

See also