Tagging presets: More flexible "preset_link"
- 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 \>
with text="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)
I tried to work with it but failed. See screenshot and code below. Look at the label on top with missing link.
<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
Change History
(10)
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Resolution: |
fixed
|
Status: |
closed → reopened
|
Resolution: |
→ fixed
|
Status: |
reopened → closed
|
screenshot of broken preset