Page MenuHomePhabricator

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.

Details

Reference
bz46788

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:35 AM
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)
http://he.wikipedia.org/wiki/%D7%99%D7%97%D7%99%D7%93%D7%94:PropertyLink

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.

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.

(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 updated the task description. (Show Details)