Open main menu
Documentationviewedithistorypurge
This documentation is transcluded from Template:Rename/doc.

Used to request file rename, so this template is for media only.

The template automatically sets the following categories:

Usage

{{Rename |1= |2= |3= |user= }}

Named parameter (3= or reason=) must be used when an equal sign appears somewhere in the text of the reason given (as for example, inside a link).

Template parameters

ParameterDescriptionDefaultStatus
1new namenew_name.ext − New file name. (See Commons:File naming for general guidelines.) New names that include / are invalid; please do not use them.emptyrequired
2
rationale
rationaleA number between 1 and 6 (see Template:File renaming reasons/i18n)emptyrequired
3
reason
reasonExplain how your request meets one of the criteria of the file renaming reasons. If the file name is misleading, make sure to correct the description in the {{Information}} template as well.emptyrequired
userrequestorThe requestor's user name / Last user who edited the page. – Not a signature.emptyoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is 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 by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage 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

Used to request file rename.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
new name1

new_name.ext − New file name. (See Commons:File naming for general guidelines.) New names that include “/” are invalid; please do not use them.

Filerequired
rationale2 rationale

A number between 1 and 6 (see Template:File renaming reasons/i18n)

Numberrequired
reason3 reason

Explain how your request meets one of the criteria of the file renaming reasons. If the file name is misleading, make sure to correct the description in the {{information}} template as well.

Contentrequired
requestoruser

The requestor's user name / Last user who edited the page. – Not a signature.

Useroptional

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

See also

Localization

العربية | Беларуская | Беларуская (тарашкевіца)‎ | বাংলা | Català | Čeština | Dansk | Deutsch | Deutsch (Sie-Form)‎ | Ελληνικά | English | Canadian English | Español | فارسی | Suomi | Français | Galego | Alemannisch | עברית | Hrvatski | Magyar | Հայերեն | Bahasa Indonesia | Italiano | 日本語 | Lietuvių | Македонски | മലയാളം | မြန်မာဘာသာ | Nederlands | Occitan | Polski | Português | Português do Brasil | Română | Русский | Sicilianu | Slovenčina | Slovenščina | Српски / srpski | Svenska | Українська | Tiếng Việt | 中文 | 中文(简体)‎ | 中文(繁體)‎ |

This template makes use of {{Autotranslate}} and the translate extension.

Examples

  • {{rename|New name.jpg|3|Misspelled.}}

This creates:

and tags the file as Category:Media requiring renaming.
  • {{rename|A better name.png}} (please do not omit parameter 2 and 3)
    This creates:
and tags the file as Category:Media requiring renaming.
  • {{rename|A lousy name}} (please do not use a lousy name)
    This creates:
and tags the file as Category:Incomplete media renaming requests.
and tags the file as Category:Media renaming requests needing target.