Proposal:Wikimedia Page IDs in OSM Tagging
| Wikimedia Page IDs in OSM Tagging | |
|---|---|
| Proposal status: | Proposed (under way) |
| Proposed by: | GA Kevin |
| Draft started: | 2025-07-25 |
| RFC start: | 2025-07-25 |
Proposal
Add Page ID as a valid and preferred way to link to wikimedia_commons=*.
Rationale
This solves the issue of multiple images representing the same OSM element, such as when a large feature (such as a mountain) has many angles that may want to be captured. Currently, this relies on a contributor or data consumer to create and link to a single category in Commons, which may not show the entire picture (such as "[Mountain] from [Nation]" categories where multiple would be valid and useful) This would be a simple URL reference change from https://commons.wikimedia.org/wiki/$1 to https://commons.wikimedia.org/w/index.php?curid=$1. This also alleviates (though does not eliminate) the character limit concern with long file or category tags as it simplifies it to a numerical values. It is also backwards compatible because with the Wikimedia API you can go either way depending on what you know:
Known: Page Name
Want: Page ID
https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=info&titles=File:Example.jpg&formatversion=2&origin=* in the "pageid" field.
Known: Page ID
Want: Page Name
https://commons.wikimedia.org/w/api.php?action=query&format=json&prop=imageinfo&iiprop=url&pageids=29281387&origin=* in the "title" field.
Examples
Mount Everest - wikimedia_commons=50526861;50526645;23753268;1810976
Features/Pages affected
All pages and features where the syntax of wikimedia_commons is mentioned.
External discussions
Comments
Please comment on the discussion page.