Page refresh or Null edit required after SDC edit, as template {{location}} is not updated after a coordinate change is SDC.
Similar issues might exist for other templates that acts on SDC information.
Steps to replicate the issue :
- Start with a file with {{location}} template and corresponding matching SDC statement (P1259 coordinates of the point of view)
: As test this file can be used: https://commons.wikimedia.org/wiki/File:WLM_-_HenkvD.png
: Example {{location}1|2}} and P1259 coordinates of the point of view 1°N, 2°E
- change {{location}} to a different coordinate, for example {{location|1|3}}
:This will correctly give a yellow/orange warning like "There is a discrepancy of 111178 meters between the above coordinates and the ones stored at SDC (1°0′0″N 2°0′0″E, precision: 111000 m). Please reconcile them."
:This will correctly move the image into (hidden) Category:Pages with local camera coordinates and mismatching SDC coordinates
- Then update the SDC coordinate to match the {{location}}, by adding the new coordinate and removing the old (as far as I know it us not possible to change). End with Publish changes
- Then press the Tab "File information"
What happens?:
- The file information still shows yellow/orange warning like "There is a discrepancy of 111178 meters between the above coordinates and the ones stored at SDC (1°0′0″N 2°0′0″E, precision: 111000 m). Please reconcile them."
- the file is still into (hidden) Category:Pages with local camera coordinates and mismatching SDC coordinates
This clears with workaround: reloading the page by pressing the tab File both seem to be fixed.
What still happens?:
The file is still in hidden Category:Pages with local camera coordinates and mismatching SDC coordinates
See https://commons.wikimedia.org/w/index.php?title=Category:Pages_with_local_camera_coordinates_and_mismatching_SDC_coordinates&filefrom=WLM (for the example File:WLM_-_HenkvD.png )
This only clears with workaround: a NULL edit.
The file will remain in this category for a long time (months). I recently requested a bot to do a NULL edit on all files in this category (see https://commons.wikimedia.org/w/index.php?title=Commons:Bots/Work_requests&oldid=673806436#Null_edit )
What should have happened instead?:
The SDC edit (any edit) should refresh all info on the screen, including the category placement.
Mind: after an SDC edit you should still be on the same position on the SDC tab, to be able to make a second SDC edit.
PS: if first SDC is updated and then the {{location}} this works OK. This is not the practice as users typically only update the {{location}}. The SDC is only corrected afterwards (if at all).
Other information (browser name/version, screenshots, etc.):
I use Google Chrome as webbrowser