Difference between revisions of "Template:Duplication/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jarble
(→‎See also: linking to a related template)
imported>Daylen
(Added template data)
Line 15: Line 15:
 
*<tt>dupe2</tt> — same as <tt>dupe</tt>, just allows for an additional section/article to be linked.
 
*<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}}
 
*: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
 +
},
 +
"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": "date",
 +
"suggested": true
 +
}
 +
},
 +
"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 ===
 
=== See also ===

Revision as of 02:35, 10 March 2017

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

Replaces phrase "article" with "section"

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
Datesuggested
Small version of templatesmall

Displays a smaller version of this template, for use when template is not at top of article

Default
no
Stringoptional

See also