Opened 5 years ago
Last modified 5 years ago
#19022 closed enhancement
Tagging presets: More flexible "preset_link" — at Initial Version
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 20.05 |
Component: | Core | Version: | |
Keywords: | template_report tagging preset link | Cc: |
Description
- I would like to be able to place a link everywhere in the preset and not just at the bottom
- Additionally, I would like to change the text similar to
<optional>
What steps will reproduce the problem?
- Have a
<preset_link preset_name="Tower" text="DESCRIPTION" inline="true" \>
at the top of an<item>
- Additional have a
<preset_link preset_name="Address" \>
at the bottom of the item
What is the expected result?
- A
<label \>
withtext="DESCRIPTION"
and link to "Tower" preset at top. - The link to "Address" preset with default label at the bottom
What happens instead?
Both links at the bottom (text
and inline
fictional)
Please provide any additional information below. Attach a screenshot if possible.
I tried to work with it but failed. See screenshot and code below.
<item name="Big Communication Tower" icon="presets/landmark/Communication_tower-14.svg" type="node,closedway,multipolygon" preset_name_label="true"> <link wiki="Tag:man_made=communications_tower" /> <space /> <label text="Big communication tower, usually over 100 meters high." /> <label text="Use Tower for smaller ones:" /> <preset_link preset_name="Tower" /> <space /> <key key="man_made" value="communications_tower" /> <multiselect key="tower:type" text="Type of tower" values_sort="false" default="communication" rows="3"> <list_entry value="communication" display_value="Communication tower" icon="presets/landmark/Tower_cantilever_communication.svg" /> <list_entry value="watchtower" display_value="Watch tower" icon="presets/landmark/Tower_observation.svg" /> </multiselect> <reference ref="tower_construct" /> <reference ref="optional_public_building" /> <preset_link preset_name="Contact (Common Schema)" /> <preset_link preset_name="Address" /> </item> <!-- Big Communication Tower -->
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-03-31 20:51:44 +0200 (Tue, 31 Mar 2020) Revision:16222 Build-Date:2020-04-01 01:30:45 URL:https://josm.openstreetmap.de/svn/trunk
Note:
See TracTickets
for help on using tickets.
screenshot of broken preset