Last modified: 2013-05-21 13:59:19 UTC
It should be possible to get the label in a given language. This would be useful for templates and similar things, but also for discussion in general where it would be possible to write out labels for items. See also https://www.wikidata.org/wiki/Wikidata:Project_chat#Localized_links_to_items
https://gerrit.wikimedia.org/r/51977
The changeset implements {{link:q1}}, {{label:q1}} and {{description:q1}} with optional language specifiers. If the language specifiers are not used the global fallbacks are used. The parser functions will generate a link like in recent changes, or a html-representation of a label or a description. It could be interesting to have a parser function that will link to a site through its sitelink in the item, that is not implemented. Purpose is for use on ordinary wikipages on the repo, not on the client. How to look up the item from the prefixed id is somewhat different from the client. There is another bug about getting the number of sitelinks. That is not considered here, that is more about statistics for the item.
Remember to add items like link as it is done at line 362 in https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/ParserFunctions.git;a=blob;f=ParserFunctions_body.php;hb=HEAD
This needs a design pass. The problem needs a solution, but we shouldn't introduce yet another syntax for data access.
This can be done with template using LUA.