Changes between Version 26 and Version 27 of TaggingPresets
- Timestamp:
- 2010-09-10T18:01:00+02:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v26 v27 19 19 And this is the code that created the example : 20 20 {{{ 21 <presets> 21 <presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"> 22 22 <item name="Highway"> 23 23 <label text="Inserting a highway in UK" /> … … 38 38 == XML Format description == 39 39 40 The tagging preset description is in a very simple XML format. The format is not validated.40 The tagging preset description is in a very simple XML format. 41 41 42 42 === Tags === 43 43 The following tags are used: 44 44 '''<presets>''':: 45 Has to be the main tag of the file. No Attributes are recognized. 45 Has to be the main tag of the file. Supports following attributes 46 * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"''' 47 * '''author''' - the name of the author 48 * '''version''' - a version of the file 49 * '''description''' (i18n) - description what the file contains 50 * '''shortdescription''' (i18n) - short overview description 51 * '''link''' (i18n) - web link to further details 46 52 '''<group>''':: 47 53 Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute. … … 69 75 This tag will always set a key to a specific value. ''key'' is required and if ''value'' is present, the key will be set. If 70 76 ''value'' attribute is ommited, the key is removed. 71 '''72 77 73 78 === Attributes === … … 75 80 '''name="a_name"''':: 76 81 Specify a name for an item. This name will be used in the GUI to display the tagging preset. 82 '''name_context="context"''':: 83 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations). 77 84 '''type="data_type"''':: 78 85 When specified, only objects of the given type will be changed at all by this tagging preset. Can be "node", "relation", "way" or any comma separated combination of them. … … 83 90 '''text="Any text"''':: 84 91 The description, that will be displayed before (after in case of <check>) the gui element. 92 '''text_context="context"''':: 93 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations). 85 94 '''default="default_value"''':: 86 95 The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). … … 89 98 '''values="entry1,entry2,entry3"''':: 90 99 A comma separated list of entries (for the combo box). It is not possible to specify an entry that contain a comma. 100 '''values_context="context"''':: 101 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations). 91 102 '''display_values="Entry1,Entry2,Entry3"''':: 92 103 A comma separated list of entries that is displayed to the user. Must be the same number of entries as values and '''readonly''' must be true or not specified.
