Template:Svg lang

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This page is not a file.
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Svglang/doc.

To display a list of the different translations of a multilingual SVG file

Usage

{{Svg lang |file= |1= |p= }}

Template parameters

ParameterDescriptionDefaultStatus
fileName of the multilang SVG file; may be omitted on the SVG image description page.{{PAGENAME}}suggested
0Layout: 0=+ to display the default language first; 0=- to suppress the headline.emptyoptional
1Language code (in BCP 47 format), to display a translation of SVG <switch> elements. Leave blank to show the default rendering without lang specified.emptyrequired
2, 3, 4, ...Additional language codes, to display more translations, unlimited.emptyoptional
numberany text (as e.g. 12), the number of systemLanguagesemptyoptional
pp=o to display packed-overlay styleemptyoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: no user group specified

Relies on:
Module:Iteration, Template:Source thumb, Template:Source thumb packed-overlay

See also

List the language versions supported in an SVG image file.

Currently, it seems not possible to get the list of the embedded languages directly and dynamically from the SVG file – this template needs to have them explicitly specified as parameters (as valid IETF BCP 47 language tags, based on ISO 639 language codes with extensions, and not as legacy Wikimedia language codes).


Example
  • {{Svg lang|file=Map of USA with state names.svg |af|am|ang|an|ar|arc|arz|ast|ay|az |ba|bar|bcl|be|bg|bi|bn|bpy|br|bs |ca|ce|ckb|co|cs|cu|cv|cy |da|de|diq |el|en|eo|es|et|eu |fa|fi|fo|fr|frr|fy |ga|gag|gd|gl|gn|gv |hak|haw|he|hif|hi|hr|ht|hu|hy |ia|id|ie|ig|ik|ilo|io|is|it |ja|jv |ka|kab|kk|kn|ko|krc|ku|kw |la|lad|lez|li|lij|lmo|lt|lv |mg|mhr|mi|mk|ml|mn|mr|mrj|ms|my|mzn |nah|nds|ne|new|nl|nn|no|nv |oc|or|os |pa|pam|pap|pi|pl|pms|pnb|pt |qu |rm|ro|ru |sa|sah|sc|scn|sco|se|sh|sk|sl|sq|sr|sv|sw |ta|te|th|tl|tr|tt |ug|uk|ur|uz |vec|vi|vo |war|wuu |xal |yi|yo |zh|zh-hant }} generates:
Map of USA with state names.svg|lang=af (Afrikaans)
Map of USA with state names.svg|lang=am (Amharic)
Map of USA with state names.svg|lang=ang (Old English)
Map of USA with state names.svg|lang=an (Aragonese)
Map of USA with state names.svg|lang=ar (Arabic)
Map of USA with state names.svg|lang=arc (Aramaic)
Map of USA with state names.svg|lang=arz (Egyptian Arabic)
Map of USA with state names.svg|lang=ast (Asturian)
Map of USA with state names.svg|lang=ay (Aymara)
Map of USA with state names.svg|lang=az (Azerbaijani)
Map of USA with state names.svg|lang=ba (Bashkir)
Map of USA with state names.svg|lang=bar (Bavarian)
Map of USA with state names.svg|lang=bcl (Central Bikol)
Map of USA with state names.svg|lang=be (Belarusian)
Map of USA with state names.svg|lang=bg (Bulgarian)
Map of USA with state names.svg|lang=bi (Bislama)
Map of USA with state names.svg|lang=bn (Bangla)
Map of USA with state names.svg|lang=bpy (Bishnupriya)
Map of USA with state names.svg|lang=br (Breton)
Map of USA with state names.svg|lang=bs (Bosnian)
Map of USA with state names.svg|lang=ca (Catalan)
Map of USA with state names.svg|lang=ce (Chechen)
Map of USA with state names.svg|lang=ckb (Central Kurdish)
Map of USA with state names.svg|lang=co (Corsican)
Map of USA with state names.svg|lang=cs (Czech)
Map of USA with state names.svg|lang=cu (Church Slavic)
Map of USA with state names.svg|lang=cv (Chuvash)
Map of USA with state names.svg|lang=cy (Welsh)
Map of USA with state names.svg|lang=da (Danish)
Map of USA with state names.svg|lang=de (German)
Map of USA with state names.svg|lang=diq (Zazaki)
Map of USA with state names.svg|lang=el (Greek)
Map of USA with state names.svg|lang=en (English)
Map of USA with state names.svg|lang=eo (Esperanto)
Map of USA with state names.svg|lang=es (Spanish)
Map of USA with state names.svg|lang=et (Estonian)
Map of USA with state names.svg|lang=eu (Basque)
Map of USA with state names.svg|lang=fa (Persian)
Map of USA with state names.svg|lang=fi (Finnish)
Map of USA with state names.svg|lang=fo (Faroese)
Map of USA with state names.svg|lang=fr (French)
Map of USA with state names.svg|lang=frr (Northern Frisian)
Map of USA with state names.svg|lang=fy (Western Frisian)
Map of USA with state names.svg|lang=ga (Irish)
Map of USA with state names.svg|lang=gag (Gagauz)
Map of USA with state names.svg|lang=gd (Scottish Gaelic)
Map of USA with state names.svg|lang=gl (Galician)
Map of USA with state names.svg|lang=gn (Guarani)
Map of USA with state names.svg|lang=gv (Manx)
Map of USA with state names.svg|lang=hak (Hakka Chinese)
Map of USA with state names.svg|lang=haw (Hawaiian)
Map of USA with state names.svg|lang=he (Hebrew)
Map of USA with state names.svg|lang=hif (Fiji Hindi)
Map of USA with state names.svg|lang=hi (Hindi)
Map of USA with state names.svg|lang=hr (Croatian)
Map of USA with state names.svg|lang=ht (Haitian Creole)
Map of USA with state names.svg|lang=hu (Hungarian)
Map of USA with state names.svg|lang=hy (Armenian)
Map of USA with state names.svg|lang=ia (Interlingua)
Map of USA with state names.svg|lang=id (Indonesian)
Map of USA with state names.svg|lang=ie (Interlingue)
Map of USA with state names.svg|lang=ig (Igbo)
Map of USA with state names.svg|lang=ik (Inupiaq)
Map of USA with state names.svg|lang=ilo (Iloko)
Map of USA with state names.svg|lang=io (Ido)
Map of USA with state names.svg|lang=is (Icelandic)
Map of USA with state names.svg|lang=it (Italian)
Map of USA with state names.svg|lang=ja (Japanese)
Map of USA with state names.svg|lang=jv (Javanese)
Map of USA with state names.svg|lang=ka (Georgian)
Map of USA with state names.svg|lang=kab (Kabyle)
Map of USA with state names.svg|lang=kk (Kazakh)
Map of USA with state names.svg|lang=kn (Kannada)
Map of USA with state names.svg|lang=ko (Korean)
Map of USA with state names.svg|lang=krc (Karachay-Balkar)
Map of USA with state names.svg|lang=ku (Kurdish)
Map of USA with state names.svg|lang=kw (Cornish)
Map of USA with state names.svg|lang=la (Latin)
Map of USA with state names.svg|lang=lad (Ladino)
Map of USA with state names.svg|lang=lez (Lezghian)
Map of USA with state names.svg|lang=li (Limburgish)
Map of USA with state names.svg|lang=lij (Ligurian)
Map of USA with state names.svg|lang=lmo (Lombard)
Map of USA with state names.svg|lang=lt (Lithuanian)
Map of USA with state names.svg|lang=lv (Latvian)
Map of USA with state names.svg|lang=mg (Malagasy)
Map of USA with state names.svg|lang=mhr (Eastern Mari)
Map of USA with state names.svg|lang=mi (Māori)
Map of USA with state names.svg|lang=mk (Macedonian)
Map of USA with state names.svg|lang=ml (Malayalam)
Map of USA with state names.svg|lang=mn (Mongolian)
Map of USA with state names.svg|lang=mr (Marathi)
Map of USA with state names.svg|lang=mrj (Western Mari)
Map of USA with state names.svg|lang=ms (Malay)
Map of USA with state names.svg|lang=my (Burmese)
Map of USA with state names.svg|lang=mzn (Mazanderani)
Map of USA with state names.svg|lang=nah (Nahuatl)
Map of USA with state names.svg|lang=nds (Low German)
Map of USA with state names.svg|lang=ne (Nepali)
Map of USA with state names.svg|lang=new (Newari)
Map of USA with state names.svg|lang=nl (Dutch)
Map of USA with state names.svg|lang=nn (Norwegian Nynorsk)
Map of USA with state names.svg|lang=no (Norwegian)
Map of USA with state names.svg|lang=nv (Navajo)
Map of USA with state names.svg|lang=oc (Occitan)
Map of USA with state names.svg|lang=or (Odia)
Map of USA with state names.svg|lang=os (Ossetic)
Map of USA with state names.svg|lang=pa (Punjabi)
Map of USA with state names.svg|lang=pam (Pampanga)
Map of USA with state names.svg|lang=pap (Papiamento)
Map of USA with state names.svg|lang=pi (Pali)
Map of USA with state names.svg|lang=pl (Polish)
Map of USA with state names.svg|lang=pms (Piedmontese)
Map of USA with state names.svg|lang=pnb (Western Punjabi)
Map of USA with state names.svg|lang=pt (Portuguese)
Map of USA with state names.svg|lang=qu (Quechua)
Map of USA with state names.svg|lang=rm (Romansh)
Map of USA with state names.svg|lang=ro (Romanian)
Map of USA with state names.svg|lang=ru (Russian)
Map of USA with state names.svg|lang=sa (Sanskrit)
Map of USA with state names.svg|lang=sah (Yakut)
Map of USA with state names.svg|lang=sc (Sardinian)
Map of USA with state names.svg|lang=scn (Sicilian)
Map of USA with state names.svg|lang=sco (Scots)
Map of USA with state names.svg|lang=se (Northern Sami)
Map of USA with state names.svg|lang=sh (Serbo-Croatian)
Map of USA with state names.svg|lang=sk (Slovak)
Map of USA with state names.svg|lang=sl (Slovenian)
Map of USA with state names.svg|lang=sq (Albanian)
Map of USA with state names.svg|lang=sr (Serbian)
Map of USA with state names.svg|lang=sv (Swedish)
Map of USA with state names.svg|lang=sw (Swahili)
Map of USA with state names.svg|lang=ta (Tamil)
Map of USA with state names.svg|lang=te (Telugu)
Map of USA with state names.svg|lang=th (Thai)
Map of USA with state names.svg|lang=tl (Tagalog)
Map of USA with state names.svg|lang=tr (Turkish)
Map of USA with state names.svg|lang=tt (Tatar)
Map of USA with state names.svg|lang=ug (Uyghur)
Map of USA with state names.svg|lang=uk (Ukrainian)
Map of USA with state names.svg|lang=ur (Urdu)
Map of USA with state names.svg|lang=uz (Uzbek)
Map of USA with state names.svg|lang=vec (Venetian)
Map of USA with state names.svg|lang=vi (Vietnamese)
Map of USA with state names.svg|lang=vo (Volapük)
Map of USA with state names.svg|lang=war (Waray)
Map of USA with state names.svg|lang=wuu (Wu)
Map of USA with state names.svg|lang=xal (Kalmyk)
Map of USA with state names.svg|lang=yi (Yiddish)
Map of USA with state names.svg|lang=yo (Yoruba)
Map of USA with state names.svg|lang=zh (Chinese)