Template:Icon: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(LangSwitch|lang={{{lang|}}}) |
||
Line 1: | Line 1: | ||
<includeonly>{{LangSwitch|lang= |
<includeonly>{{LangSwitch|lang={{{lang|}}} |
||
<!--7 languages with capitalized namespaces for articles need the "Template:" namespace before the capitalized language code prefix--> |
<!--7 languages with capitalized namespaces for articles need the "Template:" namespace before the capitalized language code prefix--> |
||
|de={{Template:DE:Icon|{{{1}}}|{{{2|20px}}}}} |
|de={{Template:DE:Icon|{{{1}}}|{{{2|20px}}}}} |
||
Line 9: | Line 9: | ||
|ru={{Template:RU:Icon|{{{1}}}|{{{2|20px}}}}} |
|ru={{Template:RU:Icon|{{{1}}}|{{{2|20px}}}}} |
||
<!--Other languages without namespace for articles--> |
<!--Other languages without namespace for articles--> |
||
|ca={{Ca:Icon|{{{1}}}|{{{2|20px}}}}} |
|ca={{Template:Ca:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|cs={{Cs:Icon|{{{1}}}|{{{2|20px}}}}} |
|cs={{Template:Cs:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|fa={{Fa:Icon|{{{1}}}|{{{2|20px}}}}} |
|fa={{Template:Fa:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|hu={{Hu:Icon|{{{1}}}|{{{2|20px}}}}} |
|hu={{Template:Hu:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|pl={{Pl:Icon|{{{1}}}|{{{2|20px}}}}} |
|pl={{Template:Pl:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|pt={{Pt:Icon|{{{1}}}|{{{2|20px}}}}} |
|pt={{Template:Pt:Icon|{{{1}}}|{{{2|20px}}}}} |
||
|default<!--Languages without translated Template:Icon--> |
|default=<!--Languages without translated Template:Icon-->{{#switch:{{{1}}} |
||
|n|node=[[File:Osm element node.svg|{{{2|20px}}}|text-bottom|link={{LL|lang={{{lang|}}}|Node}}|{{{desc|node}}}]] |
|n|node=[[File:Osm element node.svg|{{{2|20px}}}|text-bottom|link={{LL|lang={{{lang|}}}|Node}}|{{{desc|node}}}]] |
||
|w|way=[[File:Osm element way.svg|{{{2|20px}}}|text-bottom|link={{LL|lang={{{lang|}}}|Way}}|{{{desc|way}}}]] |
|w|way=[[File:Osm element way.svg|{{{2|20px}}}|text-bottom|link={{LL|lang={{{lang|}}}|Way}}|{{{desc|way}}}]] |
Latest revision as of 23:14, 19 February 2024
This documentation is transcluded from Template:Icon/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.
Display an icon and links to the corresponding wiki page.
Templates used by this template:
- {{Template:DE:Icon}}
- {{Template:ES:Icon}}
- {{Template:FR:Icon}}
- {{Template:JA:Icon}}
- {{Template:RU:Icon}}
- {{Ca:Icon}}
- {{Cs:Icon}}
- {{Fa:Icon}}
- {{Hu:Icon}}
- {{Pl:Icon}}
- {{Pt:Icon}}
If you want to use the icons elsewhere, they are all listed at Category:Element icon.
Usage
Wikitext | Produces | Description |
---|---|---|
{{Icon|node}} or {{Icon|n}} | node | |
{{Icon|node|30px}} or {{Icon|n|30px}} | node (magnified) | |
{{Icon|way}} or {{Icon|w}} | way / line | |
{{Icon|closedway}} or {{Icon|c}} | closed way / polygon | |
{{Icon|area}} or {{Icon|a}} | area | |
{{Icon|relation}} or {{Icon|r}} | relation | |
{{Icon|all}} or {{Icon|all}} | all elements | |
{{Icon|member}} or {{Icon|m}} | member | |
{{Icon|role}} or {{Icon|o}} | role | |
{{Icon|tag}} or {{Icon|t}} | tag | |
{{Icon|key}} or {{Icon|k}} | key | |
{{Icon|value}} or {{Icon|v}} | value |
See test cases for all supported languages
This template display an icon and links to the corresponding wiki page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon identifier | 1 | Identifier of which icon to use.
| Line | required |
Icon size | 2 | The size of the icon to be rendered
| String | optional |
language of linked page | lang | Manually specify language of page where template should link to.
| Line | optional |
Icon description | desc | Description visible when pointing mouse over icon. | Content | optional |