allow linking when property parser function has multiple results
Closed, DuplicatePublic

Description

When a property parser function call returns multiple items make it possible to link them.


Version: master
Severity: major
Whiteboard: u=dev c=backend p=0
See Also:
T50742: Need a way to turn wikidata item references into wiki links on the client.

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz46788.
Lydia_Pintscher created this task.Via LegacyApr 2 2013, 2:28 PM
eranroz added a comment.Via ConduitApr 15 2013, 2:54 PM

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

Lydia_Pintscher added a comment.Via ConduitMar 14 2014, 11:58 AM

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.

hoo added a comment.Via ConduitJul 16 2014, 3:35 PM

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?

Lydia_Pintscher added a comment.Via ConduitJul 24 2014, 8:56 AM

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.

aude added a comment.Via ConduitJul 24 2014, 11:15 AM

what is the parameter?

hoo added a comment.Via ConduitJul 24 2014, 11:21 AM

(In reply to Aude from comment #5)

what is the parameter?

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

Lydia_Pintscher added a project: Wikidata.Via WebDec 1 2014, 2:41 PM
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
matej_suchanek edited the task description. (Show Details)Via WebJun 5 2015, 12:49 PM
matej_suchanek set Security to None.
matej_suchanek edited the task description. (Show Details)

Add Comment