Template:Svg lang
Jump to navigation
Jump to search
This page is not a file.
This documentation is transcluded from Template:Svglang/doc.
Uses Lua: |
Usage
{{Svg lang |file= |1= |p= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
file | 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 (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, ... | Additional language codes, to display more translations, unlimited. | empty | optional | |
number | any text (as e.g. 12 ), the number of systemLanguages | empty | optional | |
p | 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: no user group specified
Relies on:
Module:Iteration, Template:Source thumb, Template:Source thumb packed-overlay
See also
- {{Lang gallery}}
- {{Lgallery}}
- {{G}} for just galleries
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: