Modèle:Duplication
<templatestyles src="Module:Message box/ambox.css"></templatestyles>
This {{#if:|section|article}} duplicates the scope of other {{#switch:sectiontrue|{{#if:|sectiontrue}}|{{#ifeq:{{{1}}}|section|sectiontrue}}={{#ifeq:{{safesubst:#switch:
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no}}|yes|sections|articles}}|articles}}{{#if:|, specifically [[:{{{dupe}}}]]{{#if:| and [[:{{{dupe2}}}]]}}}}. (décembre 2024) |
{{#ifeq:;10|left;0|}} <templatestyles src="Module:Documentation/styles.css"></templatestyles>
{{#ifeq:duplication |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:Duplication | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Usage
This template automatically adds articles to Category:Articles in need of internal merging or Category:Duplicate articles.
Basic usage: {{Duplication|date=décembre 2024}}
Parameters
All parameters are optional.
- section — changes wording to say "This section duplicates...". Place the template at the top of the section.
- Example:
{{Duplication|section=yes}}
- Example:
- dupe — adds a link referring to the section or article being duplicated, and adds the article to Category:Duplicate articles instead of Category:Articles in need of internal merging.
- Examples:
{{Duplication|dupe=#Section name}}
{{Duplication|dupe=Article name}}
- Examples:
- dupe2 — same as dupe, just allows for an additional section/article to be linked.
- Example:
{{Duplication|dupe=Article name|dupe2=#Section name}}
- Example:
TemplateData
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3A%7C%7CDuplication%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%7CDuplication%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%7CDuplication%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:Duplication}}{{#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%7CDuplication%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%7CDuplication%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%7CDuplication%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:Duplication}}{{#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 Duplication
{{#if: | {{{demospace}}} | {{#ifeq:Modèle|Modèle | template | other }} }}
| template = {{#if:{{#ifeq:Duplica|sandbox|1}}{{#ifeq:Duplication|doc|1}}||
}} | other | #default = }}
Use this cleanup template to indicate that an article or section duplicates the scope of other articles or sections.
Paramètre | Description | Type | État | |
---|---|---|---|---|
Month and year | date | The month and year that the template was placed (in full). "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" inserts the current month and year automatically.
| Ligne de texte | suggéré |
Duplicate article or section | dupe | The article or section that this article or section duplicates. This also adds this article to Category:Duplicate articles.
| Nom de page | suggéré |
Duplicate article or section 2 | dupe2 | A second article or section that this article or section duplicates
| Nom de page | facultatif |
Talk page discussion | discuss | Talk page and section where a relevant discussion is taking place
| Nom de page | facultatif |
Affected area | 1 | Text to replace the word "article", usually "section"
| Ligne de texte | facultatif |
Section? | section | Enter any text here to replace the word "article" with "section".
| Ligne de texte | facultatif |
Duplicates other sections? | othersections | If "Affected area" is set to "section", or "Section?" is true, you can enter "y", "yes", "true", "on" or "1" here to change "other articles" to "other sections".
| Ligne de texte | facultatif |
Make template small | small | Enter "left" here to make the template box small and aligned to the left.
| Ligne de texte | facultatif |
See also
- WP:REDUNDANTFORK, a content guideline
- See a list of related cleanup templates at Wikipedia:Template messages/Cleanup.
- {{CWW}}, for pages that have been copied and pasted within Wikipedia
- {{Convert to transclusion}}
- {{Duplicate}}, for files.
- {{Split portions}}/{{Merge portions from}}: another approach to mitigate partial duplication
- {{Overly detailed}}, for pages that contain excessive detail that may warrant splitting into a separate article or removing entirely
- {{Summarize section}}
- {{Summarize}}:
{{Summarize|to|ArticleName}}
,{{Summarize|from|ArticleName}}
{{#if:{{#ifeq:Duplica|sandbox|1}}{{#ifeq:Duplication|doc|1}}|| }}