Modèle:Duplication : Différence entre versions
m (→top : Remove deprecated parameter $N from Module:Unsubst) |
m (1 révision importée) |
(Aucune différence)
|
Version actuelle datée du 21 octobre 2017 à 20:53
This {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes }}|section|article}} duplicates the scope of other {{#if:{{safesubst:#switch: |no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes }}|sections|articles}}{{#if:|, specifically, [[:{{{dupe}}}]]{{#if:| and [[:{{{dupe2}}}]]}}}}. |no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes}}| by replacing the section with a link and a summary of the repeated material, or by spinning off the repeated text into an article in its own right.|.}} (juin 2024) |
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|left|{{#ifeq:|section|left|}}}}|left|}
{{#ifeq:duplication |doc
|
{{#ifeq:show |show
|This is a documentation subpage for Modèle:Duplication. 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]] | }} }} | }}
Sommaire
Usage
This template automatically adds articles to Category:Articles in need of internal merging or Category:Duplicate articles.
Basic usage: {{{{#if: |subst:}}Duplication{{#if:date=juin 2024 ||date=juin 2024}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
Parameters
All parameters are optional.
- section — changes wording to say "This section duplicates...". Place the template at the top of the section.
- Example:
{{{{#if: |subst:}}Duplication{{#if:section=yes ||section=yes}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
- 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:
{{{{#if: |subst:}}Duplication{{#if:dupe=#Section name ||dupe=#Section name}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
{{{{#if: |subst:}}Duplication{{#if:dupe=Article name ||dupe=Article name}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
- Examples:
- dupe2 — same as dupe, just allows for an additional section/article to be linked.
- Example:
{{{{#if: |subst:}}Duplication{{#if:dupe=Article name ||dupe=Article name}}{{#if:dupe2=#Section name ||dupe2=#Section name}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||…}}}}
- Example:
Template data
<templatedata> { "params": { "section": { "label": "Section", "description": "Replaces phrase \"article\" with \"section\"", "example": "yes", "type": "string", "suggested": true, "aliases": [ "1" ] }, "small": { "label": "Small version of template", "description": "Displays a smaller version of this template, for use when template is not at top of article", "type": "string", "default": "no" }, "dupe": { "label": "Duplicate article or section", "description": "Adds a link referring to the section or article being duplicated, and adds the article to Category:Duplicate articles", "example": "Microsoft Windows", "type": "string" }, "dupe2": { "label": "Duplicate article or section 2", "description": "Same as dupe, just allows for an additional section/article to be linked.", "example": "#Windows 10", "type": "string" }, "discuss": { "label": "Talk page discussion", "description": "Article talk page and section where a relevant discussion is taking place", "example": "Talk:Microsoft#Duplicate information", "type": "string" }, "date": { "label": "Month and year", "description": "The month and year that this cleanup request was placed", "example": "March 2017", "type": "string", "suggested": true, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}" } }, "description": "Cleanup template for use in articles which duplicate the scope of other articles.", "paramOrder": [ "dupe", "dupe2", "section", "discuss", "date", "small" ], "format": "inline" } </templatedata>
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
- {{Duplicate}}, for files.
- {{Move portions}}/{{Move portions from}}: another approach to mitigate partial duplication
- {{Overly detailed}}, perhaps a much more appropriate template under these circumstances.
- {{Summarize section}}
- {{Summarize}}: {{#if:{{#if:||yes}} |}}{{#if:yes |
|{{#if:|<code style="border:none;background:transparent;">}} }}{{#if: |}}{{#if: |}}{{#if: | |{{}}{{#if: |subst:}}{{#if: |}}{{#if:yes || {{#if: |{}}[[:{{#ifeq:S|: |Summarize |{{#switch:
| = Modèle:{{#if:Summarize|Summarize|Duplication}}
| #default = {{#if:Summarize|Summarize|Modèle:Duplication}}
}}}}|}}{{#if: |{}}{{#if:Summarize|Summarize|{{#ifeq:Modèle|Modèle|Duplication|Modèle:Duplication}}}}{{#if: |}}}{{#if:yes | |]]{{#if: |}}}}}{{#if: |}}{{#if: |}}{{#if: |}}{{#ifeq:¬|¬ | ||{{{2}}}}}{{#ifeq:¬|¬ | ||{{{3}}}}}{{#ifeq:¬|¬ | ||{{{4}}}}}{{#ifeq:¬|¬ | ||{{{5}}}}}{{#ifeq:¬|¬ | ||{{{6}}}}}{{#ifeq:¬|¬ | ||{{{7}}}}}{{#ifeq:¬|¬ | ||{{{8}}}}}{{#ifeq:¬|¬ | ||{{{9}}}}}{{#ifeq:¬|¬ | ||{{{10}}}}}{{#ifeq:¬|¬ | ||{{{11}}}}}{{#if: ||…}}{{#if: |}}{{#if: | |}}}}{{#if: |}}{{#if:yes |}}{{#if:{{#if:||yes}} |}}, {{#if:{{#if:||yes}} |}}{{#if:yes | |{{#if:|<code style="border:none;background:transparent;">}} }}{{#if: |}}{{#if: |}}{{#if: | |{{}}{{#if: |subst:}}{{#if: |
}}{{#if:yes || {{#if: |{}}[[:{{#ifeq:S|: |Summarize |{{#switch:
| = Modèle:{{#if:Summarize|Summarize|Duplication}}
| #default = {{#if:Summarize|Summarize|Modèle:Duplication}}
}}}}|}}{{#if: |{}}{{#if:Summarize|Summarize|{{#ifeq:Modèle|Modèle|Duplication|Modèle:Duplication}}}}{{#if: |}}}{{#if:yes | |]]{{#if: |}}}}}{{#if: |}}{{#if: |}}{{#if: |}}{{#ifeq:¬|¬ | ||{{{2}}}}}{{#ifeq:¬|¬ | ||{{{3}}}}}{{#ifeq:¬|¬ | ||{{{4}}}}}{{#ifeq:¬|¬ | ||{{{5}}}}}{{#ifeq:¬|¬ | ||{{{6}}}}}{{#ifeq:¬|¬ | ||{{{7}}}}}{{#ifeq:¬|¬ | ||{{{8}}}}}{{#ifeq:¬|¬ | ||{{{9}}}}}{{#ifeq:¬|¬ | ||{{{10}}}}}{{#ifeq:¬|¬ | ||{{{11}}}}}{{#if: ||…}}{{#if: |}}{{#if: | |}}}}{{#if: |}}{{#if:yes |}}{{#if:{{#if:||yes}} |}}
The above documentation is transcluded from Modèle:Duplication/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |