Template:Localized media/doc

Purpose
This template is used to show localized images (and another media) in the language of the current page. Users can be create localized version of screenshots, diagramms etc., which the standartized form of filename  (e.g. File:Sysopdeleteform el.png), where "code" is a valid language code. In various cases, the language code can be separated by different delimiter characters.

The template first checks "content language" of the current page (this check based on pagename suffix, e.g. Template:Sysophelp/doc/el; this indicating that it is translated). Then it checks if the filename given as a first parameter has a translation in that language (e.g. File:Sysopdeleteform el.png).

If the current page name is not suffixed with a valid language code, or if the localized file doesn't exist in that language, it will display the file with base filename (e.g. File:Sysopdeleteform.png).

Parameters
May be used with named or unnamed parameters:
 * 1) filename (required) — image filename, without extension, language code and delimination simbol;
 * 2) ext (optional) — file extension, "png" by default;
 * 3) delim (optional) — delimination symbol for language code, space by default.

How to use

 * is used by default.

Example 1
(from Administrator)


 * or

which includes translated versions of “File:Sysopdeleteform.png” (such as “File:Sysopdeleteform de.png” for German) if it exists in the same language as the current page, or the base (most often English) version if such translation doesn't exist in that language.

Example 2

 * or
 * or

which includes translated versions of “File:Wikipedia-logo-v2-en.svg” (such as “File:Wikipedia-logo-v2-de.svg” for German).

Note
This cross-wiki template. These same code is used at the:
 * meta:Template:Localized media
 * wikidata:Template:Localized media
 * commons:Template:Localized media