Template:Elements
Jump to navigation
Jump to search
|
This documentation is transcluded from Template:Elements/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
Place {{Elements}}
on a wiki page, usually at the bottom.
If the language is not used as desired, add the parameter lang
:
{{Elements|lang=xy}}
Translation
To add a language, you need to edit the template and insert the lines for the new language with the language code, e.g. |xy=
.
The sorting of languages is alphabetical.
Most of the entries have two parts, the page name to link and the link name to display:
[[{{LangSwitch|lang={{{lang|{{langcode}} }}} | xy = page name to link }}|{{LangSwitch|lang={{{lang|{{langcode}} }}} | xy = link name to display }}]]
See the following extraction from the template for example:
{{Navbox | name = Template:Elements | title = {{LangSwitch|lang={{{lang|{{langcode}} }}} | default = OpenStreetMap data model | en = OpenStreetMap data model | es = Modelo de datos de OpenStreetMap | fa = مدل دادهٔ اوپناستریتمپ }} | group1 = [[{{LangSwitch|lang={{{lang|{{langcode}} }}} | default = {{LL|Elements}} | en = Elements | es = ES:Elementos }}|{{LangSwitch|lang={{{lang|{{langcode}} }}} | en = Elements | es = Elementos | fa = عناصر }}]] | list1 = {{flatlist| * [[{{LangSwitch|lang={{{lang|{{langcode}} }}} | default = {{LL|Node}} | en = Node | es = ES:Nodo | fa = Fa:Node }}|{{LangSwitch|lang={{{lang|{{langcode}} }}} | en = Node | es = Nodo | fa = گره (''node'') }}]] * [[{{LangSwitch|lang={{{lang|{{langcode}} }}} | default = {{LL|Way}} | en = Way | es = ES:Vía | fa = Fa:Way }}|{{LangSwitch|lang={{{lang|{{langcode}} }}} | en = Way | es = Vía | fa = راه (''way'') }}]] * (''{{LangSwitch|lang={{{lang|{{langcode}} }}} | en = former | es = anterior | fa = قبلاً }}'': [[{{LangSwitch|lang={{{lang|{{langcode}} }}} | default = {{LL|Segment}} }}|{{LangSwitch|lang={{{lang|{{langcode}} }}} | default = Segment | es = Segmento | fa = پاره (''Segment'') }}]]) }} ... and so on.