Modèle:Duplication/doc : Différence entre versions

De Wikisisar
Aller à : navigation, rechercher
(Add TemplateData auto value for date; according to Wikipedia:TemplateData/Tutorial the month-and-year field should not use type "date"; add alias)
 
m (1 révision importée)
 
(Aucune différence)

Version actuelle datée du 21 octobre 2017 à 21:00

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|
        }}{{#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: {{{{#if: |subst:}}Duplication{{#if:date=mai 2024 ||date=mai 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: ||}}}}
  • 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: ||}}}}
  • 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: ||}}}}

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

                        |  = Modèle:{{#if:Summarize|Summarize|Duplication/doc}}
                        | #default = {{#if:Summarize|Summarize|Modèle:Duplication/doc}}
                     }}}}|}}{{#if: |{}}{{#if:Summarize|Summarize|{{#ifeq:Modèle|Modèle|Duplication/doc|Modèle:Duplication/doc}}}}{{#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/doc}}
                        | #default = {{#if:Summarize|Summarize|Modèle:Duplication/doc}}
                     }}}}|}}{{#if: |{}}{{#if:Summarize|Summarize|{{#ifeq:Modèle|Modèle|Duplication/doc|Modèle:Duplication/doc}}}}{{#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}} |}}