Changes between Version 165 and Version 176 of Presets


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

Legend:

Unmodified
Added
Removed
Modified
  • Presets

    v165 v176  
    55[[JOSMImage(dialogs/propertiesdialog,48,link=,margin-right=20,margin-bottom=10,middle,left)]]
    66
    7  ''If you want to learn installation steps for presets, see [wikitr:/Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings]''[[br]]
    8  ''If you want to extend presets with your own see - [wikitr:/TaggingPresets TaggingPresets]''[[br]]
    9  ''If you want to publish a new item to the list below - [#PublishanewAvailablepresetsitem follow the instructions below the list]''
     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]''
    109
    1110[[PageOutline(2-10,Table of contents)]]
     11 \\
    1212
    1313== What are presets? ==
     
    1616There are three types of Presets available to you in JOSM. Adding or removing any of these items requires restarting JOSM.
    17171. 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.
    18 1. JOSM user-community created (and published) **Available presets**, which can be enabled through the [wikitr:/Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings]. The full list of these Available presets, and how to publish a new one you create, appears below.
    19 1. **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/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings] menu, either by URL, or by filename on your local filesystem. The format of a Custom Tagging Presets .xml file appears at [wikitr:/TaggingPresets TaggingPresets].
     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].
    2020
    2121== JOSM Available presets ==
     
    2828}}}
    2929See [wikitr:/TaggingPresets] for the syntax of customized preset files. Be sure to validate a preset file before publishing it!
     30
    3031{{{
    3132#!comment
    3233Note for translators:
    33  - 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.
    3435}}}
     36
    3537=== JOSM wiki Available preset (preferred method) ===
    36 * In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets].
    37  * i.e. go to https://josm.openstreetmap.de/wiki/Presets/MyPresetName (Change the URL so it matches the name of your preset. Change only the last part after `...Presets/`.)
    38  * click 'create this page'
    39  * add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick]
    40  * don't forget to enclose your preset code by a code block (`#!preset` needs to be on a new line after `{{{`):
    41   * `{{{`
    42   * `#!preset`
    43   * `<?xml version="1.0" encoding="UTF-8"?>`
    44   * ...
    45   * `}}}`
    46  * save the wiki page
    47  * after a few minutes the new wiki preset will show up in the list and in JOSM automatically
    48  * for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable:
    49   * {{{[[revision]]}}} - is the latest version number of the wiki page
    50   * {{{[[date]]}}} - is the date of the last edit of the wiki page
    51   * recommended usage: {{{version="1.[[revision]]_[[date]]"}}} (converts to e.g. {{{1.13_2019-02-24}}})
     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  {{{
     46  {{{
     47  #!preset
     48  <?xml version="1.0" encoding="UTF-8"?>
     49  ...
     50  }}}
     51  }}}
     52 1. save the wiki page
     53 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically
     54 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable:
     55  * `[[revision]]` - is the latest version number of the wiki page
     56  * `[[date]]` - is the date of the last edit of the wiki page
     57  * recommended usage: `version="1.[[revision]]_[[date]]"` (converts to e.g. `1.13_2019-02-24`)
    5258  * this is required for an automatic update within JOSM
     59
    5360=== Externally hosted Available preset ===
    54 * A new externally hosted preset URLs can be published by editing [wikitr:/PresetsSource this page].
    55  * **Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported.
     61A new externally hosted preset URLs can be published by editing [wikitr:/PresetsSource this page]. \\
     62**Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported.
    5663
    57 See [wikitr:/Styles#CreateStyle] for a description how the JOSM wiki helps to create own styles or presets and how attached files and icons are handled.
     64=== Icon handling in Available presets ===#IconHandling
     65* See [wikitr:/Styles#Icons] for a description how attached files and icons are handled.
     66* Empty image paths like `icon=""` are not allowed.
    5867
    5968
    6069== Updating Available presets in JOSM ==
    6170Once 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:
    62 * Open the [wikitr:/Help/Action/Preferences Preferences]
    63 * Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled
    64 * Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences]
    65 * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources)
    66 * Select the preset you want to update
    67 * Click on Reset at the bottom of the window
    68 * Click on OK to save the changes (and to close the preference window)
    69 * Restart JOSM
     711. Open the [wikitr:/Help/Action/Preferences Preferences]
     721. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled
     731. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences]
     741. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources)
     751. Select the preset you want to update
     761. Click on Reset at the bottom of the window
     771. Click on OK to save the changes (and to close the preference window)
     781. Restart JOSM
    7079
    7180or:
    7281
    73 * Remove the content of your [wikitr:/Help/Action/About#InstallationDetails <josm.cache>] folder
    74 * Restart JOSM
     821. Remove the content of your [wikitr:/Help/Action/About#InstallationDetails <josm.cache>] folder
     831. Restart JOSM
    7584
    7685
    7786== Available presets managed in the JOSM wiki ==#List
    78 [[TitleIndex(Presets/)]]
     87[[TitleIndexTr(Presets/)]]
    7988
     89Outdated and disabled:
     90
     91[[TitleIndexTr(HistoricPresets/)]]
    8092
    8193----
    82 Back to [wikitr:/Help main help][[BR]]
    83 Back to [wikitr:/Help/Menu/Presets Presets menu]
     94Back to [wikitr:/Help/Menu/Presets Presets Menu] \\
     95Back to [wikitr:/Help Main Help]