Difference between revisions of "Template:Albums category"

From blackwiki
Jump to navigation Jump to search
blackwiki>BrownHairedGirl
({{#ifexpr: {{PAGESINCATEGORY}} > 80 | Category:Albums category with over 80 pages}})
blackwiki>Koavf
(Rv. No consensus for this redlink cat and only six categories using this template actually have more than 80 articles.)
Line 1: Line 1:
 
{{set category}}
 
{{set category}}
 
{{Albums category/core|{{{1|{{Str left|{{PAGENAME}}|{{#expr:{{Str find|{{PAGENAME}}|albums}}-2}}}}}}}|{{{2|}}}|empty={{{empty|}}}|display={{{display|}}}|the={{{the|}}}|discography={{{discography|}}}|discography band name={{{discography band name|}}}}}
 
{{Albums category/core|{{{1|{{Str left|{{PAGENAME}}|{{#expr:{{Str find|{{PAGENAME}}|albums}}-2}}}}}}}|{{{2|}}}|empty={{{empty|}}}|display={{{display|}}}|the={{{the|}}}|discography={{{discography|}}}|discography band name={{{discography band name|}}}}}
<includeonly>{{#ifexist:Template:Albums category/type/{{{type|default}}}|[[Category:{{Albums category/type/{{{type|default}}}}}]]|**[[Template:Albums category/type/{{{type|default}}}]] does not exist. Check the value of "type" in the template "Albums category". Valid items are listed at [[Template:Albums category/type]] . [[Category:Albums category uses with invalid parameters|T{{PAGENAME}}]]}}<!--
+
<includeonly>{{#ifexist:Template:Albums category/type/{{{type|default}}}|[[Category:{{Albums category/type/{{{type|default}}}}}]]|**[[Template:Albums category/type/{{{type|default}}}]] does not exist. Check the value of "type" in the template "Albums category". Valid items are listed at [[Template:Albums category/type]] . [[Category:Albums category uses with invalid parameters|T{{PAGENAME}}]]}}</includeonly><noinclude>
-->{{#ifexpr: {{PAGESINCATEGORY}} > 80 | [[Category:Albums category with over 80 pages]]}}<!--
 
--></includeonly><noinclude>
 
  
 
{{Documentation}}
 
{{Documentation}}
  
 
</noinclude>
 
</noinclude>

Revision as of 23:23, 23 March 2020

Template:Set category





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

Usage

Normal

{{Albums category}}

Special

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

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 from 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.

discography will add a See also section linking to the discography. The link will be based on the category name, i.e. <cat name - albums> discography, so caution is needed. The link display takes account of the and display values if any. The template will attempt to deal with disambiguation, however for cases where it doesn't there is a further parameter discography band name.

List of types

See also