Changes between Version 5 and Version 6 of NameTemplate
- Timestamp:
- 2011-10-29T13:48:50+02:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NameTemplate
v5 v6 24 24 * {var} - use value of variable var 25 25 * ?{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 26 * !{search_expression 'template'} - search_expression is evaluated and first matching primitive is used as context for template. Useful for example to get tags of parent relation. 26 27 27 28 = Samples = … … 32 33 || ?{ admin_level = 2 'NUTS 1' | admin_level = 4 'NUTS 2' | admin_level = 6 'NUTS 3' | 'Admin level {admin_level}'} || admin_level=4 || NUTS 2 33 34 || || admin_level=5 || Admin level 5 35 || {{{ {admin_level} - {name} !{parent() type=boundary '?{'(part of {admin_level} - {name})' | ''}'} }}} || admin_level=6 name=Vysocina, member of relation admin_level=4 name=Jihovychod || 6 - Vysocina (part of Jihovychod) 36 || || admin_level=2 name=Czech republic (no parents) || 2 - Czech republic 34 37 35 38 = Available values =
