This page is protected against editing.

Template:Duplicate

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This file isanexact duplicateor scaled-down version of:[[:Template:]]
There should be only one exact copy of a file.
After replacing all instances with the preferred file, this file will bespeedily deleted.

This file has been tagged byJarekt(talk·contribs·count·global contribs)

Alemannisch|Bahasa Indonesia|Bahasa Melayu|Boarisch|català|čeština|dansk|Deutsch|Deutsch (Sie-Form)‎|English|español|euskara|français|galego|hrvatski|italiano|Lëtzebuergesch|magyar|Nederlands|norsk bokmål|Plattdüütsch|polski|português|português do Brasil|Schweizer Hochdeutsch|sicilianu|slovenčina|slovenščina|suomi|svenska|Tiếng Việt|Türkçe|Zazaki|беларуская|беларуская (тарашкевіца)|македонски|русский|српски / srpski|татарча/tatarça|українська|हिन्दी|বাংলা|മലയാളം|한국어|Nhật bổn ngữ|Trung văn ( giản thể ) ‎|Trung văn ( phồn thể ) ‎|עברית|العربية|فارسی|+/−


Template documentation[view·edit·history·purge]
This documentation istranscludedfromTemplate:Duplicate/doc.
Warning If you want to rename a file, please don't upload it again under a new name but use{{Rename}}instead.

Use this template on the media page that should be deleted, to tag exact duplicates.

The template automatically sets the following categories: Duplicate

Usage

{{Duplicate |1= |2= |3= }}

Or use the shorthand
{{dup|… parameters as described…}}

Template parameters

ParameterDescriptionDefaultStatus
1
file
FileFile to be kept (without the "File:" prefix).emptyrequired
2ReasonReason for deletion of this copy (not the other one), e. g. "later upload", "unsuitably scaled", etc.emptyoptional
3
user
UserName of tagging user.{{REVISIONUSER}}suggested
categoryCategoryCategory override[[Category:Duplicate|{{REVISIONTIMESTAMP}}]]optional
Template data
<templatedata>JSON</templatedata>./.{{TemplateBox}}
TemplateData

TemplateDatais a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used byVisualEditorand possibly other tools likeUpload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use{{TemplateBox}}with either‎useTemplateData=1or‎useTemplateData=onlyon the‎/docsubpage and transcluding it with{{Documentation}}into the template.‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Use this template on the media page that should be deleted, to tag exact duplicates.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File1file

File to be kept (without the "File:" prefix).

Filerequired
Reason2

Reason for deletion of this copy (not the other one), e. g. "later upload", "unsuitably scaled", etc.

Contentoptional
User3user

Name of tagging user.

Default
{{REVISIONUSER}}
Usersuggested
Categorycategory

Category override

Default
[[Category:Duplicate|{{REVISIONTIMESTAMP}}]]
Lineoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: At the top of the page

Example

{{Duplicate|Example}}

renders as:

This file isanexact duplicateor scaled-down version of:Template:Example
There should be only one exact copy of a file.
After replacing all instances with the preferred file, this file will bespeedily deleted.

This file has been tagged byJarekt(talk·contribs·count·global contribs)

Alemannisch|Bahasa Indonesia|Bahasa Melayu|Boarisch|català|čeština|dansk|Deutsch|Deutsch (Sie-Form)‎|English|español|euskara|français|galego|hrvatski|italiano|Lëtzebuergesch|magyar|Nederlands|norsk bokmål|Plattdüütsch|polski|português|português do Brasil|Schweizer Hochdeutsch|sicilianu|slovenčina|slovenščina|suomi|svenska|Tiếng Việt|Türkçe|Zazaki|беларуская|беларуская (тарашкевіца)|македонски|русский|српски / srpski|татарча/tatarça|українська|हिन्दी|বাংলা|മലയാളം|한국어|Nhật bổn ngữ|Trung văn ( giản thể ) ‎|Trung văn ( phồn thể ) ‎|עברית|العربية|فارسی|+/−

See also

Localization

Alemannisch|Bahasa Indonesia|Bahasa Melayu|Boarisch|català|čeština|dansk|Deutsch|Deutsch (Sie-Form)‎|English|español|euskara|français|galego|hrvatski|italiano|Lëtzebuergesch|magyar|Nederlands|norsk bokmål|Plattdüütsch|polski|português|português do Brasil|Schweizer Hochdeutsch|sicilianu|slovenčina|slovenščina|suomi|svenska|Tiếng Việt|Türkçe|Zazaki|беларуская|беларуская (тарашкевіца)|македонски|русский|српски / srpski|татарча/tatarça|українська|हिन्दी|বাংলা|മലയാളം|한국어|Nhật bổn ngữ|Trung văn ( giản thể ) ‎|Trung văn ( phồn thể ) ‎|עברית|العربية|فارسی|+/−

This template is localized through{{Autotranslate}}. The layout of the template can be found underTemplate:Duplicate/layout.

To add your language to the list of languages supported by this template, please copy the code ofTemplate:Duplicate/en(or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameterlangfromen(or whatever language you are translating) to thelanguage codeof your language.



Note for programmers: This template callsTemplate:Nuke,which adds the small garbage can icon for administrators.