Last modified: 2014-07-23 17:16:54 UTC
So, on the page about Q17, there would be a link in the toolbox to http://www.wikidata.org/entity/Q17
I could not find the page. Please help me.
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!
Would WikibaseRepo::getDefaultInstance()->getRdfBaseURI() . $title->getPrefixedText() be the right way to generate this URI?
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 :)
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
Change 148376 merged by jenkins-bot: Put a link to the entity's concept URI in the toolbox https://gerrit.wikimedia.org/r/148376