Module talk:DescriptionFromDataItem

From OpenStreetMap Wiki
Jump to navigation Jump to search

Closed ways

Why add an icon for onClosedWay? It was disfavoured at Template talk:ValueDescription#Closed_way_icon.--Andrew (talk) 17:24, 30 December 2018 (UTC)

Andrew, where do you see an icon on closed way? The only check for it is to create a Category:Obsolete description template parameters -- so that it can be removed (I might remove it using a bot if everyone is ok with it). --19:19, 30 December 2018 (UTC)
That is fine.--Andrew (talk) 20:30, 30 December 2018 (UTC)

P11 (Proposal discussion) -> statuslink not working

Resolved: Not a bug, but a human error. :) --SelfishSeahorse (talk) 06:38, 10 April 2019 (UTC)

The adoption of proposal discussion (P11) for statuslink in {{KeyDescription}} and {{ValueDescription}} does not work. --SelfishSeahorse (talk) 20:07, 9 April 2019 (UTC)

@SelfishSeahorse: please be a bit more specific. The Pl:Key:bridge:movable shows a link to the proposal discussion, without it being listed. I saw you were experimenting with shop=fashion_accessories (Q19528), i will see if it works correctly. --Yurik (talk) 20:53, 9 April 2019 (UTC)
@SelfishSeahorse:, fixed -- you used proposal discussion (P11) as a qualifier, but per data item docs, it should be used as a "reference" (e.g. proving that status is set correctly). I fixed it for you. Note that "add reference" only shows up in the status property. --Yurik (talk) 21:03, 9 April 2019 (UTC)
@Yurik:: Thank you for your help! --SelfishSeahorse (talk) 06:38, 10 April 2019 (UTC)

Linked tags break mismatch tooltip

@Yurik: If the wiki page and data item have differing descriptions, the module inserts a <span> with a tooltip containing the desc_mismatch message and the data item's formatted description. This formatted description needs to be sanitized; otherwise, links added during formatting can break the HTML tag, as seen on change=*. – Minh Nguyễn 💬 18:18, 19 April 2019 (UTC)

@Minh Nguyen: thx for the report. This one is a bit nasty -- template expansion "key:xxx" -> {{Key|xxx}} happens at the very last moment, right before passing the "description" parameter to the {{Description}} template. But the <span> gets added before that, which means the string "<span title="... key:xxx ..."> ... </span>" is expanded with templates at the last moment, thus breaking the key:xxx thing. One simple solution would be to not expand the keys/tags if the description is different, but it's not ideal. --Yurik (talk) 03:46, 21 April 2019 (UTC)
P.S. resolved with the above fix, still a todo for the future cleanup. --Yurik (talk) 03:55, 21 April 2019 (UTC)

Lua error: multiple tags in combination (?)

@Yurik: Based on my edits at DE:Key:restaurant and Item:Q646, I guess there is an error with {{KeyDescription}} when there are multiple tags/keys using property P46. Is that correct? --Tigerfell This user is member of the wiki team of OSM (Let's talk) 18:25, 11 August 2019 (UTC)

@Tigerfell: thanks, I fixed the code -- it never should have crashed, even on bad data. It now shows "bad item" for cases like that. I didn't want to hide it because then it would be much harder to notice and to fix. The reason - the value in combinations is not a key or a tag. --Yurik (talk) 16:05, 15 August 2019 (UTC)

Thanks, I would have never figured out that error. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 20:18, 15 August 2019 (UTC)

Resolved: Mateusz Konieczny (talk) 08:23, 26 October 2020 (UTC)


ValueDescription adding nonexisting category

See https://wiki.openstreetmap.org/wiki/Template_talk:ValueDescription#Why_Tag:waterway.3Driverbank_has_nonexisting_category.2C_appatently_added_by_this_template.3F - seems to be caused by this module Mateusz Konieczny (talk) 11:14, 18 October 2019 (UTC)

Resolved: Mateusz Konieczny (talk) 08:23, 26 October 2020 (UTC)


Add category listing English language pages loading content from data items

Please, see https://wiki.openstreetmap.org/wiki/Template_talk:KeyDescription#Add_category_listing_English_language_pages_loading_content_from_data_items for discussion Mateusz Konieczny (talk) 08:22, 26 October 2020 (UTC)

Remove P38?

Not sure what RENDER_IMAGE is doing, but https://wiki.openstreetmap.org/wiki/Property:P38 is marked as deprecated 19:09, 8 December 2020 (UTC)

The same for https://wiki.openstreetmap.org/wiki/Property:P27 that since 2018 is marked as soon to be deleted https://wiki.openstreetmap.org/w/index.php?title=Property:P27&diff=1758394&oldid=1758393 It still appears in code of this module Mateusz Konieczny (talk) 19:11, 8 December 2020 (UTC)

Always show button to edit wiki page

Currently in some cases only link to data item is displayed (such as at Key:waterway).

I propose to always show pencil linking data item and page in the edit mode Mateusz Konieczny (talk) 17:23, 10 December 2020 (UTC)

Why do you want to have this extra button? You can just click on Edit or Edit source at the very top. It actually does the same thing. --Tigerfell This user is member of the wiki team of OSM (Let's talk) 17:01, 29 December 2020 (UTC)