Changes between Version 1 and Version 2 of NameTemplate


Ignore:
Timestamp:
2011-10-17T19:28:04+02:00 (15 years ago)
Author:
Polyglot
Comment:

fixed some typos and added articles to make it clearer

Legend:

Unmodified
Added
Removed
Modified
  • NameTemplate

    v1 v2  
    1 Name templates can be used to define custom formatting for gpx waypoints or osm primitives (for example in Relation or Selection list).
     1Name templates can be used to define custom formatting for gpx waypoints or osm primitives (for example in the Relations or the Selection lists).
    22
    33= Syntax =
    44* {var} - use value of variable var
    5 * ?{condition1 'value1' | condition2 'value2 | 'value3'} - use value1 if condition1 is satisfied, value3 is no condition is satisfied. Condition can be either explicit -  the same expression as in search or filters is used or implicit - value is used when all variables used inside exists
     5* ?{condition1 'value1' | condition2 'value2 | 'value3'} - use value1 if condition1 is satisfied, value3 is no condition is satisfied. Condition can be either explicit -  the same expression as in search or filters is used - or implicit; the value is used when all variables used inside exist
    66
    77= Samples =
     
    1414
    1515= Available values =
    16 For osm primitives formating, value of any tag can be used, use {special:everything} to see what values are available for you gpx waypoints.
    17 Few additional variables are available  via special prefix:
    18 - {special:everything} prints all available values, available for both primitive and waypoint formatting.
    19 - {special:id} prints id of osm primitive
    20 - {special:localName} prints localized name, that is value of name:lang for your language if the tag exists or just value of name tag.
     16For formatting of OSM primitives , the value of any tag can be used, use {special:everything} to see what values are available for your gpx waypoints.
     17Some additional variables are available  via the special prefix:
     18- {special:everything} prints all available values, available for formatting of both primitives and waypoints.
     19- {special:id} prints the ID of an osm primitive
     20- {special:localName} prints the localized name, that is the value of name:lang for your language if it is available or the value of the name tag if it doesn't.