Opened 3 years ago

Last modified 3 years ago

#20667 new enhancement

How to handle external presets/rules/styles on the wiki for different JOSM versions?

Reported by: skyper Owned by: stoecker
Priority: normal Milestone:
Component: Trac Version:
Keywords: max min version external style preset rule Cc:


Some nice enhancement for external presets were added recently, like r17662.

I know that I can use min_version and max_version but how can I nicely handle this situation on trac without creating a new page, e.g. a new preset/rule/style.

I want to keep the history and an easy and smooth upgrade for the user.

Is it possible to add two code blocks, one with max_version and one with min_version?

Attachments (0)

Change History (2)

in reply to:  description comment:1 by Klumbumbus, 3 years ago

For styles and rules you can use @supports. For presets there is no such feature yet afaik.

Replying to skyper:

I know that I can use min_version and max_version.

Do you mean in the meta section of e.g. styles? I don't know if that is even evaluated or "just for -human readable- information"

comment:2 by skyper, 3 years ago

Thanks, well it is only about presets, then.
So far, I thought min_version and max_version in meta are evaluated before loading, but I have to check this.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain stoecker.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from stoecker to the specified user.
Next status will be 'needinfo'. The owner will be changed from stoecker to skyper.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from stoecker to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.