Difference between revisions of "Template:Contradicts other/doc"
imported>SMcCandlish (→Usage: cleanup) |
imported>SMcCandlish (update) |
||
| Line 19: | Line 19: | ||
* ''second'': The second optional parameter specifies which talk page is linked to; provide '''{{kbd|here}}''' to link to the talk page of the article on which the template appears, or provide '''{{kbd|there}}''' to link to the talk page of the article given in the first argument. | * ''second'': The second optional parameter specifies which talk page is linked to; provide '''{{kbd|here}}''' to link to the talk page of the article on which the template appears, or provide '''{{kbd|there}}''' to link to the talk page of the article given in the first argument. | ||
* ''third'': The third optional parameter is the name of a specific '''section''' on the specified talk page. | * ''third'': The third optional parameter is the name of a specific '''section''' on the specified talk page. | ||
| − | * ''fourth'': An optional replacement for the word {{samp|article}}, such as {{kbd|page}} or {{kbd| | + | * ''fourth'': An optional replacement for the word {{samp|article}} in reference to the current page, such as {{kbd|section}} or {{kbd|list}}. |
| + | * ''fifth'': An optional replacement for the word {{samp|article}} in reference to the other page, such as {{kbd|page}} or {{kbd|Wikipedia policy}}. | ||
* '''date''': A further optional date parameter may be supplied in the format '''<code>date=<month> <year></code>'''. If the date is not included it may be added later by a [[WP:BOT|bot]]. | * '''date''': A further optional date parameter may be supplied in the format '''<code>date=<month> <year></code>'''. If the date is not included it may be added later by a [[WP:BOT|bot]]. | ||
| Line 46: | Line 47: | ||
}, | }, | ||
"4": { | "4": { | ||
| − | "label": "article or something else", | + | "label": "this article or something else", |
| − | "description": "If this parameter is not given, the box will say | + | "description": "If this parameter is not given, the box will say \"This article\". If a parameter value is given, it will show that value (e.g. \"section\" or \"list\") after the word \"This\".", |
"type": "string" | "type": "string" | ||
}, | }, | ||
| − | " | + | "5": { |
| − | "lang": { | + | "label": "other article or something else", |
| + | "description": "If a parameter value is given here, and the first parameter is not blank, the value of this parameter (e.g. \"page\" or \"guideline\") will replace the second occurrence of the word \"article\", the one referring to the other page.", | ||
| + | "type": "string" | ||
| + | }, "lang": { | ||
"label": "language code", | "label": "language code", | ||
| − | "description": "If this parameter is given, the link will point to an article in another language, and that language's name will be shown.", | + | "description": "If this parameter is given, and the first parameter is not blank, the link will point to an article in another language, and that language's name will be shown.", |
"type": "string" | "type": "string" | ||
}, | }, | ||
"date": { | "date": { | ||
| − | " | + | "type": "string", |
| + | "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", | ||
"suggested": true | "suggested": true | ||
} | } | ||
| Line 66: | Line 71: | ||
"3", | "3", | ||
"4", | "4", | ||
| − | " | + | "5", |
"lang", | "lang", | ||
| − | " | + | "date" |
], | ], | ||
| − | "format": " | + | "format": "block" |
} | } | ||
</templatedata> | </templatedata> | ||
| + | |||
== See also == | == See also == | ||
Revision as of 22:41, 18 February 2018
| 40px | This is a documentation subpage for Template:Contradicts other. It contains usage information, categories and other content that is not part of the original template page. |
This template will categorise tagged articles into Category:Articles contradicting other articles.
- This template is a self-reference.
- This template is not useful for substitution.
Usage
{{Contradicts other|article|here,there|section|date=September 2026}}
All parameters are optional.
Parameters:
- first: The first is an article name; providing this argument adds a link to the article
- second: The second optional parameter specifies which talk page is linked to; provide here to link to the talk page of the article on which the template appears, or provide there to link to the talk page of the article given in the first argument.
- third: The third optional parameter is the name of a specific section on the specified talk page.
- fourth: An optional replacement for the word article in reference to the current page, such as section or list.
- fifth: An optional replacement for the word article in reference to the other page, such as page or Wikipedia policy.
- date: A further optional date parameter may be supplied in the format
date=<month> <year>. If the date is not included it may be added later by a bot.
Example:
{{Contradicts other|Mary, Mary, Quite Contrary|there|Conflict with another article|date=September 2026}} becomes
This article appears to contradict the article Mary, Mary, Quite Contrary. (September 2026) |
TemplateData
TemplateData for Contradicts other
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| article | 1 | The title of the other article. Used for linking. | Page | required |
| which talk page | 2 | "here" to link to this article's talk page. "there" to link to the article's talk page. | String | suggested |
| talk page section | 3 | no description | Unknown | optional |
| this article or something else | 4 | If this parameter is not given, the box will say "This article". If a parameter value is given, it will show that value (e.g. "section" or "list") after the word "This". | String | optional |
| other article or something else | 5 | If a parameter value is given here, and the first parameter is not blank, the value of this parameter (e.g. "page" or "guideline") will replace the second occurrence of the word "article", the one referring to the other page. | String | optional |
| language code | lang | If this parameter is given, and the first parameter is not blank, the link will point to an article in another language, and that language's name will be shown. | String | optional |
| Date | date | no description
| String | suggested |
See also
- {{Contradicts others}}
- {{Self-contradictory}}
- {{Contradict-inline}}, inline equivalent
- Wikipedia:Template messages/Cleanup