Template:Disambig: Difference between revisions
No edit summary |
m (added templatedata, minor correction in the code) |
||
Line 53: | Line 53: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly>:''{{#if:{{{3|{{{about|}}}}}}|This article is about {{{3|{{{about|}}}}}}. For other uses of "{{{2|{{{1}}}}}}", see [[{{{1}}} (disambiguation)]]|The name or term "{{{2|{{{1}}}}}}" refers to more than one concept. For a list of other uses, see [[{{{1}}} (disambiguation)]].}}''</ | <includeonly>:''{{#if:{{{3|{{{about|}}}}}}|This article is about {{{3|{{{about|}}}}}}. For other uses of "{{{2|{{{1}}}}}}", see [[{{{1}}} (disambiguation)]]|The name or term "{{{2|{{{1}}}}}}" refers to more than one concept. For a list of other uses, see [[{{{1}}} (disambiguation)]]}}.''</includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Disambiguation", | |||
"description": "The name of the disambiguation page WITHOUT the (disambiguation)", | |||
"required": true, | |||
"type": "wiki-page-name" | |||
}, | |||
"2": { | |||
"label": "Name/term", | |||
"description": "\"The name or term\" version of the disambiguation code.", | |||
"type": "content" | |||
}, | |||
"3": { | |||
"label": "Subject", | |||
"description": "The subject of the article", | |||
"required": true | |||
}, | |||
"about": { | |||
"label": "About description", | |||
"description": "Describe what this article is about.", | |||
"type": "content", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "Use this template at the top of an article when there are three or more uses for the term in question in order to link to the term's disambiguation page. There are three different ways to use it, depending on what's being edited and how.\n", | |||
"paramOrder": [ | |||
"1", | |||
"3", | |||
"about", | |||
"2" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 03:11, 27 September 2023
Description
Use this template at the top of an article when there are three or more uses for the term in question in order to link to the term's disambiguation page. There are three different ways to use it, depending on what's being edited and how.
Usage
Parameters
This template accepts three parameters, all anonymous.
Required
This template takes one required anonymous parameter.
- The disambiguated term.
Optional
This template takes two optional anonymous parameters.
- The second term to be disambiguated. Takes precedence over term one when generating the link to the disambiguation page.
- Changes the format to the "about" version and should contain the description of what the article is about. Can also be specified as the named parameter "about"
Code
{{Disambig|1}}
generates
- The name or term "1" refers to more than one concept. For a list of other uses, see 1 (disambiguation).
If the root word of the disambiguation page is different from the word in the title of the current article (e.g., a different form of the same name like Bill/William), add a second argument to match the location of the disambiguation page. I.e.,
{{Disambig|1|2}}
gives
- The name or term "2" refers to more than one concept. For a list of other uses, see 1 (disambiguation).
To describe the current article, use the "|about=" variable like this:
{{Disambig|1|2|about=3}}
Which gives:
- This article is about 3. For other uses of "2", see 1 (disambiguation).
Examples
Code
{{Disambig|Wolfwood}}
Result
- The name or term "Wolfwood" refers to more than one concept. For a list of other uses, see Wolfwood (disambiguation).
Code
{{Disambig|Vash the Stampede|Stampede}}
Result
- The name or term "Stampede" refers to more than one concept. For a list of other uses, see Vash the Stampede (disambiguation).
Code
{{Disambig|Vash the Stampede|Stampede|about=the man known as the "Humanoid Typhoon"}}
Result
- This article is about the man known as the "Humanoid Typhoon". For other uses of "Stampede", see Vash the Stampede (disambiguation).
Use this template at the top of an article when there are three or more uses for the term in question in order to link to the term's disambiguation page. There are three different ways to use it, depending on what's being edited and how.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Disambiguation | 1 | The name of the disambiguation page WITHOUT the (disambiguation) | Page name | required |
Subject | 3 | The subject of the article | Unknown | required |
About description | about | Describe what this article is about. | Content | suggested |
Name/term | 2 | "The name or term" version of the disambiguation code. | Content | optional |