Difference between revisions of "Template:Category disambiguation/doc"

From blackwiki
Jump to navigation Jump to search
imported>QEDK
(mark)
imported>BrownHairedGirl
(→‎Usage: update to note multi-line layout)
 
Line 8: Line 8:
  
 
The template expects at least four parameters (two description/category pairs), but can accommodate up to 100 parameters (50 description/category pairs).
 
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 [[special:diff/966960921|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:
 +
 +
<pre>{{Category disambiguation
 +
| the bird genus | Eremophila (bird)
 +
| the plant genus | Eremophila (plant)
 +
}}</pre>
 +
 +
... or, if you prefer
 +
 +
<pre>{{Category disambiguation
 +
| the bird genus
 +
| Eremophila (bird)
 +
 +
| the plant genus
 +
| Eremophila (plant)
 +
}}</pre>
  
 
== Categorisation ==
 
== Categorisation ==

Latest revision as of 08:46, 10 July 2020

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