Changes between Version 165 and Version 166 of Presets


Ignore:
Timestamp:
2021-01-18T23:37:36+01:00 (4 years ago)
Author:
skyper
Comment:

Little more context and change to numerical listings.

Legend:

Unmodified
Added
Removed
Modified
  • Presets

    v165 v166  
    3434}}}
    3535=== 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:
     36In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets].
     37 I. go to https://josm.openstreetmap.de/wiki/Presets/MyPresetName
     38  A. change the URL so it matches the name of your preset; change only the last part after `...Presets/`, (preferred is CamelCase)
     39  a. press `Enter` after adjusting the name
     40 1. click 'create this page'
     41 1. add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick]
     42 1. don't forget to enclose your preset code by a code block (`#!preset` needs to be on a **new line** after `{{{`):
     43  1. `{{{`
     44  1. `#!preset`
     45  1. `<?xml version="1.0" encoding="UTF-8"?>`
     46  1. ...
     47  1. `}}}`
     48 1. save the wiki page
     49 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically
     50 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable:
    4951  * {{{[[revision]]}}} - is the latest version number of the wiki page
    5052  * {{{[[date]]}}} - is the date of the last edit of the wiki page
    5153  * recommended usage: {{{version="1.[[revision]]_[[date]]"}}} (converts to e.g. {{{1.13_2019-02-24}}})
    5254  * this is required for an automatic update within JOSM
     55
    5356=== 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.
     57A new externally hosted preset URLs can be published by editing [wikitr:/PresetsSource this page]. \\
     58**Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported.
    5659
    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.
     60=== Icon handling in Available presets ===#IconHandling
     61See [wikitr:/Styles#Iconhandling] for a description how attached files and icons are handled.
    5862
    5963
    6064== Updating Available presets in JOSM ==
    6165Once 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
     661. Open the [wikitr:/Help/Action/Preferences Preferences]
     671. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled
     681. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences]
     691. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources)
     701. Select the preset you want to update
     711. Click on Reset at the bottom of the window
     721. Click on OK to save the changes (and to close the preference window)
     731. Restart JOSM
    7074
    7175or:
    7276
    73 * Remove the content of your [wikitr:/Help/Action/About#InstallationDetails <josm.cache>] folder
    74 * Restart JOSM
     771. Remove the content of your [wikitr:/Help/Action/About#InstallationDetails <josm.cache>] folder
     781. Restart JOSM
    7579
    7680
     
    8084
    8185----
    82 Back to [wikitr:/Help main help][[BR]]
    83 Back to [wikitr:/Help/Menu/Presets Presets menu]
     86Back to [wikitr:/Help/Menu/Presets Presets Menu] \\
     87Back to [wikitr:/Help Main Help]