Last modified: 2014-07-23 17:16:54 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 T56275, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54275 - put a link to the entity's concept URI into the toolbox
put a link to the entity's concept URI into the toolbox
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Low minor (vote)
: ---
Assigned To: Wikidata bugs
: easy, need-volunteer
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-18 14:18 UTC by Daniel Kinzler
Modified: 2014-07-23 17:16 UTC (History)
7 users (show)

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


Attachments

Description Daniel Kinzler 2013-09-18 14:18:16 UTC

    
Comment 1 Daniel Kinzler 2013-09-18 14:19:06 UTC
So, on the page about Q17, there would be a link in the toolbox to http://www.wikidata.org/entity/Q17
Comment 2 karan 2014-03-14 11:44:48 UTC
I could not find the page. Please help me.
Comment 3 Andre Klapper 2014-03-14 12:12:37 UTC
Karan: I don't know what you tried and which "page" you could not find. Please provide clear and explicit steps. If you have a specific question, ask it (also see http://catb.org/~esr/faqs/smart-questions.html ). Thanks!
Comment 4 Alex Monk 2014-07-20 17:38:41 UTC
Would WikibaseRepo::getDefaultInstance()->getRdfBaseURI() . $title->getPrefixedText() be the right way to generate this URI?
Comment 5 Daniel Kinzler 2014-07-22 10:44:57 UTC
No. The mediawiki namespace is not part of the canonical URI, so please use $title->getDBKey() instead of $title->getPrefixedText(). That should work for now, though it's not really nice.

Ideally, the URI would be generated from an EntityId, not from a Title object. That would require us to put the entity id into ParserOutput (using setExtensionData), and then copy it over to the OutputPage (using setProperty), using the appropriate hooks... If you want to look into that too, great :)
Comment 6 Gerrit Notification Bot 2014-07-22 14:06:34 UTC
Change 148376 had a related patch set uploaded by Alex Monk:
Put a link to the entity's canonical URI in the toolbox

https://gerrit.wikimedia.org/r/148376
Comment 7 Gerrit Notification Bot 2014-07-23 17:15:32 UTC
Change 148376 merged by jenkins-bot:
Put a link to the entity's concept URI in the toolbox

https://gerrit.wikimedia.org/r/148376

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


Navigation
Links