Last modified: 2014-03-19 11:10:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T45003, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43003 - System for creating links to entities by their IDs within JavaScript
System for creating links to entities by their IDs within JavaScript
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Wikidata bugs
: need-volunteer
Depends on:
Blocks: 45675 43001 45674
  Show dependency treegraph
 
Reported: 2012-12-12 12:25 UTC by Daniel A. R. Werner
Modified: 2014-03-19 11:10 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel A. R. Werner 2012-12-12 12:25:30 UTC
In JavaScript, right now we can't easily generate links to entities for which we only know the ID. This is because we don't know the entity namespaces. We would need a map for entity prefixes and their namespaces, so we can generate links.
Comment 1 Daniel A. R. Werner 2012-12-12 12:27:11 UTC
Will this work? There shouldn't be any other implications (like we had with site-links) in generating a simple link to an entity. If we know the full name, we should be able to create a link to a local item in all cases.
Comment 2 denny vrandecic 2012-12-12 18:53:39 UTC
We need to ask for the label anyway, so we might also ask for the URI from the backend.
Comment 3 tobias.gritschacher 2012-12-13 16:46:24 UTC
https://gerrit.wikimedia.org/r/#/c/38534/
Comment 4 Daniel A. R. Werner 2012-12-21 10:26:29 UTC
This is not really done with 43003 (i.e. no duplicate), but 43003 could be done with this. We decided to solve 43003 differently though.

So this should remain open. Some functionality to cover this, for creating a link to any item of whom only the id is known, may or may not still be helpful e.g. for gadget developers.
Comment 5 tobias.gritschacher 2014-03-11 10:45:31 UTC
Since we are now generating the links using backend formatters, such a system is not needed anymore.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links