Template:Rename media: Difference between revisions
use PAGENAME instead of Template:Remove file prefix |
m Localise imported template guidance and policy links; preserve index layout and licence information |
||
| Line 6: | Line 6: | ||
| style = |
| style = |
||
| textstyle = |
| textstyle = |
||
| text = {{ #ifeq: {{{2|}}} | {{{2|u}}} | | The name of this media object is misspelled, incomplete, misleading, cryptic, does not conform to an established naming convention, is largely duplicative to another name, or shadows a file name on Wikimedia Commons. }}It has been suggested that this media object be '''renamed'''{{ #ifeq: {{{1|}}} | {{{1|u}}} | to <span class="media-move-suggestion">[[:File:{{PAGENAME:{{{1}}}}}]]</span> or a more suitable name}}{{ #ifeq: {{{2|}}} | {{{2|u}}} | for the following reason: <span class="media-move-reason" style="font-weight:bold">{{{2}}}</span>|.}} For further information about when to rename, see [[ |
| text = {{ #ifeq: {{{2|}}} | {{{2|u}}} | | The name of this media object is misspelled, incomplete, misleading, cryptic, does not conform to an established naming convention, is largely duplicative to another name, or shadows a file name on Wikimedia Commons. }}It has been suggested that this media object be '''renamed'''{{ #ifeq: {{{1|}}} | {{{1|u}}} | to <span class="media-move-suggestion">[[:File:{{PAGENAME:{{{1}}}}}]]</span> or a more suitable name}}{{ #ifeq: {{{2|}}} | {{{2|u}}} | for the following reason: <span class="media-move-reason" style="font-weight:bold">{{{2}}}</span>|.}} For further information about when to rename, see [[Project:Image use policy|File names]]. This request will be dealt with by an administrator{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|| or [[Project:Image use policy|file mover]]{{#if:{{PROTECTIONLEVEL:move}}|{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|| with the {{#ifeq:{{PROTECTIONLEVEL:move}}|templateeditor|[[Project:Template documentation|template editor]]|{{#ifeq:{{PROTECTIONLEVEL:move}}|extendedconfirmed|[[Project:Editorial guidance|extended confirmed]]}}}} user right}}}}}}.{{#if:{{PROTECTIONLEVEL:move}}| ''('''Note''': This page is currently [[Elite Dangerous Wiki:Protection policy|move protected]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|| so that only {{#ifeq:{{PROTECTIONLEVEL:move}}|templateeditor|template editors|{{#ifeq:{{PROTECTIONLEVEL:move}}|extendedconfirmed|extended confirmed users}}}} can move the page}}. Please see the [{{fullurl:Special:Log|page={{urlencode:{{FULLPAGENAMEE}}}}}} log] for details.)''}}<br />{{#switch: {{NAMESPACENUMBER}} | 6 | 10 = {{#if:{{{1|}}}|<small class="plainlinks">[{{fullurl:Special:Movepage/{{FULLPAGENAMEE}}}}?wpNewTitle={{urlencode:File:{{PAGENAME:{{{1}}}}}}}&wpReason={{urlencode:{{{2|More suitable name}}}}} Perform this move] (or if the image is suitable, please consider copying the file to Commons via [[mw: Help:Extension:FileImporter|FileImporter]] by clicking on the "Export to Wikimedia Commons" link near the top of the file page).</small><br />{{StringDiff|{{FULLPAGENAME}}|File:{{PAGENAME:{{{1}}}}}}}|<!-- template parameter missing -->{{#ifeq: {{NAMESPACENUMBER}} | 10 |'''{{color|red|Warning: the {{tl|Rename media}} template is not meant to be used outside the File: namespace. Use {{tl|Requested move}} on the talk page of the page that you believe should be moved instead.}}'''|<span style="color:red">To suggest a new name, please use this template in the following way:</span><br />{{tlx|rename media|target name.extension|reason for name change}}}} }}| '''{{color|red|Warning: the {{tl|Rename media}} template is not meant to be used outside the File: namespace. Use {{tl|Requested move}} on the talk page of the page that you believe should be moved instead.}}'''}}<!-- |
||
-->{{#ifeq: {{{1|}}} ||| {{#ifexist:File:{{PAGENAME:{{{1}}}}}|<p>{{color|red|'''{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|It appears that the file has already been moved; if so, please remove the template|Please note that a file by this name already exist{{#ifexist:File:{{PAGENAME:{{{1}}}}}|s|s on Wikimedia Commons}}}}.'''}}</p>}} }}<!-- |
-->{{#ifeq: {{{1|}}} ||| {{#ifexist:File:{{PAGENAME:{{{1}}}}}|<p>{{color|red|'''{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|It appears that the file has already been moved; if so, please remove the template|Please note that a file by this name already exist{{#ifexist:File:{{PAGENAME:{{{1}}}}}|s|s on Wikimedia Commons}}}}.'''}}</p>}} }}<!-- |
||
Latest revision as of 09:52, 31 October 2026
Warning: the {{Rename media}} template is not meant to be used outside the File: namespace. Use {{Requested move}} on the talk page of the page that you believe should be moved instead.
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit "Template:Rename media/doc" to edit its documentation if it is available. (How does this work?) |
| Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. |
Media bearing this template are added to Category:Wikipedia files requiring renaming. If no suggestion is made for the new name, the media will be added to Category:Incomplete file renaming requests.
See rename criteria at Project:Image use policy § What files should be renamed?
Usage: {{rename media|New title|Reason for request}}
- Place the template at the top of the file page, not the corresponding talk page.
- Do not subst: the template.
- Do not include the "File:" prefix.
- Remember to add the file extension (.jpg, .png, etc.).
- This is for media only. For articles and templates, see Requested moves. For categories, see Categories for discussion.
Example
{{Rename media|Renaming media.jpg|The image's title is misspelled.}} creates:
Perform this move (or if the image is suitable, please consider copying the file to Commons via FileImporter by clicking on the "Export to Wikimedia Commons" link near the top of the file page).
| − | + | File:Renaming media.jpg |
The namespace warning would obviously not appear when the template is placed on a file description page.
Commons files
Files uploaded to Wikimedia Commons cannot be renamed by Wikipedia administrators or file movers. Commons:File naming describes how Commons files should be named. In general, Commons aims to provide stable file names as there might be external file clients and file moving involves significant human and computing resources. Thus renaming should be used with caution. To request the rename of a file at Commons, follow the instructions at Commons:File renaming.
See also
Use this template to add this media to [[:Category:Wikipedia files requiring renaming]]. If no suggestion is made for the new name, the media will be added to [[:Category:Incomplete file renaming requests]].
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| New title | 1 | Enter the desired new title for this file. Do not include the "File:" prefix. Remember to add the file extension (.jpg, .png, .ogg, etc)
| Line | required |
| Reason for request | 2 | Reason for making this media rename request | Unknown | suggested |
| category | category | no description | Unknown | optional |