Modèle:Contradicts other/doc : Différence entre versions
(Tweak template data.) |
m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 21 octobre 2017 à 21:03
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|This is a documentation subpage for Modèle:Contradicts other. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Modèle |Utilisateur |modèle template page |{{#if:Modèle |modèle page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Modèle:Contradicts other | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
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
{{{{#if: |subst:}}Contradicts other{{#if:article ||article}}{{#if:here,there ||here,there}}{{#if:section ||section}}{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
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.
- 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:
{{{{#if: |subst:}}Contradicts other{{#if:Mary, Mary, Quite Contrary ||Mary, Mary, Quite Contrary}}{{#if:there ||there}}{{#if:Conflict with another article ||Conflict with another article}}{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
becomes This article appears to contradict {{#if:Mary, Mary, Quite Contrary|the {{#if:|Modèle:Iso2lang}} article [[{{#if:|:{{{lang}}}:|}}Mary, Mary, Quite Contrary|Mary, Mary, Quite Contrary]]|another article}}. (mai 2024) |
TemplateData
See the monthly error report for this template.
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" }, "4": { "label": "article or something else", "description": "If this parameter is not given, the box will say \\\"This article\\\". If a parameter is given, it will show this parameter after the word \\\"This\\\".", "type": "string" }, "small": {}, "lang": { "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.", "type": "string" }, "date": { "default": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true } }, "paramOrder": [ "1", "2", "3", "4", "date", "lang", "small" ], "format": "inline" } </templatedata>
See also
- {{Contradicts others}}
- {{Self-contradictory}}
- {{Contradict-inline}}, inline equivalent
- Wikipedia:Template messages/Cleanup