Difference between revisions of "Template:Category disambiguation"

From blackwiki
Jump to navigation Jump to search
imported>Starcheerspeaksnewslostwars
(Undid revision 768413355 by Swpb (talk) Category was moved without proper discussion first)
imported>JJMC89
(+__EXPECTUNUSEDCATEGORY__)
Line 1: Line 1:
{{Cmbox
+
__EXPECTUNUSEDCATEGORY__{{Cmbox
 
| type  = content
 
| type  = content
| image = [[Image:Disambig gray.svg|50px]]
+
| image = [[File:Disambig gray.svg|50px]]
 
| text  = '''This category is not in use because it has an ambiguous title.'''
 
| text  = '''This category is not in use because it has an ambiguous title.'''
  

Revision as of 06:19, 1 December 2018

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

Usage

To disambiguate between Category:Eremophila (bird) and Category:Eremophila (plant), simply add the following to Category:Eremophila:

{{Category disambiguation|the bird genus|Eremophila (bird)|the plant genus|Eremophila (plant)}}

The template expects at least four parameters (two description/category pairs), but can accommodate up to 100 parameters (50 description/category pairs).

Note that since a tweak in July 2020, this template trims leading and trailing whitespace from its parameters. This allows the use of a more readable multi-line layout. The example above can now be written as:

{{Category disambiguation
 | the bird genus | Eremophila (bird)
 | the plant genus | Eremophila (plant)
}}

... or, if you prefer

{{Category disambiguation
 | the bird genus
 | Eremophila (bird)

 | the plant genus
 | Eremophila (plant)
}}

Categorisation

This template automatically categorises category namespace pages into Category:Disambiguation categories. If the category isn't empty, it also categorizes it into Category:Non-empty disambiguation categories.

See also