Template:Svg lang
Usage
{{Svg lang |file= |1= |p= }}
"Svg lang" and "Lang gallery" are dupe templates sharing same documentation. "Lang gallery" displays the number of embedded translations, but this value is based on the submitted langcodes. The template does NOT analyse the SVG file for languages, ie the value can be wrong.
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
file | File name | Name of the multilang SVG file; may be omitted on the SVG image description page. | {{PAGENAME}} | suggested |
0 | Layout | 0=+ to display the default language first; 0=- to suppress the headline. | empty | optional |
1 | Language code | Language code (in BCP 47 format), to display a translation of SVG <switch> elements. Leave blank to show the default rendering without lang specified. | empty | required |
2, 3, 4, ... | Language code | Additional language codes, to display unlimited more translations. | empty | optional |
number | Number | any text (as e.g. 12), the number of systemLanguages | empty | optional |
p | Style | p=o to display packed-overlay style | empty | optional |
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: all users
Relies on:
Module:Iteration, Template:Source thumb, Template:Source thumb packed-overlay
See also
- {{Lang gallery}}
- {{Lgallery}}
- {{G}} for just galleries
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)
- List the language versions supported in an SVG image file.
- 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:






















































































































































