Last modified: 2014-07-24 11:21:10 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 T48788, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46788 - allow linking when property parser function has multiple results
allow linking when property parser function has multiple results
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
master
All All
: Normal major (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-02 14:28 UTC by Lydia Pintscher
Modified: 2014-07-24 11:21 UTC (History)
8 users (show)

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


Attachments

Description Lydia Pintscher 2013-04-02 14:28:32 UTC
When a property parser function call returns multiple items make it possible to link them.
Comment 1 Eran Roz 2013-04-15 14:54:55 UTC
Actually even for one result it isn't possible. {{#property}} returns the label in wikidata which isn't the same as the wiki title for article (for example in disambigs).

In hewiki we use Lua module to get the link target (=sitelink) of the property with the label as the link description.

you can see it in (getProperty function)
http://he.wikipedia.org/wiki/%D7%99%D7%97%D7%99%D7%93%D7%94:PropertyLink
Comment 2 Lydia Pintscher 2014-03-14 11:58:09 UTC
The only way I see how we can fix this is by giving the parser function an argument to tell it to return links instead of just labels.
Comment 3 Marius Hoch 2014-07-16 15:35:22 UTC
This bug has severity "major" for quite some time now... do we still want this (would require quite a bit of extra logic) or is Lua enough?
Comment 4 Lydia Pintscher 2014-07-24 08:56:44 UTC
We just discussed this. Conclusion: We want to have it as a parameter. The returned string should be wikitext with the individual labels linked to their sitelink targets on the same wiki.
Comment 5 Aude 2014-07-24 11:15:52 UTC
what is the parameter?
Comment 6 Marius Hoch 2014-07-24 11:21:10 UTC
(In reply to Aude from comment #5)
> what is the parameter?

I guess {{#property:P123|linked}} is the syntax we want.

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


Navigation
Links