Template:FR:TagValue

From OpenStreetMap Wiki
Jump to navigation Jump to search

Copie du Template:Tag, mais qui n'affiche pas la clé. Si le troisième argument est utilisé, le lien pointe vers la clé. Utilisation:

{{FR:TagValue|clé}}
{{FR:TagValue|clé|valeur}}
{{FR:TagValue|clé|valeur avec lien|valeur affichée}}
{{FR:TagValue|clé||valeur sans lien}}
Ce qui est affiché Ce qui est à saisir Ce qui est lié
motorway {{FR:TagValue|highway|motorway}} FR:Tag:highway=motorway
autoroute {{FR:TagValue|highway|motorway|autoroute}} FR: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 {{FR:TagValue|bridge||shelter}} FR:Key:amenity#amenity-shelter
yes {{FR:TagValue|bridge|||yes}} FR:Key:bridge
ref number {{FR:TagValue|ref|||''ref number''}} FR: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]:

Notes