Template talk:Rename

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Quick adding to User talk:CommonsDelinker/commands aiming for the Image replace requests section[edit]

I would like to propose an edit in the text

"Before you move the file, please add {{universal replace|Rename|New name.jpg|reason=[[Commons:File renaming|File renamed]]: Misspelled.}}~~~~

to User talk:CommonsDelinker/commands (Quick adding)". Instead of http://commons.wikimedia.org/w/index.php?title=User_talk:CommonsDelinker/commands&action=edit&function=replace&oldimage=Rename&newimage=New_name.jpg&replace_reason=File_renamed_%28Misspelled.%29 it should be aiming to the specific section Image replace requests. This would save some scrolling time. --Mattes (talk) 12:52, 3 June 2010 (UTC)Reply[reply]

✓ Done, temporarily. A javascript should be running in place of the link, but we're still working on that. ZooFari 14:36, 3 June 2010 (UTC)Reply[reply]

Link to add on unused files[edit]

The template now has a link to 1) move file and replace usage and 2) decline move. What about a link for moving without adding a redirect or replace usage? --MGA73 (talk) 21:09, 10 August 2010 (UTC)Reply[reply]

And a link to remove redundant rename suggestions. --MGA73 (talk) 08:47, 11 August 2010 (UTC)Reply[reply]

Please use edit description[edit]

Please use edit description when editing this template. That makes it easier to find out what has been changed + find out what went wrong when something suddenly does not work. Perhaps some edits should be tested in a sandbox. At the moment the "Move unused files" does not work. --MGA73 (talk) 17:37, 1 October 2010 (UTC)Reply[reply]

...because script was changed so the link "move and replave" can also move without replacing. Here an edit description or a better name for link would have helped ;-) --MGA73 (talk) 17:56, 1 October 2010 (UTC)Reply[reply]

Where does the template go?[edit]

I'm new to the administrative side of Commons, but have done a lot of work on WP. From that, I'm assuming that the rename request is to be placed on the talk (discussion) page. Is that correct? Would that be a useful piece of info to be added to the template documentation? Schwede66 21:00, 26 February 2011 (UTC)Reply[reply]

No, the template goes at the top of the description page. Very few templates on Commons are designed to be placed on the talk page. Huntster (t @ c) 21:33, 26 February 2011 (UTC)Reply[reply]
Thanks for the quick response. I've fixed my rename request accordingly. Schwede66 02:35, 27 February 2011 (UTC)Reply[reply]

Remove .ext from advise[edit]

Hi, I suggest removing the .ext from the suggested name. So {{rename|new name|reason}} instead of {{rename|new name.ext|reason}}. The template automatically fills in the extension when it is not there and manually adding extensions to the template can easily lead to mistakes. Sincerely, Taketa (talk) 15:51, 16 April 2011 (UTC)Reply[reply]

While implementing my suggestion I noticed a negative side to the change, so I decided not to do it after all. If tou take away the .ext the red link provided to the user also does not have the .ext and is therefore always red, if the file.ext already exist or not. Sincerely, Taketa (talk) 17:45, 1 May 2011 (UTC)Reply[reply]

It would be great if we were to compensate for the misleading redlink if the target exists and the user did not specify an extension, specified an uppercase extension, or did anything else that is otherwise automatically compensated for.   — Jeff G. ツ 16:12, 3 March 2012 (UTC)Reply[reply]

Ufff. MediaWikis string manipulation methods are very limited. But I will try something. -- RE rillke questions? 16:49, 3 March 2012 (UTC)Reply[reply]
As I expected, likely impossible. You may revert to this version and test (e.g. add {{Commons:Sandbox|TestnameWithoutExtension}} to a file) but if either the old or new file names are >100 chars or contain unknown chars, it fails. -- RE rillke questions? 19:00, 3 March 2012 (UTC)Reply[reply]
Is that any worse than the current situation?   — Jeff G. ツ 00:54, 4 March 2012 (UTC)Reply[reply]

Autotranslation?[edit]

Is it possible to have autotranslation on this template ? Would someone be willing to do it (I think I would break anything if I dared touching it ;-) ? Jean-Fred (talk) 22:29, 5 June 2011 (UTC)Reply[reply]

Template:Rename/notarget[edit]

Template:Rename needs target has been replaced with Template:Rename/notarget, but this doesn't work well because {{translated tag|cleanup}} wouldn't work where there is slash "/" in the template name. --miya (talk) 00:42, 3 July 2011 (UTC)Reply[reply]

So I replaced "Rename/notarget" with "Rename needs target" so that we can use autotranslation.--miya (talk) 04:43, 3 July 2011 (UTC)Reply[reply]

revert[edit]

Could you not just revert [1] the edit but instead find a soultion to the problem that the categories with the misplaced template vanish and are not dealt with! And say something substantial about the commons delinker problem! --Cwbm (commons) (talk) 15:48, 8 August 2011 (UTC)

When moving categories, the delinker (and category bot too I guess) removes the Move template, which saves a substantial amount of work and avoids categories in Category:Requested moves (all) that are already moved. The last couple of months, we never had problems with "misplaced" rename templates in categories. This is compliant with its documentation: for media only. When used on a category, its displays a proper message (please use {{Move}}). --Foroa (talk) 16:20, 8 August 2011 (UTC)Reply[reply]

How would you know you don't have a problem with displaced rename templates? --Cwbm (commons) (talk) 16:23, 8 August 2011 (UTC)

The feature has been enabled sometime. After the restore (and after bot change to move), I checked a couple of times using this. There is one now. --Foroa (talk) 16:40, 8 August 2011 (UTC)Reply[reply]
And why is it not possible to just make a not in the template to exchange it for "move"? --Cwbm (commons) (talk) 16:57, 8 August 2011 (UTC)
As explained above, SieBot don't remove it autimatically, so creates significant extra word and stale move requests. --Foroa (talk) 05:56, 9 August 2011 (UTC)Reply[reply]
It would be great if rename and move templates redirect to the same template, but as long as SieBot does not implement it (it exceptionally doesn't work sometimes, it seems to depend on its position or format), there is nothing gained. --Foroa (talk) 06:08, 9 August 2011 (UTC)Reply[reply]

It does not create extra work unless you blindly execute the move request without checking the reason and always keep the old category as a redirect. I assume neither is true. Additionaly if the template is rearly misplaced it obviously does create only a small amount of additional work to exchange the template. If it is often misplaced than the current "solution" is shit because a lot of move request are never noted. --Cwbm (commons) (talk) 06:57, 9 August 2011 (UTC)

It has been enabled for a couple of months. In the end, we've got to manually remove around 100 to 150 instances in the destination categories (Siebot removes de {{Move}} on the fly), so there is no need to edit the destination categories (why I reverted it in May). The down side is that after about 3 months, we have one single misplaced one, so the conclusions are easy. See Commons:Bots/Work_requests/Archive_5#Rename_template. --Foroa (talk) 09:09, 9 August 2011 (UTC)Reply[reply]

File talk page warning?[edit]

Is there some way to have the template check if has been applied to a file talk page rather than the file page, and issue a warning? — Cheers, JackLee talk 05:22, 11 August 2011 (UTC)Reply[reply]

The template should at least categorize into a maintenance cat when it is put on a file talk page. And it also should display a warning. --Cwbm (commons) (talk) 11:18, 11 August 2011 (UTC)
Thanks for the recent update to the template, which seems to be working (there are now 48 files in "Category:Incomplete media renaming requests"). I suggest the following changes to the warning notice: "{{Rename}} should be placed on the file description page itself, not its talk page. Please move the tag to File:Bcbj98pzysx60o2hmcu.jpg." Thanks. — Cheers, JackLee talk 05:07, 16 August 2011 (UTC)Reply[reply]
It looks good. Thanks for making the changes. — Cheers, JackLee talk 17:58, 16 August 2011 (UTC)Reply[reply]
No problem. --Cwbm (commons) (talk) 17:59, 16 August 2011 (UTC)

Template appears to have a problem[edit]

In this edit I think I used the template properly, but the reason for the rename does not show up when the template is rendered. Not sure what's up. -Pete F (talk) 16:36, 21 September 2011 (UTC)Reply[reply]

Since there's an equal sign in your 'reason' (inside the link), you should have added 2= before it:
{{rename|...|2=reason}}
Capmo (talk) 16:59, 30 January 2012 (UTC)Reply[reply]

Point to talk page in template text[edit]

I think this template should warn potential renamers/movers to check the talk page to see if there's discussion about other possible names. I just ran across an instance of this template (on a File page) that I disagreed with (both the suggested new name and the justification for it), so I wanted to point people to the talk page to see my objections, but I found that I couldn't make any edit to the File page without the original suggestion being attributed to me instead of the original user. So I just had to remove his suggestion and replace it with my own (mentioning the prior suggestion and pointing to the talk page in the process). If the template had included a warning to check the talk page before renaming, I wouldn't have had to take such a drastic action. - dcljr (talk) 20:36, 31 October 2011 (UTC)Reply[reply]

Give template named parameters[edit]

It would be reasonable, practicable and good practice to add some named parameter that are alternatives to $1 and $2.  — billinghurst sDrewth 21:53, 23 November 2011 (UTC)Reply[reply]

This template is a mess and has no i18n[edit]

bad. I am going to change it. -- RE rillke questions? 10:49, 21 February 2012 (UTC)Reply[reply]

I agree that this template is asking for some enhancements; just remember that it is used by one or more bots, and changing it may break the bots' functionality or, even worse, produce undesirable results (as bad renames). Capmo (talk) 15:17, 21 February 2012 (UTC)Reply[reply]
By a bot? Which one? -- RE rillke questions? 16:48, 21 February 2012 (UTC)Reply[reply]
Looks like a great improvement. warningCategory=This template should only be used for files --> should omit the "file::" prefix. --Foroa (talk) 16:59, 21 February 2012 (UTC)Reply[reply]
✓ Done -- RE rillke questions? 20:28, 21 February 2012 (UTC)Reply[reply]
Sorry, I was referring to BetacommandBot, but it seems to be inactive now. It made a couple of faulty renamings in the past, due to its inability to properly get numbered parameters from this template. Capmo (talk) 17:21, 25 February 2012 (UTC)Reply[reply]

Bug with parameter number 2[edit]

There is a problem with the second parameter (the reason of renaming) because it is always printed twice. I tried to fix it but I could'nt. Does anyone have a solution ? Udufruduhu (talk) 12:39, 3 March 2012 (UTC)Reply[reply]

What interface language are you using? -- RE rillke questions? 12:42, 3 March 2012 (UTC)Reply[reply]
The French one. Udufruduhu (talk) 12:46, 3 March 2012 (UTC)Reply[reply]
And where did you see the reason twice (example file)? Thanks. -- RE rillke questions? 12:50, 3 March 2012 (UTC)Reply[reply]
I noticed it when I asked for renaming File:CyrileLowe1913.png. But I can see it in the template itself: there is <Reason specified here> written twice in the box, see screen capture. Udufruduhu (talk) 12:59, 3 March 2012 (UTC)Reply[reply]
Thanks! I think I could correct it. It would be great if you could update the french text (use the english text as the template). Merci! -- RE rillke questions? 13:18, 3 March 2012 (UTC)Reply[reply]
Thanks ! I updated the french template. Udufruduhu (talk) 13:58, 3 March 2012 (UTC)Reply[reply]

This may be related. In English, the reason is currently coming up as "none stated.", even in the documentation. :(   — Jeff G. ツ 16:06, 3 March 2012 (UTC)Reply[reply]

I assume I fixed the french one and broke the english one :-( Should work now. Sorry! -- RE rillke questions? 16:43, 3 March 2012 (UTC)Reply[reply]
Thanks!   — Jeff G. ツ 21:47, 3 March 2012 (UTC)Reply[reply]

Few problems[edit]

Sometimes the rename suceeds but the code is unable to carry on the last two steps (removing the template, posting on commonsdelinker). This happens when the target rename is filtered, ie how .JPG becomes .jpg

The code then complains how it cannot move page onto itself like here: [2]

Also consider the case where a page is moved but the template wasn't removed. There should be a button to remove the template and check if entry was posted to commons delinker and post if it hasn't been. [3]

Also it would be useful if template offered check boxes for movers to click on for criteria that applies to the move. Currently the only justification that automatically shows is what the users provided. An even better option is for the template to take parameters for the requesters to choose.

-- とある白い猫 ちぃ? 09:38, 4 March 2012 (UTC)

I agree that it could be a good idea to have the file mover select one of the valid reasons to move a file. Often moves are done without a reason added. File movers and admins should know "the rules" but new users can't all be expected to know them so I do not think it should be a must for them to choose between reasons. If file mover or admin can't see the reason to move they should just say no to move the file. --MGA73 (talk) 10:48, 4 March 2012 (UTC)Reply[reply]
That happens for me on most moves using my phone.   — Jeff G. ツ 16:16, 5 March 2012 (UTC)Reply[reply]
Perhaps there should be two fields, one the move reason and the other "notes" for any additional comments. -- とある白い猫 ちぃ? 17:49, 8 March 2012 (UTC)
I attempted a fix that I think shouldn't break the automation. -- とある白い猫 ちぃ? 18:32, 8 March 2012 (UTC)
Now you just have to update some instructions. Also, param 3 is not passed anymore, which was used on Template:Rename/layout when using this template in categories.
Then, please update the documentation, Commons:Deletion requests and pull-in translations for "You have to specify ...". -- RE rillke questions? 18:45, 8 March 2012 (UTC)Reply[reply]
Could I ask you to do all that? :) -- とある白い猫 ちぃ? 19:53, 8 March 2012 (UTC)
Most work is done. Now you just have to translate und update these few templates. Thanks for volunteering. -- RE rillke questions? 13:20, 9 March 2012 (UTC)Reply[reply]
I am not sure what needs to be done really. -- とある白い猫 ちぃ? 18:38, 11 March 2012 (UTC)
Should the numbers be mandatory input? It is optional currently and I was hoping people would use it voluntarily but especially IPs seem to avoid using them. -- とある白い猫 ちぃ? 17:35, 13 March 2012 (UTC)
You can't expect the whole word is speaking English. Maybe they simply don't understand or didn't notice the difference. Should we enable the new move-link for IPs, too? -- RE rillke questions? 18:00, 13 March 2012 (UTC)Reply[reply]
That's why the input is a number which can be auto-translated to many languages. A number has no language. I agree that many people indeed did not notice the difference probably because the template currently does not declare non-numbered submissions as "incomplete". I propose they should be treated as incomplete. -- とある白い猫 ちぃ? 19:44, 13 March 2012 (UTC)
 Support but I would go further: any submissions with number outside the range 1-7 should also be considered incomplete.   — Jeff G. ツ 19:43, 12 June 2012 (UTC)Reply[reply]
Yes, the numbers 1-7 should be mandatory input - consensus for this is under discussion at Commons talk:File renaming#Require_a_numeric_reason_parameter_.232_in_the_range_1-7_for_Template:Rename.   — Jeff G. ツ 19:47, 12 June 2012 (UTC)Reply[reply]

Automatic mode broken[edit]

Nothing is happening when I click "Proceed" after clicking "Move file and replace all usage" in automatic mode, other than the dialog box disappearing. It is as if I am clicking "Cancel". Manual mode works.   — Jeff G. ツ 16:10, 5 March 2012 (UTC)Reply[reply]

Fixed -- RE rillke questions? (ریلکه) (里尔克) (リルケ) 16:59, 5 March 2012 (UTC)Reply[reply]

Script to automatically add this template[edit]

Hi filemovers: You complained about unjustified move requests? Here is the solution for well-formed requests. I am posting here because I am really surprised that nobody commented there. -- RE rillke questions? 14:45, 7 March 2012 (UTC)Reply[reply]

Username used by template[edit]

  • Apparently, the template picks up the last editor of the page rather than the one who added the template. Comments?
  • Another, unrelated issue: if the requester does not add the "Rationale number" (parameter #2), then the summary line gets cluttered with "You need to input a value between 1 and 7 which corresponds to the file renaming criteria", even if the request is well justified. Would it be possible to modify the warning so that it does not get into the edit summary line? Materialscientist (talk) 02:28, 23 March 2012 (UTC)Reply[reply]
  1. The new script for non-filemovers ("the move-tab") always included the real requestor. (|user=X) If it would be translated to more languages, I think it will be more often used -- especially by newcomers.
  2. Our white cat has inserted this and will be able to answer.
Regards RE rillke questions? 17:59, 25 March 2012 (UTC)Reply[reply]
For the second point, I merely moved parameter 2 to parameter 3. I would wish to see parameter 2 be made mandatory as it is a good way to establish rationale to move the file directly correlating with existing guideline. I will do this now in the absence of objection to this end. From now on rename requests will require the second parameter to be a number or else the rename request will be marked as incomplete. -- とある白い猫 ちぃ? 21:18, 28 March 2012 (UTC)
With regards to the first point, it still shows up as though the last editor requested the move. Could the template be modified to subst: the name when placed? If I'm just fixing a request, I really don't see why my name should show up as the one making the request. --Philosopher Let us reason together. 23:09, 22 May 2012 (UTC)Reply[reply]
I am attempting to establish a consensus for making parameter 2 mandatory at Commons talk:File renaming#Require_a_numeric_reason_parameter_.232_in_the_range_1-7_for_Template:Rename.   — Jeff G. ツ 19:36, 12 June 2012 (UTC)Reply[reply]

"Quick adding"[edit]

Why is this disallowed for filemovers such as myself? See Commons talk:Abuse filter#Report_by_Jeff_G. for details.   — Jeff G. ツ 16:20, 3 May 2012 (UTC)Reply[reply]

Replied there. -- RE rillke questions? 16:44, 3 May 2012 (UTC)Reply[reply]

Assessments fix for Rename script[edit]

When files are renamed {{Assessments}} is broken. A solution is if this sample edit is automated with the existing rename script. -- とある白い猫 ちぃ? 22:36, 3 May 2012 (UTC)

... because the links to the voting pages will break. The easiest solution is renaming before nominating a file for assessments. -- RE rillke questions? 05:52, 4 May 2012 (UTC)Reply[reply]
What? No it will break if the parameter is not used. There are plenty of old nominations that passed (either here on commons or other wikis) and may be renamed in the future. -- とある白い猫 ちぃ? 07:45, 5 May 2012 (UTC)
Did you read my sentence? It means I agree this could be done by script but people should think about the file name before promoting/nominating an image. -- RE rillke questions? 07:57, 5 May 2012 (UTC)Reply[reply]
Oh! I thought your "...because" was not an objection. I was confused there. :D -- とある白い猫 ちぃ? 08:38, 5 May 2012 (UTC)
I never dealt with the {{Assessments}} - template and didn't know what it is doing. I should this have said before.
Maybe you are aware of a JavaScript wikitext-template parser à la
var templates = wikitext.getTemplateByName('Assessments');
$.each(templates, function(i, template) {
   var p = template.params.get('renamed');
   if (p) return false;
   template.params.set('renamed', old_filename);
   template.save();
});

? Otherwise I think it's overdue to write such an “evaluator”. A common task is to alter templates and their parameter but recursive matches are impossible with RegEx(:?p)?. So the first template inside a template or a simple <nowiki> can break the script. Ah, before I forget: The rename-script is MediaWiki:Gadget-AjaxQuickDelete.js. Please post script requests concerning the rename-script there. Thank you. -- RE rillke questions? 14:09, 5 May 2012 (UTC)Reply[reply]

{{Assessments}} marks featuredness and other criteria files are awarded. It relies on {{PAGENAME}} which changes if a file is moved. |renamed= parameter would fix this problem. -- とある白い猫 ちぃ? 22:07, 11 May 2012 (UTC)
Couldn't pagename be subst:-ed when placing the template? A similar example is {{subst:OP}}. -- RE rillke questions? 23:22, 11 May 2012 (UTC)Reply[reply]

Rename script unavailable to filemoves who had their rights revoked but later reinstated[edit]

I have not seen the "rename" button since that hick-up. -- とある白い猫 ちぃ? 08:39, 5 May 2012 (UTC)

Are you seeing the green-area (where decline request and rename are) in the template? Perhaps deleting all files in your cache can help. If it doesn't, modify your common.css to force RL to create a new css for you.
BTW, you can still invoke the script using the move & replace link in the vector-dropdown/ tab in monobook (near to history) -- RE rillke questions? 14:14, 5 May 2012 (UTC)Reply[reply]
It works now. Strange... But glad it is resolved somehow... -- とある白い猫 ちぃ? 22:05, 11 May 2012 (UTC)

Template errors[edit]

The template looks a bit strange when inserted on a page.

  • Two quotation marks appears after the reason.
  • The text {{{instructions}}} (as plain text) can be seen in the bottom of the template.
    /abbedabbWTF? 10:48, 8 May 2012 (UTC)Reply[reply]
Please update {{Rename/sv}}. It is outdated. Take the syntax from {{Rename/en}} or {{Rename/de}}. If you don't understand what to do, don't hesitate to ask. Thank you. -- RE rillke questions? 16:24, 8 May 2012 (UTC)Reply[reply]

Edit request[edit]

{{Edit request}} правилам именования

should be replaced with

правилам именования

Thanks.--Анима 06:39, 12 January 2013 (UTC)Reply[reply]

Thank you but did your read Problem/Question: I found an error in the template and my default language is not English. What can I do?
In other words, you could have done this yourself.
Additionally it would be nice if you could have a look at Template:Rename/en which was changed a lot during the last year and update Template:Rename/ru accordingly. -- Rillke(q?) 13:48, 12 January 2013 (UTC)Reply[reply]

Simplify[edit]

Can we list the numerical reasons on this template page as well from Template:File renaming reasons/en? Just easier to not have to open two windows to find a reason number.--Canoe1967 (talk) 14:51, 18 February 2013 (UTC)Reply[reply]

You can use "Move" feature if you want to see the numbered criterias. (Click the downward arrow on the right of "View history" and the star, then click "Move") --Timothy G. from CA (talk) 19:45, 4 May 2013 (UTC)Reply[reply]

Edit request[edit]

{{Edit protected}} Please change

[[Commons:File_renaming#What_files_should_be_renamed.3F]]

to

[[Commons:File_renaming#Which_files_should_be_renamed.3F]]

because the section name on the page has changed. Note: There are multiple occurrences of this line. Timothy G. from CA (talk) 19:52, 4 May 2013 (UTC)Reply[reply]

The documentation sub page is not protected. -- Rillke(q?) 20:21, 4 May 2013 (UTC)Reply[reply]
Sorry. Timothy G. from CA (talk) 18:25, 7 May 2013 (UTC)Reply[reply]

Edit Count[edit]

{{Edit protected}} Please update the "number of edits" link on this template to point to the https://tools.wmflabs.org/xtools/pcount tool instead of the version on toolserver.--TParis (talk) 21:29, 6 November 2013 (UTC)Reply[reply]

I couldn't find the place needed to be changed even using site search. Can you please find right place or take a shot of place needed to be changed? Thank you −ebraminiotalk 22:00, 6 November 2013 (UTC)Reply[reply]
It appears to be here.--TParis (talk) 22:13, 6 November 2013 (UTC)Reply[reply]
It seems was not protected but I've edited that −ebraminiotalk 15:43, 7 November 2013 (UTC)Reply[reply]

Add option for Special:CentralAuth[edit]

May be a good idea to add the link to Special:CentralAuth to there requester's options just so that filemovers can check to see if that person isn't banned on certain wikis or has a bad 'rap'..--Stemoc (talk) 23:07, 24 April 2014 (UTC)Reply[reply]


the file renaming criterium is not mentioned[edit]

if you enter {{rename}} at a file description page, the following text is shown.

Diese Datei wurde zur Umbenennung vorgeschlagen durch Kersti Nebelsiek (Diskussion · Benutzerbeiträge · Anzahl der Bearbeitungen) .
Bitte hilf, einen neuen Dateinamen vorzuschlagen. Nutze dazu:
  {{rename|new name.jpg|gültige Begründung}}
Diese Datei konnte nicht umbenannt werden, weil:
   *In der Vorlage {{rename}} kein gültiger Dateiname angegeben war oder
   der Zieldatei ein falscher Dateityp zugeordnet wurde oder
   *eine Datei mit dem gewünschten Namen bereits existiert.
Bitte korrigiere
 {{rename|Zieldateiname.ext}}
Ersetze die Vorlage durch {{dupe|Zieldateiname.ext}},
falls die so benannte Datei ein exaktes Duplikat dieser Datei ist.
oder entferne diese Vorlage, falls eine Umbenennung nicht erforderlich ist.

There the file renaming criterium is not mentioned. This should be changed. --Kersti (talk) 13:50, 16 June 2015 (UTC)Reply[reply]

I changed Template:Rename needs target/de accordingly. Kersti (talk) 14:45, 16 June 2015 (UTC)Reply[reply]

Bug report[edit]

Starting from today, if I change the target name in {{Rename}} template (requested by another user), the script does not remove the template after the file move, so I have to remove it manually, which is annoying. Materialscientist (talk) 06:55, 8 December 2015 (UTC)Reply[reply]

This is a duplicate post, whose copy is located on Commons talk:File renaming#Bug report. Please avoid duplicate posting, instead you may send out links to the location where you would like to get reply. -- Rillke(q?) 17:22, 8 December 2015 (UTC)Reply[reply]

Idea: Tag files in separate categories[edit]

@Rillke: Hi! I have an idea. Instead of grouping all files which require renaming in one category – Category:Media requiring renaming, we could create a subcategories for every reason. This has sense for maintenance reasons. For example: Category:Media requiring renaming – Reason #1. The first (or 6th) is usually easier to evaluate, so some Filemovers may want to filter out just these requests, I think. --Rezonansowy (talk) 16:58, 21 December 2015 (UTC)Reply[reply]

Terrific idea. Here we go. -- Rillke(q?) 19:31, 21 December 2015 (UTC)Reply[reply]
Great, Thanks! --Rezonansowy (talk) 22:59, 21 December 2015 (UTC)Reply[reply]

Change userlink template[edit]

I propose to change the template {{User2}} to {{User21}} with CentralAuth. In my experience it is necessary for complex cases. (@Rillke). --sasha (krassotkin) 05:47, 1 March 2016 (UTC)Reply[reply]

Opinions? Anyone? -- Rillke(q?) 08:59, 1 March 2016 (UTC)Reply[reply]
IMHO it is useful to check the global account. --Steinsplitter (talk) 10:39, 1 March 2016 (UTC)Reply[reply]

✓ Done -- Rillke(q?) 17:33, 8 March 2016 (UTC)Reply[reply]

Preview of empty template doesn't list all required parameters[edit]

{{Edit request}} If you add an "empty" copy of this template (i.e. just "{{rename}}") to a page and then preview the page, it says:

You can help by suggesting a new name. To do this use the template like this:
{{rename|new name.jpg|reason for new name}}

I believe this should be replaced with:

You can help by suggesting a new name. To do this use the template like this:
{{rename|new name.jpg|numeric reason|Text reason for rename}}

per the template documentation. DH85868993 (talk) 07:01, 7 April 2017 (UTC)Reply[reply]

@Jeff G. and DH85868993: I don't see what you mean. It is already as you described. On preview the Template:Rename needs target is shown. -- User: Perhelion 09:55, 26 September 2017 (UTC)Reply[reply]
@Perhelion and DH85868993: I will be more specific. Please look at the last example at Template:Rename/doc, the default use case for an empty {{rename}}. It invokes "{{autotranslate|base=rename/i18n|1=File:{{PAGENAME:{{{1}}}}}|2={{rename/Sub|note1=|note2=}}|5=File|7={{REVISIONUSER}}}}", which says on the 2nd and 3rd lines "You can help by suggesting a new name. To do this use the template like this: {{rename|new name.jpg|reason for new name}}". Please replace displayed text "reason for new name" with "numeric reason|text reason" by changing the line "helpUsReason=reason for new name" to "helpUsReason=numeric reason{{!}}text reason" in protected {{Rename/i18n/en}} to conform with the rename template's requirement for a numeric reason as parameter 2 and a text reason as parameter 3, as documented in Template:Rename/doc#Template parameters. I am asking here because of the existing section here and the wider audience here than at nonexistent Template talk:Rename/i18n/en. You could instead relax the requirement for a text reason from "required" to "optional" because I have seen no user of this template complying with it, and the template's code and supporting maintenance categories do not support it as being a requirement.   — Jeff G. ツ 11:39, 26 September 2017 (UTC)Reply[reply]
✓ Done I made the change here, but this needs also an i18n admin for verification. Anyway this seems redundant to the already translated and included Template:Rename needs target. So I guess its not the optimal solution. -- User: Perhelion 13:47, 26 September 2017 (UTC)Reply[reply]
@Perhelion: Thanks. Yes, it is somewhat redundant, but you could remove "for new name" losslessly.   — Jeff G. ツ 23:12, 26 September 2017 (UTC)Reply[reply]

Edit request (no redirect)[edit]

{{Edit request}} Please edit this template so that it uses {{No redirect}} for the target page. This will make it a little more useful if there's a requested move over a redirect. Guanaco (talk) 10:55, 22 July 2017 (UTC)Reply[reply]

✓ Done Good! PS: [4] But an i18n admin need to confirm it. -- User: Perhelion 10:23, 26 September 2017 (UTC)Reply[reply]

Rename requests with invalid extensions[edit]

{{Edit request}} Is it possible the rename template cannot be used if the user requests it be moved to an invalid extension? When this happens, the template is not visible, however, it appears in the Category:Media requiring renaming. This is the case with a dozen files of Maralou Gray, which have been requested to be renamed with better names but with the extension ".ext" (apparently following the sample text in this template's documentation — See example here). I will move them manually to clear the queue (when I click on move & replace, it populates with the name requested, but with the proper extension), but is there a way this can be fixed in the future, so it is not possible to request an unknown/invalid extension that does not match the filetype? Thank you. Wikimandia (talk) 02:00, 22 September 2017 (UTC)Reply[reply]

@Wikimandia: I can confirm the problem, good luck with a solution.   — Jeff G. ツ 03:05, 23 September 2017 (UTC)Reply[reply]
✓ Done Good! -- User: Perhelion 11:05, 26 September 2017 (UTC)Reply[reply]
@Perhelion: Thank you!!!!! I just saw now you fixed it. Thanks so much. Wikimandia (talk) 15:40, 14 October 2017 (UTC)Reply[reply]

Feature request: previously declined moves[edit]

Is there a way filemovers, when responding to file move requests, could be alerted if another filemover had declined a previous request for the same file? I recently became a filemover and am still learning, but one thing I noticed is that it's common for people to repeatedly try to rename files after they have been declined. Sometimes the second request is a good one (for example, if the file rename did not meet the guidelines, and so they chose a better name) and it is OK to approve the second request, but the problem occurs when the file should not be renamed and it isn't obvious why. A lot of the file renames seem like sensible requests that meet the guidelines, for example, a file might seem to have a meaningless name, but it actually meets strict naming guideline for a particular set of files (such as icons, maps, etc.), not to mention the file names in various languages that are unfamiliar to the filemover.

There was a discussion about this at Commons talk:File renaming#Mperezreviriego and other filemovers liked this idea, and it was suggested to bring it to Village Pump Proposals. But it's not really a new feature so I'm not sure where to request it. @Perhelion: , would you know the best way to get this added? Thanks so much. Wikimandia (talk) 18:52, 14 October 2017 (UTC)Reply[reply]

Hey Wikimandia, yes I could do this. I also noticed this user and declined several requests. Technical ideas are very welcome. -- User: Perhelion 19:26, 14 October 2017 (UTC)Reply[reply]
PS: At simplest I would instruct the script to read Commons:File renaming/Recently declined rename requests (maintained by Steinsplitter). -- User: Perhelion 19:37, 14 October 2017 (UTC)Reply[reply]
Yay thank you so much!! A problem is the "recently declined rename" gets updated frequently - it is already helpful since it shows up on the front page of the file under "File usage on Commons" but it drops off after a couple days. So if a file has ever been declined, it would be helpful if it was displayed, along with the reason why (if given). Thank you so much, especially for responding so fast. Wikimandia (talk) 19:44, 14 October 2017 (UTC)Reply[reply]
✓ Done but only as the file is shown on the mentioned log-page. Maybe Steinsplitter can expand the log time. That should be sufficient for the first !? A check of every file-history would be an huge API traffic increase, what would be not in relation. Greetings and thanks too for your gratefulness. ;-) -- User: Perhelion 20:54, 14 October 2017 (UTC)Reply[reply]
PS: But the feature could be a bit more useful if the requesting user who was possible recently declined also stays on the log-page. -- User: Perhelion 21:05, 14 October 2017 (UTC)Reply[reply]
If renamers were diligent about writing why they declined to rename in their edit summaries, and subsequent renamers were diligent about reading file histories, more of these could be caught. I do both, but it seems I am in the minority. Failing that, we could put reasons in the file talk pages, and the template could display a warning if the file talk page exists.   — Jeff G. ツ 02:26, 15 October 2017 (UTC)Reply[reply]
I agree we should be more diligent in leaving an explanation, regardless of the reminder. I try to always leave an explanation but will try to do it 100% of the time. The generic "does not meet requirements" isn't always obvious. Wikimandia (talk) 03:46, 15 October 2017 (UTC)Reply[reply]

new "be honest" message[edit]

Anyone know what this issue here is about? @Perhelion: , did you add any extra messages to this template? Wikimandia (talk) 19:54, 16 October 2017 (UTC)Reply[reply]

✓ Done It was indeed a small script error by me! :-o Thanks -- User: Perhelion 20:18, 16 October 2017 (UTC)Reply[reply]
Hah. A "Be honest!" alert should be added every time someone tries to change anything LOL! Wikimandia (talk) 19:33, 17 October 2017 (UTC)Reply[reply]
Actually, it's quite rude. I hit the wrong button and got that nonsense today. It should be removed and WP:ASSUMEGOODFAITH should be adhered to.--Kintetsubuffalo (talk) 10:24, 14 August 2018 (UTC)Reply[reply]

Multiple criteria[edit]

Would it be possible to change the script so multiple criteria can be selected? Maybe a checkbox instead of a drop down? Sometimes there are two or three problems wrong with a file name. (There's a typo in the current name, plus it's ambiguous, plus it needs to be in sync with etc). If you manually put in the script and put in multiple numbers, either like "1, 4" or "2 & 3" it just displays one of the criteria. I'm requesting this because I think there are some very strict filemovers who are actually declining requests because they think the new name doesn't match the criteria cited. Thanks!!

Wikimandia (talk) 20:08, 17 October 2017 (UTC)Reply[reply]

Broken[edit]

@Jarekt: I think your most recent edit broke this template. See the results of a rename request here. The user links output nonsense. --Majora (talk) 04:12, 12 June 2018 (UTC)Reply[reply]

Majora, File:1 XPD7Jb624pg5GvF028k4dA.jpg was renamed and no longer shows the issue, and I could not find any issues with other files waiting for rename, so until another case is found, I can not diagnose the issue. --Jarekt (talk) 11:41, 12 June 2018 (UTC)Reply[reply]
Ah. Didn't know you couldn't even go back through the history to see what it looked like. My mistake. I'll keep an eye out for the error again but I rarely request the renaming of files and, like you said, a quick glance at the "rename pending" category doesn't show what I saw. Ah well. No biggie. Thank you for your time. --Majora (talk) 20:47, 12 June 2018 (UTC)Reply[reply]

Broken display[edit]

Template still works for moving files, but the display is broken. See below @Jarekt.

D. Benjamin Miller (talk) 21:28, 18 July 2018 (UTC)Reply[reply]

@D. Benjamin Miller: @WPPilot: didn't include a rationale.   — Jeff G. ツ please ping or talk to me 23:16, 18 July 2018 (UTC)Reply[reply]
Thanks for figuring out exactly the cause of the bug, @Jeff G.; I moved the file anyway (uploader request)... in any case, I would consider this behaviour a minor glitch — the template should react more gracefully. D. Benjamin Miller (talk) 00:26, 19 July 2018 (UTC)Reply[reply]
I know this template often has some issues. I am not familiar with it and my edit last month should not have changed any behavior of the template other than preventing "template loop" errors. --Jarekt (talk) 03:27, 19 July 2018 (UTC)Reply[reply]
@Perhelion: could you shed any light here and at the previous section? They may be the same issue.   — Jeff G. ツ please ping or talk to me 09:53, 19 July 2018 (UTC)Reply[reply]
I mean this a server hiccup, the syntax seems ok: Special:Diff/302462302/311696182. If this is not reproducible I can't nothing do here. PS: Maybe it is a bad performance of Module:File, I'll try to improve this. -- User: Perhelion 10:36, 19 July 2018 (UTC)Reply[reply]
@Perhelion: Thank you. Special:Diff/311772129 seems fine.   — Jeff G. ツ please ping or talk to me 11:15, 19 July 2018 (UTC)Reply[reply]
I think I'll write a new file module especially for the template:Rename, based on Module:FileMedia. Maybe we can also optimize the use of Module:String. -- User: Perhelion 12:03, 19 July 2018 (UTC)Reply[reply]
PS: I improved/replaced also the expensive Template:User21 and Template:Str rightc with Modules. For example The template has now:
- Preprocessor visited node count	5,537/1,000,000
- Post-expand include size	120,870/2,097,152 bytes
- Template argument size	22,270/2,097,152 bytes
- Highest expansion depth	31/40
+ Preprocessor visited node count	2,636/1,000,000
+ Post-expand include size	107,300/2,097,152 bytes
+ Template argument size	14,388/2,097,152 bytes
+ Highest expansion depth	21/40

-- User: Perhelion 13:19, 4 August 2018 (UTC)Reply[reply]

Unnamed parameter 3[edit]

Since a few days (weeks) ago, unnamed parameter 3 appears if the rename requester does not write any reason. I think it should be empty, just like before. I have drawn a red circle where the unnamed parameter appears. 4nn1l2 (talk) 08:55, 28 July 2018 (UTC)Reply[reply]

@4nn1l2: I agree that's not pretty, but parameter 3 has been required for years.   — Jeff G. ツ please ping or talk to me 02:09, 29 July 2018 (UTC)Reply[reply]
Fixed -- User: Perhelion 05:42, 4 August 2018 (UTC)Reply[reply]

Translation[edit]

{{Editprotected}} Since different language use different sentence structure, it is difficult to translate a preposition alone (eg: [5]) in a meaningful way, in many languages. Please rearrange this as a part of a sentence. (@Perhelion).--Praveen:talk 02:30, 6 August 2018 (UTC)Reply[reply]

@Praveenp: Which preposition are you referring to? Your link did not reveal it to me.   — Jeff G. ツ please ping or talk to me 03:22, 6 August 2018 (UTC)Reply[reply]
The preposition is only used for this "sentence": (Quick adding) to User:CommonsDelinker/commands
So theoretically it could be added to "Quick adding". Helps that? PS: It is indeed very unusual to translate single words. So a resolution seems very reasonable in any case. -- User: Perhelion 06:41, 6 August 2018 (UTC)Reply[reply]
@Praveenp and Perhelion: How about (I am quickly adding) your request to User:CommonsDelinker/commands?   — Jeff G. ツ please ping or talk to me 07:07, 6 August 2018 (UTC)Reply[reply]
@Jeff G.: that will be translatable--Praveen:talk 03:15, 7 August 2018 (UTC)Reply[reply]
That changed the meaning a bit, the full original sentence is:

Please add {{universal replace|Rename|File:ExampleNonExisting.jpg|reason=[[COM:FR#FR1|Criterion 1]] (original uploader’s request) · <Reason specified here> }} (Quick adding) to User talk:CommonsDelinker/commands and save afterwards.

My suggestion is:

[Quick adding] or manual add the following under User talk:CommonsDelinker/commands and save afterwards: {{universal replace|Rename|File:ExampleNonExisting.jpg|reason=[[COM:FR#FR1|Criterion 1]] (original uploader’s request) · <Reason specified here> }}

That would change only one block (and removing the "to" block). -- User: Perhelion 07:21, 7 August 2018 (UTC)Reply[reply]
✓ Done -- User: Perhelion 23:52, 14 August 2018 (UTC)Reply[reply]

.jpeg to .jpg[edit]

I can't use this template to request renaming from .jpeg to .jpg. It doesn't understand that the two are different. Recently a bug in the Commons Mobile App named my photo uploads as .jpeg instead of .jpg, and I'd like to fix that. Example: example. -PeterFisk (talk) 14:18, 22 August 2018 (UTC)Reply[reply]

  • The whole thing with extensions is wrong here. I hate when my files are named .jpg, it is outdated and should have been stopped a long time ago, but if I request to rename a file it refuses to keep the correct extension, and actually forcibly changes it to .jpg regardless of how many times I edit the template. As it stands today, the only way to rename own files correctly is to upload the same file with a correct name and then request a deletion on the original incorrect upload. ℺ Gone Postal ( ) 04:45, 23 January 2020 (UTC)Reply[reply]
    • Except there is no operational difference. It simply stems from a time when Windows required three character extensions. Individual users may have a preference, true, but there is no "right" extension between the two anymore. Huntster (t @ c) 07:40, 23 January 2020 (UTC)Reply[reply]
      • I understand that. And I would never dream of forcing other users to use my own preferences. Unfortunately currently this template appears to be forcing other user's preferences upon myself. ℺ Gone Postal ( ) 08:05, 23 January 2020 (UTC)Reply[reply]

Mistake[edit]

As far as I understand, when the template displays name of nominator for renaming, it takes name of the last editor of the page. But it is not always correct. Sneeuwschaap (talk) 01:26, 25 October 2018 (UTC)Reply[reply]

File extension displayed[edit]

When requesting a rename from "example.jpeg" to "example2.jpg", the yellow box says it will be renamed to "example2.jpeg". But this is not true. - Alexis Jazz ping plz 23:38, 7 December 2018 (UTC)Reply[reply]

safesubst[edit]

@Jeff G.: Unfortunately the examples mentioned at Commons:Village pump/Archive/2019/08#Moving files are no longer visible (because the files have already been renamed), but I don’t think adding safesubst would fix the issue. As far as I know, this code does nothing until it gets directly into the page text (i.e. {{rename}} is used as {{subst:rename}}), that is, until a such substitution {{safesubst:REVISIONUSER}} has exactly the same output under all circumstances as {{REVISIONUSER}}. This is why I reverted your edit; if you can show the opposite, I’m happy to learn something new about wikitext. —Tacsipacsi (talk) 14:13, 3 September 2019 (UTC)Reply[reply]

@Tacsipacsi: Since my change, rename requests in Category:Media requiring renaming, such as File:1911 Trieste-Opicina curva Facciono.jpg, that are getting rename requests with RenameLink, are getting the correctly substituted username, so it's working.   — Jeff G. please ping or talk to me 16:52, 3 September 2019 (UTC)Reply[reply]
Pinging @大诺史, who suggested the change.   — Jeff G. please ping or talk to me 17:04, 3 September 2019 (UTC)Reply[reply]
Tacsipacsi should be right, the safesubst does nothing until {{subst:rename}} is used. The right username is inserted from the script (tool link). -- User: Perhelion 18:52, 3 September 2019 (UTC)Reply[reply]
@Tacsipacsi, Perhelion, and Jeff G.: After the change, only the username of User1 (Special:Diff/363161590) (requester) will remain in the box. Before that, if User2 edits the file page, the template somehow changes the reqestor to User2 (Special:Diff/363166921). (Talk/留言/토론/Discussion) 04:51, 4 September 2019 (UTC)Reply[reply]
After typing the above comment, I proceeded to "cleanup" File:Epipremnum giganteum & Epipremnum aureum P 20150407 121750.jpg. A rename was suggested by Hai ren (Special:Diff/364341344), but after my edit (Special:Diff/364517682), I am somehow the requestor. (Talk/留言/토론/Discussion) 04:53, 4 September 2019 (UTC)Reply[reply]
That’s what I’m talking about. safesubst has no effect at all unless the template it’s used in is substituted itself. The only solution would be to have a bot that adds |user= automatically if the nominator omits it. —Tacsipacsi (talk) 12:23, 4 September 2019 (UTC)Reply[reply]
@Tacsipacsi: Hai ren's edit didn't use RenameLink, but was no worse for my change, which helps when RenameLink is used.   — Jeff G. please ping or talk to me 13:39, 4 September 2019 (UTC)Reply[reply]
@Jeff G.: Yes, your change doesn’t worsen anything. But it doesn’t improve, either. RenameLink automatically adds user name (MediaWiki:RenameRequest.js, 430th line), it doesn’t depend on the template. —Tacsipacsi (talk) 14:32, 4 September 2019 (UTC)Reply[reply]

Edit request[edit]

{{edit request|temppro=yes}} Hello!

Can someone add {{#ifexist:File:{{PAGENAME:{{{1}}}}}|[[Category:Media requiring renaming - target already exists]]}} or something like that? I will create the category when the edit has been done.Jonteemil (talk) 14:19, 14 August 2020 (UTC)Reply[reply]

@Jonteemil: ✓ Done in Special:Diff/444122677. --AntiCompositeNumber (talk) 19:57, 27 August 2020 (UTC)Reply[reply]

Should check whether the target page is a redirect[edit]

{{Edit request}}

{{Rename}} should use {{#invoke:Redirect|isRedirect}} to check whether the target page is a redirect if it already exists. This is because redirects may be overwritten without requiring admin rights during a page move if they have a simple history[1]. — ExE Boss (talk) 20:45, 14 July 2021 (UTC)Reply[reply]

Please be specific on what you want changed. 1989 (talk) 20:01, 1 August 2021 (UTC)Reply[reply]
@1989: The following warning should be altered so that if the target page is a redirect, then it mentions that filemovers may be able to perform the move[1]:
Warning The specified target file exists. File movers will be unable to rename this file. An admin is required or choose another name. Use {{duplicate|file-name}} if the file is exactly the same.

— ExE Boss (talk) 13:00, 3 August 2021 (UTC)Reply[reply]

@ExE Boss: The changes you're asking for happens at Template:Rename/layout. Provide an X to Y of what you want changed. Telling only what you want done doesn't help. 1989 (talk) 14:14, 3 August 2021 (UTC)Reply[reply]

References

  1. a b WM:MOR

Gender[edit]

{{Edit request}} I would like to implement the {{GENDER}} magic word in Translations:Template:Rename/i18n/2/sl but it currently does not work as intended. Could someone please have a look and fix the template accordingly? --TadejM (t/p) 11:56, 22 June 2023 (UTC)Reply[reply]

@TadejM: Unfortunately translation variables are of no use for this case, both $nameB and $nameE contain wikitext fragments, which cannot be used for anything else than what was intended. You can use the template parameter {{{7|}}} directly. (The parameter may be empty, but that just makes GENDER to select the third (unknown gender) variant, which seems to be appropriate.) —Tacsipacsi (talk) 07:12, 26 June 2023 (UTC)Reply[reply]

Weird thing with "tiff"[edit]

Seems one can't use this to propose the change from ".tif" to ".tiff".

I tried this on File:Swisstopo Dufourkarte BLATT III. LIESTAL SCHAFFHAUSEN LT TK 003 1849.tif which happens to the be only map of the series not using "tiff". Enhancing999 (talk) 10:10, 17 September 2023 (UTC)Reply[reply]

Indeed, it uses Module:FilePage to preserve the extension – which make sense when people try to get a .png renamed to .svg, but also has the side effect that .tif remains .tif and .tiff remains .tiff, .jpeg remains .jpeg and .jpg remains .jpg, and so on. Probably there should be a list of equivalent extensions and it should honor the request to switch between these extensions, but I’m not sure how to do it best (e.g. whether this list can be queried from the MediaWiki software – the MediaWiki software certainly has to know which extensions correspond to the same MIME types, the question is whether it tells us them). —Tacsipacsi (talk) 07:23, 18 September 2023 (UTC)Reply[reply]