Last modified: 2013-07-03 13:16:31 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 T50742, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48742 - Need a way to turn wikidata item references into wiki links on the client.
Need a way to turn wikidata item references into wiki links on the client.
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 10:04 UTC by Daniel Kinzler
Modified: 2013-07-03 13:16 UTC (History)
5 users (show)

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


Attachments

Description Daniel Kinzler 2013-05-23 10:04:52 UTC
Let's say Q5 has property P11 which refers to Q23; Q5 is linked to local page [[Foo]] and has label "Foo", and Q23 is linked to local page [[The Thing (movie)]] and has label "The Thing".

Then, when using {{#property:P11}} on the page [[Foo]], the result should be The Thing (movie), not just The Thing, so this can be used as a link. 

Perhaps this should be optional: return labels, return titles, or return full links (using titles as the target and labels as the link text). 

It might be sufficient to cover this with Lua, but as far as I'm aware, this isn't currently possible with Lua either.
Comment 1 Matthew Flaschen 2013-06-01 02:27:33 UTC
It's also necessary to handle the case where there is no sitelink for that language.
Comment 2 denny vrandecic 2013-06-28 10:08:09 UTC
According to the documentation, you can use the Page function to access the sitelink. Described here: <http://www.mediawiki.org/wiki/Extension:WikibaseClient/Lua>
Comment 3 Aude 2013-06-28 10:25:15 UTC
https://test2.wikipedia.org/wiki/Atlanta for example works, creating a link like [[Georgia (U.S. state)|Georgia]] with lua.

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


Navigation
Links