Jump to content

Wikipedia:File names: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
→‎What files should be renamed?: Change to more correct word
m Reverted edits by ErRehan (talk) (AV)
 
(48 intermediate revisions by 42 users not shown)
Line 6: Line 6:
To avoid accidental overwriting of images or other media, very generic filenames should not be used when uploading. For example, a picture of an [[album cover]] should not be given the name "[[:File:Cover.jpg]]", as sooner or later someone else will try to do the same thing and overwrite the old image. The new image will then appear wherever the old one was used—in this case, an album article would then show the wrong album cover.
To avoid accidental overwriting of images or other media, very generic filenames should not be used when uploading. For example, a picture of an [[album cover]] should not be given the name "[[:File:Cover.jpg]]", as sooner or later someone else will try to do the same thing and overwrite the old image. The new image will then appear wherever the old one was used—in this case, an album article would then show the wrong album cover.


==Examples==
==Good image names==
'''Examples of good file names:'''
===Good file names===
<!-- feel free to improve this list -->
<!-- feel free to improve this list -->
{{plainlist|indent=1|1=
: [[File:Yes check.svg|15px]] "[[:File:City of London skyline from London City Hall - Oct 2008.jpg|City of London skyline from London City Hall - Oct 2008.jpg]]"
: [[File:Yes check.svg|15px]] "[[:File:KDE Kicker config screenshot.png|KDE Kicker config screenshot.png]]"
*[[File:Yes check.svg|15px|link=|alt=]] "[[:File:City of London skyline from London City Hall - Oct 2008.jpg|City of London skyline from London City Hall - Oct 2008.jpg]]"
: [[File:Yes check.svg|15px]] "[[:File:1863 Meeting of Settlers and Maoris at Hawke's Bay, New Zealand.jpg|1863 Meeting of Settlers and Maoris at Hawke's Bay, New Zealand.jpg]]"
*[[File:Yes check.svg|15px|link=|alt=]] "[[:File:KDE Kicker config screenshot.png|KDE Kicker config screenshot.png]]"
: [[File:Yes check.svg|15px]] "[[:File:Polyhedron with no vertex visible from center.png|Polyhedron with no vertex visible from center.png]]"
*[[File:Yes check.svg|15px|link=|alt=]] "[[:File:1863 Meeting of Settlers and Maoris at Hawke's Bay, New Zealand.jpg|1863 Meeting of Settlers and Maoris at Hawke's Bay, New Zealand.jpg]]"
*[[File:Yes check.svg|15px|link=|alt=]] "[[:File:Polyhedron with no vertex visible from center.png|Polyhedron with no vertex visible from center.png]]"
}}


'''Examples of bad file names:'''
===Bad file names===

: [[File:X mark.svg|15px]] "[[:File:Image01.png|Image01.png]]"
{{plainlist|indent=1|1=
: [[File:X mark.svg|15px]] "[[:File:Joe.jpg|Joe.jpg]]"
: [[File:X mark.svg|15px]] "[[:File:DSC00001.JPG|DSC00001.JPG]]"
*[[File:Red x.svg|15px|link=|alt=]] "Image01.png"
: [[File:X mark.svg|15px]] "[[:File:30996951316264l.jpg|30996951316264l.jpg]]"
*[[File:Red x.svg|15px|link=|alt=]] "Joe.jpg"
*[[File:Red x.svg|15px|link=|alt=]] "DSC00001.JPG"
*[[File:Red x.svg|15px|link=|alt=]] "30996951316264l.jpg"
}}


==Disallowed image names==
==Disallowed image names==
Line 24: Line 29:


=== Technical restrictions ===
=== Technical restrictions ===
{{main|Wikipedia:Naming conventions (technical restrictions)}}
For technical reasons, file names cannot contain any of the following characters, as these would conflict with wiki syntax: '''#&nbsp;<&nbsp;>&nbsp;[&nbsp;]&nbsp;|&nbsp;:&nbsp;{&nbsp;}&nbsp;/&nbsp;'''. For the same reason they also cannot contain sequences of tilde characters ('''<nowiki>~~~</nowiki>''').
For technical reasons, file names cannot contain any of the following characters, as these would conflict with wiki syntax: '''#&nbsp;<&nbsp;>&nbsp;[&nbsp;]&nbsp;|&nbsp;:&nbsp;{&nbsp;}&nbsp;/&nbsp;'''. For the same reason they also cannot contain sequences of tilde characters ('''<nowiki>~~~</nowiki>''').


Line 32: Line 38:


===Generic file names===
===Generic file names===
[[File:Image.png|thumb|Placeholder image]]
[[File:Image.png|thumb|upright=0.5|Placeholder image]]
Some file names are [[Wikipedia:Protection policy|protected]] to prevent an image being uploaded with that name because they are too generic. For example, [[:File:Image.jpg]], [[:File:Image.png]], [[:File:Image.gif]] and [[:File:Image.svg]].
Some file names are [[Wikipedia:Protection policy|protected]] to prevent an image being uploaded with that name because they are too generic. For example, [[:File:Image.jpg]], [[:File:Image.png]], [[:File:Image.gif]] and [[:File:Image.svg]].

The template {{tl|protected generic image name}} was previously used to indicate this issue on the files involved.


== What files should be renamed? ==
== What files should be renamed? ==
Line 52: Line 56:
|-
|-
! scope = row | {{visible anchor|2}}
! scope = row | {{visible anchor|2}}
| Change from completely '''meaningless''' names into suitable names, according to what the image displays || ''File:22785u9ob807b3c4f4.jpg''<br />''File:DSC_1342.jpg'' || ''File:Tower_Bridge_2009.jpg''<br />''File:Pretoria_Venningpark.jpg'' || [[#2|WP:FNC#2]]
| Change from completely '''meaningless''' names into suitable names, according to what the image displays || {{ubl | ''File:22785u9ob807b3c4f4.jpg'' | ''File:DSC_1342.jpg'' }} || {{ubl | ''File:Tower_Bridge_2009.jpg'' | ''File:Pretoria_Venningpark.jpg'' }}|| [[#2|WP:FNC#2]]
|-
|-
! scope = row | {{visible anchor|3}}
! scope = row | {{visible anchor|3}}
| Correct '''misleading''' names into accurate ones || ''File:!My_cuTe!!_MOUSSE.JPG''<br />''File:1BIGGest_nOSE_everS33n.JPG'' || ''File:Dutch_pet_rabbit.jpg''<br />''File:John_Doe_at_concert.jpg'' || [[#3|WP:FNC#3]]
| Correct '''misleading''' names into accurate ones || {{ubl | ''File:!My_cuTe!!_MOUSSE.JPG'' | ''File:1BIGGest_nOSE_everS33n.JPG'' }} || {{ubl | ''File:Dutch_pet_rabbit.jpg'' | ''File:John_Doe_at_concert.jpg'' }} || [[#3|WP:FNC#3]]
|-
|-
! scope = row | {{visible anchor|4}}
! scope = row | {{visible anchor|4}}
| Change '''generic bio-names''' into binomial scientific names || ''File:Unknown_insect_02.jpg''<br />''File:Unidentified_flowers_HFJ.jpg''<br \>''File:Bird??.jpg'' || ''File:Hogna_radiata_02.jpg''<br />''File:Echinops_setifer_Japan.jpg''<br \>''File:Copsychus_saularis.jpg'' || [[#4|WP:FNC#4]]
| Change '''generic bio-names''' into binomial scientific names || {{ubl | ''File:Unknown_insect_02.jpg'' | ''File:Unidentified_flowers_HFJ.jpg'' | ''File:Bird??.jpg'' }} || {{ubl | ''File:Hogna_radiata_02.jpg'' | ''File:Echinops_setifer_Japan.jpg'' | ''File:Copsychus_saularis.jpg'' }} || [[#4|WP:FNC#4]]
|-
|-
! scope = row | {{visible anchor|5}}
! scope = row | {{visible anchor|5}}
| Correct obvious '''errors''' in file names (e.g. wrong [[:en:Noun#Proper nouns and common nouns|proper nouns]] or false historical dates) || ''File:Ay'''re'''s_Rock_3.png''<br />''File:Van_Gogh_portrait_1'''7'''87.jpg'' || ''File:Ayers_Rock_3.png''<br />''File:Van_Gogh_portrait_1887.jpg'' || [[#5|WP:FNC#5]]
| Correct '''errors''' in file names (e.g. wrong [[Noun#Proper nouns and common nouns|proper nouns]] or false historical dates) || {{ubl | ''File:Ay<strong>re</strong>s_Rock_3.png'' | ''File:Van_Gogh_portrait_1<strong>7</strong>87.jpg'' }} || {{ubl | ''File:Ayers_Rock_3.png'' | ''File:Van_Gogh_portrait_1887.jpg'' }} || [[#5|WP:FNC#5]]
|-
|-
! scope = row | {{visible anchor|6}}
! scope = row | {{visible anchor|6}}
| '''Harmonize''' file names of a '''set of images''' (so that only one part of all names differs) '''to ease their usage in templates''' (e.g. diagram symbols, scans of pages of a book, maps) || ''File:Bhf-BS-Icon.svg''<br />''File:Icon_HST_bs_1.svg''<br />''File:Dst_symbol.svg''<br />''etc.'' || ''File:BSicon_'''BHF'''.svg''<br />''File:BSicon_'''HST'''.svg''<br />''File:BSicon_'''DST'''.svg''<br />''etc.'' || [[#6|WP:FNC#6]]
| '''Harmonize''' file names of a '''set of images''' (so that only one part of all names differs) '''to ease their usage in templates''' (e.g. diagram symbols, scans of pages of a book, maps) || {{ubl | ''File:Bhf-BS-Icon.svg'' | ''File:Icon_HST_bs_1.svg'' | ''File:Dst_symbol.svg'' | ''etc.'' }} || {{ubl | ''File:BSicon_<strong>BHF</strong>.svg'' | ''File:BSicon_<strong>HST</strong>.svg'' | ''File:BSicon_<strong>DST</strong>.svg'' | ''etc.'' }} || [[#6|WP:FNC#6]]
|-
|-
! scope = row | {{visible anchor|7}}
! scope = row | {{visible anchor|7}}
| '''Disambiguate''' files with overly similar names. The software allows for multiple different files to have the same name, but with different capitalization (see ninja example) or different expressions of the same filetype extension (see bunny example). However, these are not ideal situations. ||''File:Ninja.jpg''<br />''File:NINJA.jpg''<br />Also<br />''File:Bunny.'''jpg'''''<br />''File:Bunny.'''jpeg'''''<br />''File:Bunny.'''JPEG''''' || ''File:Ninja_1.jpg''<br />''File:Ninja_2.jpg''<br />Also<br />''File:Bunny_1.jpg''<br />''File:Bunny_2.jpg''<br />''File:Bunny_3.jpg'' || [[#7|WP:FNC#7]]
| '''Disambiguate''' files with overly similar names. The software allows for multiple different files to have the same name, but with different capitalization (see ninja example) or different expressions of the same filetype extension (see bunny example). However, these are not ideal situations. || {{ubl | ''File:Ninja.jpg'' | ''File:NINJA.jpg'' }} Also {{ubl | ''File:Bunny.<strong>jpg</strong>'' | ''File:Bunny.<strong>jpeg</strong>'' | ''File:Bunny.<strong>JPEG</strong>'' }} || {{ubl | ''File:Ninja_1.jpg'' | ''File:Ninja_2.jpg'' }} Also {{ubl | ''File:Bunny_1.jpg'' | ''File:Bunny_2.jpeg'' | ''File:Bunny_3.jpeg'' }} || [[#7|WP:FNC#7]]
|-
|-
! scope = row | {{visible anchor|8}}
! scope = row | {{visible anchor|8}}
| Remove '''pejorative''', '''offensive''' or '''crude''' language that would not be appropriate in the file description || ''File:Stupid fat bitch.jpg''<br />''File:Worstpersonever.png''<br />''File:Kill that nazi leader.JPG''|| ''File:&lt;Name of the person&gt;.jpg''<br />''File:&lt;Name of the person&gt;.png''<br />''File:&lt;Name of the person&gt;.JPG'' || [[#8|WP:FNC#8]]
| Remove '''pejorative''', '''offensive''' or '''crude''' language that would not be appropriate in the file description || {{ubl | ''File:Stupid fat bitch.jpg'' | ''File:Worstpersonever.png'' | ''File:Kill that nazi leader.JPG'' }} || {{ubl | ''File:&lt;Name of the person&gt;.jpg'' | ''File:&lt;Name of the person&gt;.png'' | ''File:&lt;Name of the person&gt;.jpg'' }} || [[#8|WP:FNC#8]]
|-
|-
! scope = row | {{visible anchor|9}}
! scope = row | {{visible anchor|9}}
| Rename '''files that shadow a Commons file or redirect'''<ref>An image on Commons cannot be used here if a locally uploaded image has the same filename, and the [[:Commons:COM:RENAME|Commons guidelines]] strongly discourage renaming a Commons image for this reason alone.</ref> || ''File:Dog.jpg''<br/>''Commons:File:Dog.jpg'' || ''File:Golden Retriever.jpg''<br/>''Commons:File:Dog.jpg'' || [[#9|WP:FNC#9]]
| Rename '''files that shadow a Commons file or redirect'''<ref>An image on Commons cannot be used here if a locally uploaded image has the same filename, and the [[:Commons:COM:RENAME|Commons guidelines]] strongly discourage renaming a Commons image for this reason alone.</ref> || {{ubl | ''File:Dog.jpg'' | ''Commons:File:Dog.jpg'' }} || {{ubl | ''File:Golden Retriever.jpg'' | ''Commons:File:Dog.jpg'' }} || [[#9|WP:FNC#9]]
|}
|}


After moving the file, please '''replace all uses''' of the old file link with the new one.
After moving the file, please <strong>replace all uses</strong> of the old file link with the new one.


If a file name on English Wikipedia conflicts with a file name at Commons, please check the '''File usage on other wikis''' before deciding which should be renamed. Renaming a file at Commons might affect a lot of projects instead of just one.
If a file name on English Wikipedia conflicts with a file name at Commons, please check the '''File usage on other wikis''' before deciding which should be renamed. Renaming a file at Commons might affect a lot of projects instead of just one.


If the file was moved per [[#9|WP:FNC#9]], after all of the links have been updated, please place <code>{{Tl|Db-redircom}}</code> on the leftover redirect (file movers), or delete the leftover redirect using the summary generated by <code>{{Tl|Db-redircom}}</code> (administrators). Please see [[Wikipedia:Criteria for speedy deletion#R4|speedy deletion criterion R4]] for more information.
If the file was moved per [[#9|WP:FNC#9]], after all of the links have been updated, please place {{tlx|db-redircom}} on the leftover redirect (file movers), or delete the leftover redirect using the summary generated by {{tlx|db-redircom}} (administrators). Please see [[Wikipedia:Criteria for speedy deletion#R4|speedy deletion criterion R4]] for more information.


Additional naming conventions and exceptions from the above list might be discussed for specific projects.
Additional naming conventions and exceptions from the above list might be discussed for specific projects.
Line 86: Line 90:
=== What files should not be renamed? ===
=== What files should not be renamed? ===
{{Shortcut|WP:FMNN}}
{{Shortcut|WP:FMNN}}
As a matter of principle, it is best to leave all files with generally valid names at their locations, even if ''slightly'' better names may exist. So, for example:
As a matter of principle, it is best to leave all files with generally valid names at their locations, even if <em>slightly</em> better names may exist. So, for example:


# ''File:TowerBridge'09.jpg'' should '''not''' be renamed to ''File:Tower_Bridge_2009.jpg'' only because the latter looks ''a bit'' better.
# ''File:TowerBridge'09.jpg'' should <strong>not</strong> be renamed to ''File:Tower_Bridge_2009.jpg'' only because the latter looks <em>a bit</em> better.
# ''File:Thiswouldbebetterwithspaces.jpg'' should '''not''' be renamed to ''File:This would be better with spaces.jpg''.
# ''File:Thiswouldbebetterwithspaces.jpg'' should <strong>not</strong> be renamed to ''File:This would be better with spaces.jpg''.


However, situations that could cause confusion are to be avoided.</onlyinclude>
However, situations that could cause confusion are to be avoided.</onlyinclude>

== Notes ==
{{reflist}}


==See also==
==See also==
Line 98: Line 105:
* [[Help:Files]]
* [[Help:Files]]
* [[:c:Commons:File types]]
* [[:c:Commons:File types]]
* [[:Category:Wikipedia image placeholders for image namespace]]




[[Category:Wikipedia image placeholders for image namespace| ]]
[[Category:Wikipedia project content guidelines]]
[[Category:Wikipedia project content guidelines]]

Latest revision as of 18:21, 7 June 2024

Wikipedia file names should be clear and descriptive, without being excessively long. While the image name doesn't matter much to the reader (they can reach the description page by simply clicking on the image), it matters for editors. It is helpful to other contributors and for maintenance of the encyclopedia if images have descriptive or at least readable file names. For example, "File:Skyline Frankfurt am Main.jpg" is more helpful than "File:Wiki.jpg".

To avoid accidental overwriting of images or other media, very generic filenames should not be used when uploading. For example, a picture of an album cover should not be given the name "File:Cover.jpg", as sooner or later someone else will try to do the same thing and overwrite the old image. The new image will then appear wherever the old one was used—in this case, an album article would then show the wrong album cover.

Examples[edit]

Good file names[edit]

Bad file names[edit]

  • "Image01.png"
  • "Joe.jpg"
  • "DSC00001.JPG"
  • "30996951316264l.jpg"

Disallowed image names[edit]

Image names may be disallowed either by page protection or by blacklisting the title. There are also a few technical restrictions on what characters can be contained in a title.

Technical restrictions[edit]

For technical reasons, file names cannot contain any of the following characters, as these would conflict with wiki syntax: # < > [ ] | : { } / . For the same reason they also cannot contain sequences of tilde characters (~~~).

Like other wiki page names, file names are case sensitive except for the first character, which will always be normalized to uppercase.

Blacklisting[edit]

Disallowing may be done via the MediaWiki:Titleblacklist and may then generate a variety of error messages—see MediaWiki talk:Titleblacklist. For example, highly generic filenames (such as those produced automatically by digital cameras) produce the error message at MediaWiki:Titleblacklist-custom-imagename.

Generic file names[edit]

Placeholder image

Some file names are protected to prevent an image being uploaded with that name because they are too generic. For example, File:Image.jpg, File:Image.png, File:Image.gif and File:Image.svg.

What files should be renamed?[edit]

Wikipedia:File names describes how files should be named. In general, Wikipedia aims to provide stable file names as these may be being used by tools outside of Wikipedia. Currently there are nine widely undisputed uses for rename requests:

No. Aim Examples (old name) Examples (new name) Shortcut
1 Uploader requested WP:FNC#1
2 Change from completely meaningless names into suitable names, according to what the image displays
  • File:22785u9ob807b3c4f4.jpg
  • File:DSC_1342.jpg
  • File:Tower_Bridge_2009.jpg
  • File:Pretoria_Venningpark.jpg
WP:FNC#2
3 Correct misleading names into accurate ones
  • File:!My_cuTe!!_MOUSSE.JPG
  • File:1BIGGest_nOSE_everS33n.JPG
  • File:Dutch_pet_rabbit.jpg
  • File:John_Doe_at_concert.jpg
WP:FNC#3
4 Change generic bio-names into binomial scientific names
  • File:Unknown_insect_02.jpg
  • File:Unidentified_flowers_HFJ.jpg
  • File:Bird??.jpg
  • File:Hogna_radiata_02.jpg
  • File:Echinops_setifer_Japan.jpg
  • File:Copsychus_saularis.jpg
WP:FNC#4
5 Correct errors in file names (e.g. wrong proper nouns or false historical dates)
  • File:Ayres_Rock_3.png
  • File:Van_Gogh_portrait_1787.jpg
  • File:Ayers_Rock_3.png
  • File:Van_Gogh_portrait_1887.jpg
WP:FNC#5
6 Harmonize file names of a set of images (so that only one part of all names differs) to ease their usage in templates (e.g. diagram symbols, scans of pages of a book, maps)
  • File:Bhf-BS-Icon.svg
  • File:Icon_HST_bs_1.svg
  • File:Dst_symbol.svg
  • etc.
  • File:BSicon_BHF.svg
  • File:BSicon_HST.svg
  • File:BSicon_DST.svg
  • etc.
WP:FNC#6
7 Disambiguate files with overly similar names. The software allows for multiple different files to have the same name, but with different capitalization (see ninja example) or different expressions of the same filetype extension (see bunny example). However, these are not ideal situations.
  • File:Ninja.jpg
  • File:NINJA.jpg
Also
  • File:Bunny.jpg
  • File:Bunny.jpeg
  • File:Bunny.JPEG
  • File:Ninja_1.jpg
  • File:Ninja_2.jpg
Also
  • File:Bunny_1.jpg
  • File:Bunny_2.jpeg
  • File:Bunny_3.jpeg
WP:FNC#7
8 Remove pejorative, offensive or crude language that would not be appropriate in the file description
  • File:Stupid fat bitch.jpg
  • File:Worstpersonever.png
  • File:Kill that nazi leader.JPG
  • File:<Name of the person>.jpg
  • File:<Name of the person>.png
  • File:<Name of the person>.jpg
WP:FNC#8
9 Rename files that shadow a Commons file or redirect[1]
  • File:Dog.jpg
  • Commons:File:Dog.jpg
  • File:Golden Retriever.jpg
  • Commons:File:Dog.jpg
WP:FNC#9

After moving the file, please replace all uses of the old file link with the new one.

If a file name on English Wikipedia conflicts with a file name at Commons, please check the File usage on other wikis before deciding which should be renamed. Renaming a file at Commons might affect a lot of projects instead of just one.

If the file was moved per WP:FNC#9, after all of the links have been updated, please place {{db-redircom}} on the leftover redirect (file movers), or delete the leftover redirect using the summary generated by {{db-redircom}} (administrators). Please see speedy deletion criterion R4 for more information.

Additional naming conventions and exceptions from the above list might be discussed for specific projects.

What files should not be renamed?[edit]

As a matter of principle, it is best to leave all files with generally valid names at their locations, even if slightly better names may exist. So, for example:

  1. File:TowerBridge'09.jpg should not be renamed to File:Tower_Bridge_2009.jpg only because the latter looks a bit better.
  2. File:Thiswouldbebetterwithspaces.jpg should not be renamed to File:This would be better with spaces.jpg.

However, situations that could cause confusion are to be avoided.

Notes[edit]

  1. ^ An image on Commons cannot be used here if a locally uploaded image has the same filename, and the Commons guidelines strongly discourage renaming a Commons image for this reason alone.

See also[edit]