« Modèle:Self-contradictory/doc » : différence entre les versions
(use Template:Sandbox other) |
m (1 version importée) |
(Aucune différence)
| |
Dernière version du 16 juillet 2022 à 14:53
{{#ifeq:doc |doc
|
{{#ifeq:show |show
| <templatestyles src="Module:Message box/ombox.css"></templatestyles>
| Modèle:Strong for Modèle:Terminate sentence 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:Self-contradictory
| [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
This template will categorize tagged articles into Category:Self-contradictory articles.
- This template is a self-reference.
- This template is not useful for substitution.
- After posting this template
Please start a section on the article's talk page to discuss and specify the specific section that contradicts itself. The third optional parameter is the name of a specific section on the specified talk page.
It is possible to specify the subject about which the article or section is contradictory with the optional parameter about.
- Example of use
{{Self-contradictory|about=the cause of death|date=décembre 2025}}
This renders as:
<templatestyles src="Module:Message box/ambox.css"></templatestyles>
This {{#switch:|article=article|section=section|othersection={{#if:|article or section|section}}|#default=article or section|=article or section}} appears to contradict {{#switch:|#default= the article [[{{{article}}}]]|={{#ifeq:|othersection|another section of this article|itself}}}}{{#if:the cause of death| on the cause of death.|.}} (décembre 2025) |
{{#ifeq:{{{small}}};10|left;0|}}
Adding the optional text |section or |article changes the vague default wording to be more specific:
- Default: "This article or section appears to contradict ..." followed by "itself" or a link to an article named with
|{{SAFESUBST:#if:article|article=}} |{{SAFESUBST:#if:|=}}articleor|{{SAFESUBST:#if:1|1=}}article– "This article appears to contradict ..." followed by "itself" or a link to an article named with|{{SAFESUBST:#if:article|article=}}|{{SAFESUBST:#if:|=}}sectionor|{{SAFESUBST:#if:1|1=}}section– "This section appears to contradict ..." followed by "itself" or a link to an article named with|{{SAFESUBST:#if:article|article=}}|{{SAFESUBST:#if:|=}}othersectionor|{{SAFESUBST:#if:1|1=}}othersection– "This section appears to contradict another section of this article" (this parameter is ignored if mutually exclusive parameter|{{SAFESUBST:#if:article|article=}}has a value; the default output will result).
- More complex examples of use
{{Self-contradictory|section|date=décembre 2025}}{{Self-contradictory|about=the cause of death|1=article|date=décembre 2025}}{{Self-contradictory|othersection|date=décembre 2025}}{{Self-contradictory|section|article=John F. Kennedy|about=the cause of death|date=décembre 2025}}
Notes:
- The date-substitution template may be used to automatically generate the date, e.g.,
{{Self-contradictory|{{subst:DATE}}}}. See Help:Substitution for more information. - The
|{{SAFESUBST:#if:date|date=}}parameter need not be added by the editor: if not entered, a bot will soon add it. The date parameter consists of the full English name of the current month with initial capital, a space, and the year, not full dates, ISO date order, or other formatting; e.g., "January 2013", but not "jan13" or "7 January 2013" or "2013-01". Any deviation from this rule will result in an "invalid date parameter" error.
See also
- Category:Self-contradictory articles
- {{Contradicts other}}, an equivalent when the contradiction involves not just one article, but two
- {{Contradicts others}}, an equivalent when the contradiction involves many.
- {{Inconsistent}}, inline variant indicating a single statement that is in conflict with the rest of the article.
- {{Contradict-inline}}, inline equivalent of {{Contradicts other}}
- Wikipedia:Template messages/Cleanup
TemplateData
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|C|c}}lick here] to see a monthly parameter usage report for {{#if:|[[Template:]]|this template}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:|[[Template:]]|Template:Self-contradictory}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}.
|#default=[1]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|C|c}}lick here] to see a monthly parameter usage report for {{#if:|[[Template:]]|this template}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CSelf-contradictory%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:|[[Template:]]|Template:Self-contradictory}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}}.
|#default=[2]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:|its|this}} TemplateData}} }}}}
TemplateData for Self-contradictory
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Modèle|Modèle
| template
| other
}}
}}
| template = {{#if:{{#ifeq:doc|sandbox|1}}{{#ifeq:doc|doc|1}}||
}} | other | #default = }}
This template will categorize tagged articles into "Category:Self-contradictory articles".
| Paramètre | Description | Type | État | |
|---|---|---|---|---|
| Scope | 1 scope | Whether the whole article or one section is contradictory; enter either 'article' or 'section' | Ligne de texte | facultatif |
| Talk page section | 2 talksection discuss | The section on the talk page where the contradiction is discussed or explained | Ligne de texte | facultatif |
| About | about | The subject about which the article or section is contradictory. Optional but recommended parameter. | Chaîne | suggéré |
| Date | date | The month and year the template was added
| Contenu | suggéré |