New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tag image with a value File: #9723
Comments
As far as I know, setting That said, iD should indicate when the field’s valid is malformed. To accomplish that, this field JSON should include a I don’t think it would be necessary to perform full URL validation in order to avoid the mistakes you found, but that could happen in this function, by trying to initialize a Lines 368 to 382 in c4d1390
If the user attempts to enter a malformed value – one that doesn’t match the pattern – the field will be highlighted in red. That should be enough to prompt the user to either convert the value to a URL or move the value to the Wikimedia Commons Page field. As an additional step, we could implement a validator rule similar to the one for e-mail addresses, which results in a warning banner that counts against your How Did You Contribute permanent record if you ignore it. This validator warning can come with a button that moves the value to iD/modules/validations/invalid_format.js Lines 11 to 18 in c4d1390
However, before we take a step like that, the community first needs to reach a consensus about whether
I used OSMCha to find Footnotes
|
Description
Hi,
A few days ago, I removed the tag image because the link "File:nnn.jpg" didn't work on iD : on the left, I expanded the Field, clicked on the arrow next to the value of the image tag and nothing happened.
Then some days later, I found many other similar cases so I looked at the wiki and see that image=File:... is a simple syntax of wikimedia_commons tag : https://wiki.openstreetmap.org/wiki/Key:image
I feel terribly sorry for my change, I don't remember on which element I made this so I cannot restore the image.
The wiki page tells us that image is not a good tag for many reasons. Except in one case : when the value is "File:...".
According to overpass https://overpass-turbo.eu/s/1wSe, there are more than 24000 elements with these tags/links.
Could you improve the link when the value is "File:..." by automatically adding "https://commons.wikimedia.org/wiki/" like with the tag wikimedia_commons ?
Best regards
Screenshots
No response
The text was updated successfully, but these errors were encountered: