Commons:Filnamn
Jump to navigation
Jump to search
Filer som laddats upp på Commons borde ha lämpliga namn. Den här artikeln listar vissa saker att ta hänsyn till.
För detaljerade namnkonventioner för filer och kategorier, se engelskspråkiga Wikipedias kategori: Wikipedia naming conventions.
Namngivning
Namn ska vara
- beskrivande, valda efter vad bilden föreställer eller innehållet avbildar
- exakta, speciellt när vetenskapliga namn, egennamn, datum, osv. används
Namn ska inte vara
- nedsättande, förolämpande eller innehålla onödigt hårt språk, det är inte heller lämpligt i filbeskrivningen
Språk, teckenuppsättning och tillägg
- Media files can be uploaded with names in any language in any script (coded as UTF-8) - see Commons:Language policy.
- Titles of media files should be meaningful and helpful in the language chosen.
- Avoid "funny" symbols (control characters, unneeded punctuation, etc.) that might be significant in future wiki markup. It is a good idea to stick to graphemic characters, numbers, underscore (space), ASCII hyphen/minus/dash, plus, and period (dot).
- The filename extension (e.g., .jpg) should match the file format (e.g., JPEG).
- When the year, date, or version may be of importance, it is good to include it in the file name.
Skriva över gamla filer

- Except for minor technical corrections, files should be uploaded under new names. The file name applies to one concrete work: do not overwrite it even with a similar image of the same subject. See Commons:Overwriting existing files.
- If a diagram or map shows the status on a given date, it should not be overwritten with the status on another date, unless in certain cases. If the file is intended to be updated, this should be noted. See Commons:Overwriting existing files#Files with current data.
Längd
- File names may be up to 240 bytes long[1], a filename over 240 bytes may break horribly when uploading a new version (As the date is prefixed to the filename for old versions of the file which takes 15 bytes). English filenames will usually use 1 byte per character (some symbols may fall outside the ASCII character set), but for other languages, or cases with non-ASCII characters, 240 bytes may be much less than 240 characters, as these can take up to 4 bytes per character.[2]
- Tip: Keeping the filename reasonably short reduces need for truncation when the file is downloaded, e.g., on CDs filenames are limited to 31, 64, 197 or 207 bytes or characters, depending on extensions used.
- Tip: Use the 20 first characters for essential information, as those will show up on category pages.
Byta namn
- Filer kan byta namn efter att de skapats, men bara under vissa omständigheter då detta förstör riktade länkar. Det är därför viktigt att ett bra namn väljs när filen laddas upp. Se Commons:Byta namn på en fil.
Se även
- Svartlistan för filnamnsprefix och titelnamn används för att efterleva denna policy.
- Commons:First steps/Uploading files#4. Ange ett lämpligt filnamn
- Commons:Byta namn på en fil
- Template:Dont overwrite
- Template:Translation possible
- Commons:Skriva över befintliga filer (en riktlinje)
Referenser
- ↑ The limit was 255 bytes until late 2011 – see Phabricator: T32202. Existing filenames may be up to 255 bytes, but new uploads are restricted to 240.
- ↑ Phabricator: T32202