Commons talk:File renaming
Add topic| This talk page is automatically archived by ArchiveBot. Any sections older than 30 days are automatically archived. Sections without timestamps are not archived. |
|
|
Character handling issues
[edit]In this incident, the uploader agreed to a move, so it's just an example.
File:Amber Mountain chameleon (Calumma amber) male Montagne d’Ambre 2.jpg accidentally caused problems on en:wp — it's become an FP there, so it needed to have a local description with an FP template, but because it has a curly quotation mark, the local page was blacklisted. Would moving the file to File:Amber Mountain chameleon (Calumma amber) male Montagne d'Ambre 2.jpg, with a straight quote, be a good example of "character handling problems" in criterion #6? All the examples in that section are extension-related. Nyttend (talk) 21:16, 1 October 2025 (UTC)
- I don’t think so. A character handling problem would be if Montagne d’Ambre would have ended up being Montagne dþÿ �Ambre (the curly apostrophe encoded as UTF-16 but interpreted as ISO 8859-1).
- I think the proper procedure here would have been to ask at w:WP:AN that some admin creates the local description page (they are allowed to bypass the restriction, and once the page is created, the restriction doesn’t apply to anyone). —Tacsipacsi (talk) 12:32, 6 November 2025 (UTC)
..
[edit]What is to be done with a request, which only concern ist to remove one of two dots? example: "..png". In my understanding, this should be declined because we have better things to do (a whole lot). --~2026-22974-7 (talk) 18:02, 11 January 2026 (UTC)
Adding prefix
[edit]I'm using the MassRename gadget.
If some of the files in a category have names beginning "Foo bar - " and I want to add that prefix to all the other files in the category, what regex should I use? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:42, 24 January 2026 (UTC)
- I don’t know the gadget, but thinking generally about regexes, a way to find files without a given prefix is using a negative lookahead:
/^(?!Foo bar - )/should match anything that doesn’t start withFoo bar -. —Tacsipacsi (talk) 22:34, 24 January 2026 (UTC)- Exactly what I was going to say.
- Also: you may already know this, but https://regex101.com/ is a very good regex tester that will let you confirm in advance what a given regex will and won't match. - Jmabel ! talk 23:12, 24 January 2026 (UTC)