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


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 set Reference to bz46788.
bzimport added a subscriber: Unknown Object (MLST).

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)

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.Jul 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?

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.Jul 24 2014, 11:15 AM

what is the parameter?

hoo added a comment.Jul 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 removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
matej_suchanek set Security to None.
matej_suchanek edited the task description. (Show Details)

Add Comment