Difference between revisions of "Template:Duplication/doc"

From blackwiki
Jump to navigation Jump to search
imported>Intgr
(Add TemplateData auto value for date; according to Wikipedia:TemplateData/Tutorial the month-and-year field should not use type "date"; add alias)
imported>Sdkb
(→‎See also: Added page)
 
(8 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
  
 
=== Usage ===
 
=== Usage ===
Line 9: Line 9:
 
=== Parameters ===
 
=== Parameters ===
 
All parameters are optional.
 
All parameters are optional.
*<tt>section</tt> — changes wording to say "This '''section''' duplicates...". Place the template at the top of the section.
+
*<kbd>section</kbd> — changes wording to say "This '''section''' duplicates...". Place the template at the top of the section.
 
*:Example: {{Tlx|Duplication|section{{=}}yes}}
 
*:Example: {{Tlx|Duplication|section{{=}}yes}}
*<tt>dupe</tt> — 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]].
+
*<kbd>dupe</kbd> — 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: {{Tlx|Duplication|dupe{{=}}#Section name}} {{Tlx|Duplication|dupe{{=}}Article name}}
 
*:Examples: {{Tlx|Duplication|dupe{{=}}#Section name}} {{Tlx|Duplication|dupe{{=}}Article name}}
*<tt>dupe2</tt> — same as <tt>dupe</tt>, just allows for an additional section/article to be linked.
+
*<kbd>dupe2</kbd> — same as <kbd>dupe</kbd>, just allows for an additional section/article to be linked.
 
*:Example: {{Tlx|Duplication|dupe{{=}}Article name|dupe2{{=}}#Section name}}
 
*:Example: {{Tlx|Duplication|dupe{{=}}Article name|dupe2{{=}}#Section name}}
  
Line 22: Line 22:
 
"section": {
 
"section": {
 
"label": "Section",
 
"label": "Section",
"description": "Replaces phrase \"article\" with \"section\"",
+
"description": "Replaces word \"article\" with \"section\" if either section=yes or 1=section is specified",
 
"example": "yes",
 
"example": "yes",
 
"type": "string",
 
"type": "string",
Line 32: Line 32:
 
"small": {
 
"small": {
 
"label": "Small version of template",
 
"label": "Small version of template",
"description": "Displays a smaller version of this template, for use when template is not at top of article",
+
"description": "If value 'left' is specified, displays a smaller version of this template, for use when template is not at top of article",
 
"type": "string",
 
"type": "string",
"default": "no"
+
"default": "no, unless section parameter is given, in which case left"
 
},
 
},
 
"dupe": {
 
"dupe": {
Line 80: Line 80:
 
* See a list of related [[Wikipedia:Cleanup|cleanup]] templates at [[Wikipedia:Template messages/Cleanup]].
 
* See a list of related [[Wikipedia:Cleanup|cleanup]] templates at [[Wikipedia:Template messages/Cleanup]].
 
*{{Tl|CWW}}, for pages that have been copied and pasted within Wikipedia
 
*{{Tl|CWW}}, for pages that have been copied and pasted within Wikipedia
 +
*{{tl|Convert to transclusion}}
 
*{{Tl|Duplicate}}, for files.
 
*{{Tl|Duplicate}}, for files.
*{{Tl|Move portions}}/{{Tl|Move portions from}}: another approach to mitigate partial duplication
+
*{{Tl|Split portions}}/{{Tl|Merge portions from}}: another approach to mitigate partial duplication
*{{Tl|Overly detailed}}, perhaps a much more appropriate template under these circumstances.
+
*{{Tl|Overly detailed}}, for pages that contain excessive detail that may warrant splitting into a separate article or removing entirely
 
*{{Tl|Summarize section}}
 
*{{Tl|Summarize section}}
*{{Tl|Summarize}}: {{Tld|Summarize|to|ArticleName}}, {{Tld|Summarize|from|ArticleName}}
+
*{{Tl|Summarize}}: {{tlc|Summarize|to|ArticleName}}, {{tlc|Summarize|from|ArticleName}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Cleanup templates]]
 
[[Category:Cleanup templates]]
 
[[Category:Coherency templates]]
 
[[Category:Coherency templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:37, 30 October 2020

Usage

This template automatically adds articles to Category:Articles in need of internal merging or Category:Duplicate articles.

Basic usage: {{Duplication|date=June 2026}}

Parameters

All parameters are optional.

Template data

Cleanup template for use in articles which duplicate the scope of other articles.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Duplicate article or sectiondupe

Adds a link referring to the section or article being duplicated, and adds the article to Category:Duplicate articles

Example
Microsoft Windows
Stringoptional
Duplicate article or section 2dupe2

Same as dupe, just allows for an additional section/article to be linked.

Example
#Windows 10
Stringoptional
Sectionsection 1

Replaces word "article" with "section" if either section=yes or 1=section is specified

Example
yes
Stringsuggested
Talk page discussiondiscuss

Article talk page and section where a relevant discussion is taking place

Example
Talk:Microsoft#Duplicate information
Stringoptional
Month and yeardate

The month and year that this cleanup request was placed

Example
March 2017
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Stringsuggested
Small version of templatesmall

If value 'left' is specified, displays a smaller version of this template, for use when template is not at top of article

Default
no, unless section parameter is given, in which case left
Stringoptional

See also