Page MenuHomePhabricator

Provide a parser / Lua function to format an entity
Open, Needs TriagePublic

Description

Wikidata and several other projects have used templates to link to Wikidata items and properties. This way, you make links to Wikidata entities from project pages look the same way as on special pages like watchlist, recent changes etc. The output is a link to the entity with a text like label (Q123). For items and properties, this is equally simple because you only need to make a Lua call to fetch the label. However, there may be other types of entites which have a more complex "label".

For Lexemes, the "interface" way of linking to them is being established in T195382. Instead of having to reimplement this on Wikidata and other wikis, couldn't the formatters be added to Wikibase-Lua API and/or parser functions?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 5 2018, 6:53 PM
Vvjjkkii renamed this task from Provide a parser / Lua function to format an entity to 2kbaaaaaaa.Jul 1 2018, 1:05 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from 2kbaaaaaaa to Provide a parser / Lua function to format an entity.Jul 1 2018, 8:28 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.