Changes between Version 1 and Version 2 of NameTemplate
- Timestamp:
- 2011-10-17T19:28:04+02:00 (15 years ago)
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 orSelection list).1 Name templates can be used to define custom formatting for gpx waypoints or osm primitives (for example in the Relations or the Selection lists). 2 2 3 3 = Syntax = 4 4 * {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 exists5 * ?{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 6 6 7 7 = Samples = … … 14 14 15 15 = Available values = 16 For osmprimitivesformating,value of any tag can be used, use {special:everything} to see what values are available for you gpx waypoints.17 Fewadditional 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 ofosm primitive20 - {special:localName} prints localized name, that is value of name:lang for your language if the tag exists or justvalue ofname tag.16 For 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. 17 Some 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.
