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)
(My Location=Malacca Raya Malaysia)
Line 1: Line 1:
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
=== Usage ===
 
This template automatically adds articles to [[:Category:Articles in need of internal merging]] or [[:Category:Duplicate articles]].
 
 
Basic usage: {{Tlx|Duplication|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
 
 
=== Parameters ===
 
All parameters are optional.
 
*<tt>section</tt> — changes wording to say "This '''section''' duplicates...". Place the template at the top of the section.
 
*: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]].
 
*: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.
 
*:Example: {{Tlx|Duplication|dupe{{=}}Article name|dupe2{{=}}#Section name}}
 
 
== 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 [[Wikipedia:Cleanup|cleanup]] templates at [[Wikipedia:Template messages/Cleanup]].
 
*{{Tl|CWW}}, for pages that have been copied and pasted within Wikipedia
 
*{{Tl|Duplicate}}, for files.
 
*{{Tl|Move portions}}/{{Tl|Move portions from}}: another approach to mitigate partial duplication
 
*{{Tl|Overly detailed}}, perhaps a much more appropriate template under these circumstances.
 
*{{Tl|Summarize section}}
 
*{{Tl|Summarize}}: {{Tld|Summarize|to|ArticleName}}, {{Tld|Summarize|from|ArticleName}}
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Cleanup templates]]
 
[[Category:Coherency templates]]
 
</includeonly>
 

Revision as of 08:59, 5 March 2018