Commons:Byta namn på en fil
Shortcuts: COM:FR • COM:MOVE • COM:RENAME
- COM:MOVE directs here. For information about moving files from other projects, see Commons:Moving files to Commons.
The file rename function allows renaming (or "moving") of files, which works basically the same way as "normal" page moves. Any user can request a file rename, but only authorised users can actually rename files for now.
Which files should be renamed?
Huruvida ett filnamn anses vara lämpligt eller inte beror oftast på hur bekant individen är med ämnet. Det händer att ämnen är kända under olika namn för olika personer eller att de tror att entiteter huvudsakligen är kända under termen de är vana vid, och missar kulturella skillnader, även inom länder.
Inte av ringa betydelse är syftet som filnamnet uppfattas ha; bidragsgivare som kategoriserar filer har olika krav än de som skapar, bearbetar och laddar upp dem. Uppladdare har ofta mallar för sina filnamn; att flytta filer kan förstöra dem. Om det går, bör språk och mall behållas, samt kamera eller katalognummer.
Commons:Filnamn beskriver hur filer bör namnges. Commons har som övergripande mål att erbjuda stabila filnamn då det kan finnas externa filklienter och filflyttar kräver omfattande mänskliga och digitala resurser. Därför bör man vara noga när man väljer filnamn. Det finns för närvarande sex brett accepterade anledningar att byta namn:
Nr. | Mål | Exempel (gammalt namn) | Exempel (nytt namn) |
---|---|---|---|
1. | På begäran av den som laddat upp filen.[1] | ||
2. | För att ändra från ett meningslöst eller tvetydigt namn till ett namn som beskriver vad bilder avbildar.[2] | File:DSC 1342.jpg (ingen information alls) | File:Pretoria Venningpark DSC 1342.jpg |
File:20110428 OH K1023900 0014.JPG - Flickr - NZ Defence Force.jpg (endast fotograf eller rättighetsinnehavare) | File:Helicopter A109LUH(NZ) by NZ Defence Force.jpg | ||
File:20120519 3349.CR2.png (endast datum) | File:Sebkha-Chott 3349.png | ||
File:Paris 319.jpg (endast fotograferingsplats) | File:Paris 75018 Rue Norvins no 018 Le Consulat z.jpg | ||
File:Smartphone.jpg (generisk kategori) | File:Samsung Galaxy Note series (Original, II, and 3).jpg | ||
File:RAS.jpg (förkortningar eller initialer) | File:Rodrigo Arias Sánchez.jpg | ||
File:Flickr - law keven - Anybody know a Good Dentist^......Happy Furry Friday Everybody...-O))).jpg (ingen relation till filens innehåll) | File:Lion-tailed Macaque, Colchester Zoo, England.jpg | ||
File:Louvre 12.jpg (opassande för specifikt innehåll) | File:Mona Lisa by Leonardo da Vinci.jpg | ||
3. | För att rätta uppenbara fel i filnamn, inklusive felstavade namn, felaktiga datumangivelser och felidentifierade objekt och organismer.[3] | File:Ayres Rock 3.png File:Van Gogh portrait 1787.jpg File:Unknown insect 02.jpg |
File:Ayers Rock 3.png File:Van Gogh portrait 1887.jpg File:Hogna radiata 02.jpg |
4. | To harmonize the names of a set of images so that only one part of all names differs.[4] | File:Bhf-BS-Icon.svg File:Icon HST bs 1.svg File:Dst symbol.svg |
File:BSicon BHF.svg File:BSicon HST.svg File:BSicon DST.svg |
5. | To change a filename that would be a violation of Commons’ policies and guidelines if it appeared elsewhere on the project as text. This includes gratuitous vulgarity, personal attacks/harassment, blatant advertising, and cases where revision deletion would be authorized.[5] | File:Stupid fat idiot.jpg File:Buy now NEW PAINT! 555-6200.png |
File:<Name of the person>.jpg File:2007 pink Honda Accord.png |
6. | Non-controversial maintenance and bug fixes, including fixing double extensions, invalid or incorrect extensions, character handling problems, and other similar technical issues.[6] | File:Map of Asia.svg.png File:Computer mouse.jpe File:Mooncake.jpg, File:Mooncake.JPG |
File:Map of Asia.png File:Computer mouse.jpg File:Mooncake.jpg, File:Square Mooncake.jpg |
- Tilläggande information
- Please consider creating file redirects instead, where applicable and possible. They are cheap, usually do not break anything and are easily edited or deleted, if required.
- ↑ Så länge det inte finns en bra anledning att inte göra det, bör uppladdarens begäran följas. Detta är däremot av artighet, inte en absolut rätt. Om en filflyttare känner att ett föreslaget filnamn är störande eller opassande, kan de föreslå ett annat namn eller neka begäran.
- ↑ Inklusive:
- Ingen information över huvud taget
Helt bestående av slumpmässiga tecken, och ord som "Flicke", "original" och "klippt", vilka inte beskriver bildens innehåll, men kan ange dess uppladdningshistorik - Den enda informationen är fotografen eller upphovsrättsinnehavaren
Den enda meningsfulla informationen är namnet på fotografen eller upphovsrättsinnehavaren - Den enda informationen är datumet
Den enda meningsfulla informationen är datumet som fotografiet togs - Den enda informationen är en diffus plats
Den enda meningsfulla informationen är en diffus plats som en stad, län eller land. I de fall där platsen är så stor att en vanlig person inte kan räkna ut var bilden har tagits eller vad bilden förställer, utan assistans från någon som känner till området. - Generisk kategori istället för ett specifikt ämne
Den enda meningsfulla informationen är ett ord, som "telefon" eller "skärmdump", vilka på ett ungefär beskriver bildens motiv men inte ger någon information som skulle kunna hjälpa en identifiera det specifika objektet som avbildas. Detta gäller inte bara objekt utan också för breda titlar eller grupperingar som "drottning" eller "fågel". - Förkortningar och initialer
Den enda meningsfulla informationen är en förkortning eller en persons initialer. Detta skiljer sig från "ingen information över huvud taget" i det att förkortningen eller initialerna rör filens motiv, även om det tar en stund att räkna ut hur. - Namn är inte meningslösa, men de beskriver inte filen
Contains a coherent description or message that do not describe the subject of the file. Does not apply in cases where the name of the file is the title given to a work of art by the artist that created it, even if the name has nothing to do with what is depicted (for example, many works of Dadaism). - Images where the information in the filename, while normally acceptable, is inappropriate for the specific content.
Not including: Specific locations, such as a park, an individual building, or an event.
- Ingen information över huvud taget
- ↑
If an object or organism was incorrectly identified in the filename (such as calling a Sylvilagus floridanus by the name “File:Sylvilagus audubonii.jpg”), this criterion covers renaming the image. If the filename includes words like “unidentified” or “unknown” when describing an object or organism, and that object or organism has been identified, this criterion also covers the change. This criterion does not, however, cover moving a file from its common usage name to its scientific or technical name.
- ↑
Just because images share a category does not mean that they are part of a set. There are two scenarios that this criterion is designed for. First, certain complex templates (such as those that use BSicons or that display football kits) assume that the images used in them will follow a specific naming convention. Wikisource also uses a specific naming convention for the source files they transcribe. Second, files that form parts of a whole (such as scans from the same book or large images that are divided into smaller portions due to Commons’ upload size restriction) should follow the same naming convention so that they appear together, in order, in categories and lists.
- ↑
Note that Commons’ neutral point of view differs significantly from that of English Wikipedia. A file like “File:Taiwanese Tiaoyutai islands map.png” would be acceptable on Commons, even though it is not neutrally titled (see here). This does not mean that all non-neutrally worded titles are acceptable, however. An image of a person with the name “File:1BIGGest_nOSE_everS33n.JPG” would not enjoy the same protection.
- ↑
This is not a catch-all for anything that doesn't fit one of the above. This is for specific technical problems, generally which have a Phabricator task and have been the subject of community discussion.
- Se →diskussionen som ledde till urvalet av dessa kriterier.
Which files should not be renamed?
As a matter of principle it's best to leave all files with generally valid names at their locations, even if slightly better names may exist. So for example:
# | Criteria to decline | Examples (old name) | Examples (new name) |
---|---|---|---|
1. | Files should NOT be renamed only because the new name looks a bit better. | File:TowerBridge'09.jpg | File:Tower_Bridge_2009.jpg |
File:Logo_correct.jpg | File:Logo.jpg | ||
2. | Files should NOT be renamed only to translate the filename to another language and/or because the filename is not correctly capitalized. Remember, Commons is a multilingual project, so there's no reason to favor English over other languages. | File:Rathaus_bremen.jpg | File:Bremen_town_hall.jpg |
3. | If a filename in a local project conflicts with a filename at Commons, the file in the local project should be renamed. Renaming it at Commons would mean changing it in a lot of projects instead of just one. | ||
4. | Files with copyright issues should NOT be renamed until copyright issues are resolved. There is no reason to rename a file if it is going to be deleted on copyright grounds. |
Additional naming conventions and exceptions from the above list might be discussed for specific projects. For example, moving PDF and DjVu files transcluded at the Wikisources is problematic for those wikis and should be avoided unless the file mover understands the consequences.
A user repeatedly renaming files under invalid reasons can be stripped of the filemover privilege. Warning: certain cases of wheel-warring—such as reversal of a preceding renaming which had a valid reason—may result in removal of the filemover privilege even for one infraction.
How to rename a file
Any user can request a file rename, but only authorised users can actually rename files for now.
To request a file rename while logged in, select "More → Move" near the top right of the file page, then fill in the provided form (this functionality is provided by the default gadget RenameLink). Users who do not have an account or are unwilling to run JavaScript can request a file rename by adding the template
- {{Rename|required newname.ext|required rationale number|reason=required text reason}}
to the file description. Either way, the file will be added to Category:Media requiring renaming and an authorised user will perform the move if it conforms to the guidelines described above. There could be a delay of a few hours to several days depending on the type and language of the request.
Responding editors should follow the instructions on the template. In most cases, a file redirect should be left on the original page, except if it is a misleading or promotional name.
Authorised users are administrators, file movers and Wikimedia stewards. (Requests to become a filemover are listed at Commons:Requests for rights#Filemover.) If you belong to any of those groups, and therefore have the movefile
right, just use the "Move & Replace" tab as you would normally do to a regular page.
Mass rename
A user script that can rename many files: User:Legoktm/massrename.js.
File name swaps
To perform file name swaps, you need the suppressredirect
right. For example, somebody uploaded two files: "Obverse Of Token.jpg" and "Reverse Of Token.jpg", but the "obverse" image shows in fact the reverse side, and the reverse shows the obverse side. In this case, you'd have to:
- Move "Obverse Of Token.jpg" to "Temporary name Of Token.jpg" without leaving a redirect.
- Move "Reverse Of Token.jpg" to "Obverse Of Token.jpg" without leaving a redirect.
- Move "Temporary name Of Token.jpg" to "Reverse Of Token.jpg" without leaving a redirect.
Leaving redirects
When you move (rename) a file by using the move tab, by default the old title will automatically become a redirect page to the new title. Additionally urls to thumbnails of the old file name will also redirect (however, direct links to the full size version of the file will not redirect). Redirects to the moved file are automatically updated when using Move & Replace to avoid double redirects.[1] If you do not use Move & Replace, you'll have to update all redirects to the file manually.
All file movers have the suppressredirect
user right.[2] This allows file movers to not leave behind a redirect when moving files and instead automatically have the original file name deleted. Policy never requires you to suppress the redirect, suppression of redirects is entirely optional.
Suppression of redirects is only allowed in the following cases:
- To move recently uploaded files with an obvious error in the file name where that error would not be a reasonable redirect. For example: moving "Sheep in a tree.jpg" to "Squirrel in a tree.jpg" when the image does in fact depict a squirrel.
- To perform file name swaps.
- When the original file name contains vandalism. (Renaming criterion #5)
Please note, this ability should be used only in certain circumstances and only if you are absolutely sure that it is not going to break the display of the file on any project. Redirects should never be suppressed if the file is in use on any project. When in doubt, leave a redirect.
If you forget to suppress the redirect in case of file name vandalism or you are not fully certain if the original file name is actually vandalism, leave a redirect and tag the redirect for speedy deletion per G2.
The malicious or reckless breaking of file links via the suppressredirect
user right is considered an abuse of the file mover right and is grounds for immediate revocation of that right.
How to suppress a redirect
If you are using the move and replace script there will be a checkbox that says "Leave a redirect behind". This is automatically checked and cannot be turned off if the file is in use. If the file is not in use, unchecking the box will suppress the redirect and one will not be created upon moving the file. The "Leave a redirect behind" checkbox is also available on the general special page, Special:MovePage, which can be found by searching for Special:MovePage/PAGENAME in the search bar.
To easily bypass the move and replace script on file pages and use the special page instead, a new tab must be opened through the move and replace button. Depending on your mouse settings you may be able to do this by "middle clicking" (clicking the mouse wheel) on the move and replace button. For others you can right click on the move and replace button and open in a new tab. Please note, the special page will not attempt to replace any usage of the file on any pages it is on.
Is there a log of file renames?
All file renamings are recorded in the Move log which is a log for all moves in all namespaces. There's no namespace filter for "files only" available yet.
Current file movers
- List of all file movers (currently 1 633).
- Administrators have access to the movefile tool as well (currently 185).
- Stewards can rename files on all Wikimedia projects. For an overview see list of Stewards on Meta.
Se även
- Category:Media requiring renaming (by rationale) — category for files to be renamed.
- Rights of the filemover group
- Commons:Filemover statistics
- Commons:Rename a category
- Commons:Rename a template
- Help:File redirect
- Massrename tool
- MediaWiki:Filename-prefix-blacklist — filenames that the MediaWiki software itself prevents from being uploaded.
- Commons:File renaming/Global replace
- Recently declined rename requests