Template:Contradicts other/doc: Difference between revisions
en>SMcCandlish update |
m Text replacement - "Wikipedia[^:]" to "CAPipedia" |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
Parameters: | Parameters: | ||
* ''first'': The first is an '''article''' name; providing this argument adds a link to the article | * ''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 '''{{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. This will default to "Talk:" namespace; if you need " | * ''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. This will default to "Talk:" namespace; if you need "CAPipediatalk:", etc., use the <code>talk</code> parameter below to name the talk page. | ||
* ''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}} in reference to the current page, such as {{kbd|section}} or {{kbd|list}}. Alternatively, {{para|section|{{kbd|yes}}}} (or any other value like {{para|section|{{kbd|y}}}}) can be used to change "article" to "section" in particular. | * ''fourth'': An optional replacement for the word {{samp|article}} in reference to the current page, such as {{kbd|section}} or {{kbd|list}}. Alternatively, {{para|section|{{kbd|yes}}}} (or any other value like {{para|section|{{kbd|y}}}}) can be used to change "article" to "section" in particular. | ||
* ''fifth'': An optional replacement for the word {{samp|article}} in reference to the other page, such as {{kbd|page}} or {{kbd| | * ''fifth'': An optional replacement for the word {{samp|article}} in reference to the other page, such as {{kbd|page}} or {{kbd|CAPipediapolicy}}. | ||
* '''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]]. | ||
* '''talk''' or '''discuss''': Specify the exact talk page name, with namespace; use this when the talk page is not in the "Talk:" namespace, e.g. {{para|talk| | * '''talk''' or '''discuss''': Specify the exact talk page name, with namespace; use this when the talk page is not in the "Talk:" namespace, e.g. {{para|talk|CAPipediatalk:Consensus}}. This prevents {{para|there}} from trying to incorrectly link to something like "Talk:Wikipedia:Consensus". | ||
Example: | Example: | ||
Line 75: | Line 75: | ||
"type": "string", | "type": "string", | ||
"description": "Current month and year", | "description": "Current month and year", | ||
"autovalue": " | "autovalue": "January 2024", | ||
"suggested": true | "suggested": true | ||
}, | }, |
Latest revision as of 15:00, 23 January 2024
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. |
[[Category:Template documentation pages{{#translation:}}]]
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=December 2024}}
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. This will default to "Talk:" namespace; if you need "CAPipediatalk:", etc., use the
talk
parameter below to name the 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 article in reference to the current page, such as section or list. Alternatively,
|section=yes
(or any other value like|section=y
) can be used to change "article" to "section" in particular. - fifth: An optional replacement for the word article in reference to the other page, such as page or CAPipediapolicy.
- 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. - talk or discuss: Specify the exact talk page name, with namespace; use this when the talk page is not in the "Talk:" namespace, e.g.
|talk=CAPipediatalk:Consensus
. This prevents|there=
from trying to incorrectly link to something like "Talk:Wikipedia:Consensus".
Example:
{{Contradicts other|Mary, Mary, Quite Contrary|there|Conflict with another article|date=December 2024}}
becomes
This article appears to contradict the article Mary, Mary, Quite Contrary. (December 2024) |
TemplateData
TemplateData for Contradicts other
<templatedata> { "params": { "1": { "label": "article", "description": "The title of the other article. Used for linking.", "type": "wiki-page-name", "required": true }, "2": { "label": "which talk page", "description": "\"here\" to link to this article's talk page. \"there\" to link to the article's talk page.", "type": "string", "suggested": true }, "3": { "label": "talk page section", "description": "The heading name on the talk page.", "type": "string" }, "4": { "label": "this article or something else", "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" }, "5": { "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", "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" }, "talk": { "label": "talk page name", "description": "The name of the talk page (option; use when talk page is not in the \"Talk:\" namespace).", "type": "string", "aliases": [ "discuss" ] }, "date": { "type": "string", "description": "Current month and year", "autovalue": "January 2024", "suggested": true }, "section": { "label": "section", "description": "Change the word \"article\" to the word \"section\" in the template's output", "type": "string", "suggestedvalues": [ "yes" ] } }, "paramOrder": [ "1", "2", "3", "4", "5", "lang", "talk", "date", "section" ], "format": "block" } </templatedata>
See also
- {{Contradicts others}}
- {{Self-contradictory}}
- {{Contradict-inline}}, inline equivalent
- Wikipedia:Template messages/Cleanup