Template:Icon

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

Display an icon and links to the corresponding wiki page.

Templates used by this template:

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 node
{{Icon|node|30px}} or {{Icon|n|30px}} node node (magnified)
{{Icon|way}} or {{Icon|w}} way way / line
{{Icon|closedway}} or {{Icon|c}} closed way closed way / polygon
{{Icon|area}} or {{Icon|a}} area area
{{Icon|relation}} or {{Icon|r}} relation relation
{{Icon|all}} or {{Icon|all}} All Elements all elements
{{Icon|member}} or {{Icon|m}} member member
{{Icon|role}} or {{Icon|o}} Role role
{{Icon|tag}} or {{Icon|t}} tag tag
{{Icon|key}} or {{Icon|k}} key key
{{Icon|value}} or {{Icon|v}} Value value

See test cases for all supported languages

This template display an icon and links to the corresponding wiki page.

Template parameters

ParameterDescriptionTypeStatus
Icon identifier1

Identifier of which icon to use.

Suggested values
n node w way c closedway a area r relation all m member o role t tag
Example
relation
Linerequired
Icon size2

The size of the icon to be rendered

Example
30px
Stringoptional
language of linked pagelang

Manually specify language of page where template should link to.

Example
de
Lineoptional
Icon descriptiondesc

Description visible when pointing mouse over icon.

Contentoptional