allow linking when property parser function has multiple results


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:

bzimport added a subscriber: wikidata-bugs.
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)

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: wikidata-bugs.
Lydia_Pintscher removed a subscriber: wikidata-bugs.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.