Template:Rename/sandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
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
<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.


Wikipedia's help about TemplateDataCommons-specific information

Used to request file rename.

Template parameters[Edit template data]

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

Placement: At the top of the page

See also

Localization

Alemannisch  Bahasa Indonesia  British English  Canadian English  català  čeština  dansk  Deutsch  English  español  français  galego  hrvatski  italiano  lietuvių  magyar  Nederlands  occitan  polski  português  português do Brasil  română  sicilianu  slovenčina  slovenščina  suomi  svenska  Tiếng Việt  Ελληνικά  беларуская  беларуская (тарашкевіца)  български  македонски  русский  српски / srpski  українська  հայերեն  हिन्दी  বাংলা  മലയാളം  ဘာသာ မန်  မြန်မာဘာသာ  ไทย  한국어  日本語  中文  עברית  العربية  فارسی  +/−

This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:Rename/layout.

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.