Changes between Version 144 and Version 173 of Presets


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Presets

    v144 v173  
    11[[TranslatedPages]]
     2
     3= Presets =
     4
     5[[JOSMImage(dialogs/propertiesdialog,48,link=,margin-right=20,margin-bottom=10,middle,left)]]
     6
     7''If you want to learn installation steps for presets, see [[JOSMImage(dialogs/propertiesdialog)]] [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in [[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences Preferences]'' \\
     8''If you want to extend presets with your own see - [wikitr:/TaggingPresets TaggingPresets]''
     9
    210[[PageOutline(2-10,Table of contents)]]
     11 \\
    312
    4 = JOSM presets =
     13== What are presets? ==
     14**Presets** in JOSM are menu-driven shortcuts to tag common object types in OpenStreetMap. They provide you with a user friendly interface to edit one or more objects at a time, suggest additional keys and values you may wish to add to those objects, and most importantly, prevent you from having to enter keys and values by hand.
     15
     16There are three types of Presets available to you in JOSM. Adding or removing any of these items requires restarting JOSM.
     171. The **Internal Preset** list, defined in [source:/trunk/resources/data/defaultpresets.xml defaultpresets.xml], is the default set of presets available in the JOSM [wikitr:/Help/Menu/Presets Presets] menu. Changes to the Internal Presets requires modification of the JOSM source code.
     181. JOSM user-community created (and published) **Available presets**, which can be enabled through the [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in Preferences. The full list of these Available presets, and how to publish a new one you create, appears below.
     191. **Custom Tagging Presets** files, for cases where you want to use customized Presets but they are not published to JOSM as an Available preset. Customized presets can be added through the [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in Preferences, either by URL, or by filename on your local filesystem. The format of a Custom Tagging Presets .xml file appears at [wikitr:/TaggingPresets TaggingPresets].
     20
     21== JOSM Available presets ==
    522[[Styles(en|presets|short description|author|description|version|More details)]]
    623
     24== Publish a new Available presets item ==#PublishanewAvailablepresetsitem
     25[=#Createnewpresets]
     26{{{#!comment
     27Deprecated #Createnewpresets target is called from some PresetsSource and DevelopersGuide/DefaultPresets pages
     28}}}
     29See [wikitr:/TaggingPresets] for the syntax of customized preset files. Be sure to validate a preset file before publishing it!
    730
    8 == Installation ==
    9 The presets listed above can be selected and activated within [wiki:Help/Preferences/Map map settings] in the JOSM preferences.
    10 
    11 
    12 == Create new presets ==
    13 See [wiki:TaggingPresets] for the explanation of the syntax and more infos in case you want to create your own preset.
    1431{{{
    1532#!comment
    1633Note for translators:
    17  - The reference below to change the source of this page should be modified, so it tells the reader to modify the English page.
     34 - The reference below to change the source of this page should not be modified, so it tells the reader to modify the English page.
    1835}}}
    19 * In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets].
    20  * i.e. go to http://josm.openstreetmap.de/wiki/Presets/MyPresetName (Change the URL so it matches the name of your preset. Change only the last part after `...Presets/`.)
    21  * click 'create this page'
    22  * add content similar to existing preset wikis, e.g. [wiki:Presets/OneClick]
    23  * don't forget to enclose your preset code by a code block (`#!preset` needs to be on a new line after `{{{`):
    24   * `{{{`
    25   * `#!preset`
    26   * ...
    27   * `}}}`
    28  * save the wiki page
    29  * after a few minutes the new wiki preset will show up in the list and in JOSM automatically
    30  * for automatic version adjustment you should use two internal variables:
    31   * {{{[[revision]]}}} - is the latest version number of the wiki page
    32   * {{{[[date]]}}} - is the date of the last edit
    33   * e.g. {{{"1.[[revision]]_[[date]]"}}} converts to e.g. {{{1.13_2014-02-24}}}
    34 * New externally hosted preset URLs can be entered when editing [[PresetsSource|this page]].
    35  * **Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported.
    3636
    37 See [wiki:Styles#CreateStyle] for a description how the JOSM wiki helps to create own styles or presets and how attached files and icons are handled.
     37=== JOSM wiki Available preset (preferred method) ===
     38In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets].
     39 I. go to [wiki:Presets/MyPresetName https://josm.openstreetmap.de/wiki/Presets/MyPresetName]
     40  A. change the URL so it matches the name of your preset; change only the last part after `...Presets/`, (preferred is CamelCase)
     41  a. press `Enter` after adjusting the name
     42 1. click 'create this page'
     43 1. add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick]
     44 1. don't forget to enclose your preset code by a code block (`#!preset` needs to be on a **new line** after `{{{`):
     45  1. `{{{`
     46  1. `#!preset`
     47  1. `<?xml version="1.0" encoding="UTF-8"?>`
     48  1. ...
     49  1. `}}}`
     50 1. save the wiki page
     51 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically
     52 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable:
     53  * `[[revision]]` - is the latest version number of the wiki page
     54  * `[[date]]` - is the date of the last edit of the wiki page
     55  * recommended usage: `version="1.[[revision]]_[[date]]"` (converts to e.g. `1.13_2019-02-24`)
     56  * this is required for an automatic update within JOSM
     57
     58=== Externally hosted Available preset ===
     59A new externally hosted preset URLs can be published by editing [wikitr:/PresetsSource this page]. \\
     60**Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported.
     61
     62=== Icon handling in Available presets ===#IconHandling
     63* See [wikitr:/Styles#Icons] for a description how attached files and icons are handled.
     64* Empty image paths like `icon=""` are not allowed.
    3865
    3966
    40 == Updating presets in JOSM ==
    41 Once a preset was updated in the Wiki it takes up to 10 days until the preset gets updated in JOSM automatically. To immediately force an update you can do the following steps:
    42 * Open the [wiki:Help/Action/Preferences Preferences]
    43 * Make sure [wiki:Help/ExpertMode Expert Mode] is enabled
    44 * Open the [wiki:Help/Preferences/Advanced Advanced Preferences]
    45 * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/`
    46 * Select the preset you want to update
    47 * Click on Reset at the bottom of the window
    48 * Click on OK to save the changes (and to close the preference window)
    49 * Restart JOSM
     67== Updating Available presets in JOSM ==
     68Once a preset was updated in the wiki (or another external source) it takes up to 10 days until the preset gets updated in JOSM automatically. To immediately force an update you can do the following steps:
     691. Open the [wikitr:/Help/Action/Preferences Preferences]
     701. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled
     711. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences]
     721. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources)
     731. Select the preset you want to update
     741. Click on Reset at the bottom of the window
     751. Click on OK to save the changes (and to close the preference window)
     761. Restart JOSM
     77
     78or:
     79
     801. Remove the content of your [wikitr:/Help/Action/About#InstallationDetails <josm.cache>] folder
     811. Restart JOSM
    5082
    5183
    52 == Presets managed in JOSM wiki ==#List
     84== Available presets managed in the JOSM wiki ==#List
    5385[[TitleIndex(Presets/)]]
    5486
    5587
    5688----
    57 Back to [wiki:/Help main help][[BR]]
    58 Back to [wiki:Help/Menu/Presets Presets menu]
     89Back to [wikitr:/Help/Menu/Presets Presets Menu] \\
     90Back to [wikitr:/Help Main Help]