To format snak values with a link, the URL formatter (P1630) is retrieved and $1 is replaced by the snak value. For some properties (P213, P345, P502, P628, P882, P1323) this simple approach fails because further formatting has to be done to produce valid links. The rules of the additional formatting can be looked up in https://www.wikidata.org/wiki/MediaWiki:Gadget-AuthorityControl.js
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T173750 Handle complex data types | |||
Open | None | T148170 Handle URL formatting | |||
Open | None | T148173 IMDB links formatted incorrectly for suggested identifier |
Event Timeline
Comment Actions
Imported primary sources tool issue from GitHub: https://github.com/Wikidata/primarysources/issues/79
Comment Actions
A folk from my team is developing a script that enriches plain URL references of a dataset serialized in QuickStatements: https://github.com/EdoardoLenzi9/Wikipedia.StrepHit
It does take care of URL formatting, too.