From OpenStreetMap Wiki
Jump to: navigation, search

Displays a tag: key-value and (optionally) links to the corresponding wiki page.

Traditional format


{{TagValue|key|value linked|value diplayed}}
{{TagValue|key||value without link}}

If the third argument is used, the link goes to the key page.

What you display What you type What you link
motorway {{TagValue|highway|motorway}} Tag:highway=motorway
type of the way {{tagValue|highway|motorway|type of the way}} Tag:highway=motorway
To force it to not link to the spcific page, skip the second argument and put the text in the third or fourth argument like:
shelter {{TagValue|amenity||shelter}} Key:amenity#amenity-shelter
yes {{TagValue|bridge|||yes}} Key:bridge
ref number {{TagValue|ref|||''ref number''}} Key:ref

The main pages key:NN (the map:features templates behind them[1]) need to be modified to work with this template on the key:name#value form. For each value, the line


must be changes into :

|- id="name-value"

with the name and the value separated with -, and the spaces in the value changed in _. E.g. :

|- id="amenity-ferry_terminal"

Actualy the key pages updated are [2]:

Parameter format

There is a second style with named parameters:

Wikimarkup Note Expansion Rendering


The key-value combination has its own wiki page or redirects to the wiki page of the key. [[Tag:highway=motorway|motorway]] motorway
{{TagValue|link=key|key=highway|value=motorway}} The value is explained on the wiki page of the key, link to it. [[Key:highway|motorway]] motorway
{{TagValue|link=key#|key=amenity|value=embassy}} Links to the wiki page of the key, but adds a fragment to jump the corresponding paragraph, if an anchor has been set. [[Key:amenity#amenity-embassy|embassy]] embassy


Do not link. Can be useful display a list of values on the key-wiki page. biomass biomass


Links to the wiki page of the specific language. [[JA:Tag:highway=motorway|motorway]] motorway


  1. See Category:Map Features template
  2. See Category:TagValue enabled