Template:Disambiguation
This template should not be substituted. |
This is the {{Disambiguation}} template.
This is a general-purpose template, to be placed at the bottom of any article that exists to help readers find other articles with the same or similar names. This concept is called disambiguation and is used with many common words. This template automatically adds articles to the Category:Disambiguation.
Contents
Page title fixes[edit]
This template will automatically detect incomplete disambiguation present in page titles. If the title includes anything other than (disambiguation) in parentheses, it is assumed to be the article type. If you wish to manually specify the article type, use the |type=
parameter.
Variant templates[edit]
Disambiguation[edit]
For disambiguation pages requiring cleanup, use {{Disambiguation cleanup}}.
Parameters[edit]
Sometimes there isn't a specific disambiguation template (see list above) that fits for a page, or the page has items in more than one of the above classes. Then use {{Disambiguation}} but with one or more parameters telling which categories to use. Up to ten parameters can be fed, and in any order.
Nocat[edit]
If categorization is not needed on pages that are not in mainspace, then the "nocat" parameter may be set equal to "true" or "yes" as follows:
{{Disambiguation|nocat=true}}
{{Disambiguation|nocat=yes}}
Redirects[edit]
The following redirect to this template:
Technical details[edit]
Internally, this template uses {{Dmbox}}. That template categorises pages into Category:All disambiguation pages and Category:All article disambiguation pages.
This template also uses {{Disambiguation/cat}} to handle the categorisation parameters.
Other templates and modules used:
- {{Template other}}
- {{Title disambig text}}
- {{PAGENAMEBASE}}
- {{Trim}}
- {{Str rep}}
- {{#invoke:Redirect|isRedirect}}
Template use[edit]
Place template at the foot of the disambiguation page after all of the disambiguation content but before any categories.
TemplateData[edit]
TemplateData for Disambiguation
Place at the bottom of Disambiguation pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First category key | 1 | Used to put the page in a category. Can be one of 'split' (dab pages in need of being split); 'clean up','clean-up','cleanup' (dabs in need of cleanup) | String | suggested |
Second category key | 2 | Further category keys, as parameter 1. | String | optional |
Third category key | 3 | Further category keys, as parameter 1. | String | optional |
Fourth category key | 4 | Further category keys, as parameter 1. | String | optional |
Fifth category key | 5 | Further category keys, as parameter 1. | String | optional |
Sixth category key | 6 | Further category keys, as parameter 1. | String | optional |
Seventh category key | 7 | Further category keys, as parameter 1. | String | optional |
Eighth category key | 8 | Further category keys, as parameter 1. | String | optional |
Ninth category key | 9 | Further category keys, as parameter 1. | String | optional |
Tenth category key | 10 | Further category keys, as parameter 1. | String | optional |
Human name | hn | Human name disambiguation page with its own sort key. | String | optional |
page-title | page-title | Page title to use, only useful for special cases when default does not work.
| String | optional |
nocat | nocat | Set to 'yes' to prevent categorisation. | String | optional |
demospace | demospace | Used for testing. | String | optional |
ignore_parentheses | ignore_parentheses | Set to 'yes' to prevent parentheses in the article title from being parsed as incomplete disambiguation. | String | optional |
type | type | Manually specify the article type in the descriptive text ('This disambiguation page lists {{{type}}} articles...') | String | optional |
See also[edit]
- BattleTechWiki:Hatnote
- {{Disambiguation needed}} – Adds an inline "disambiguation needed" tag to an ambiguous link within an article.
- {{Redirect}} – for linking to disambiguation pages in an article that is the primary topic of a redirect
- {{Other uses}} – for linking to disambiguation pages in articles