Changeset 17610 in josm for trunk/resources/data


Ignore:
Timestamp:
2021-03-20T23:07:04+01:00 (4 years ago)
Author:
simon04
Message:

see #18949 - Tagging presets: value_template="..." for <text>

Use value_template to generate the value automatically based on other <text> values of this preset. For instance, "Bus {ref}: {from} → {to}" can be used to generate the name of a bus route relation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/tagging-preset.xsd

    r17605 r17610  
    332332            <annotation>
    333333                <documentation><![CDATA[
    334                     A comma separated list of alternative keys to use for auto completion of <text<.
     334                    A comma separated list of alternative keys to use for auto completion of <text>.
     335                ]]></documentation>
     336            </annotation>
     337        </attribute>
     338        <attribute name="value_template" type="string">
     339            <annotation>
     340                <documentation><![CDATA[
     341                    A template to generate the value automatically based on other <text> values of this preset.
     342                    For instance, "Bus {ref}: {from} → {to}" can be used to generate the name of a bus route relation.
    335343                ]]></documentation>
    336344            </annotation>
Note: See TracChangeset for help on using the changeset viewer.