Page MenuHomePhabricator

[feature] Provide a LUA or Parser function to query Cognate database
Open, LowPublic

Description

It is necessary a Lua function, or alternatively a parser function, basically answering the question "for xx language project does page foo exist?" For use case see https://en.wiktionary.org/wiki/Template:t and https://en.wiktionary.org/wiki/Template:t%2B. In Wiktionaries it is a common practice to add in translation tables an interwiki link to home language project for each translation. Currently, in major projects, a bot changes template:t to template:t+ but this is unaffordable for most projects and now it seems it can be done more effectively throught a query to Cognate.

Event Timeline

Vriullop created this task.Apr 24 2017, 7:48 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 24 2017, 7:48 PM

Is this a bug report or a feature request? Improving the task summary is welcome (like "Provide..." or "...not working").

Vriullop renamed this task from Lua function to query Cognate database to Provide a function to query Cognate database.Apr 25 2017, 7:44 AM
Vriullop updated the task description. (Show Details)
Addshore renamed this task from Provide a function to query Cognate database to Provide a LUA or Parser function to query Cognate database.Apr 27 2017, 4:07 PM
Addshore renamed this task from Provide a LUA or Parser function to query Cognate database to [feature] Provide a LUA or Parser function to query Cognate database.
Ltrlg added a subscriber: Ltrlg.Jun 11 2017, 7:46 PM
Addshore triaged this task as Low priority.Aug 31 2017, 10:51 AM

Hello @jberkel,

You mentioned this task during the feedback round about Cognate. Can you explain a bit more the use cases you see for that, meaning: what would you like to do with such a feature? How could it be helpful in your work?

By knowing more about the use cases, we can estimate better the implications of the feature and evaluate better its feasibility.

Legoktm added a subscriber: Legoktm.

Removing ParserFunctions since no modifications are likely to be made to that extension for this task.

Legoktm removed a subscriber: Legoktm.May 15 2018, 3:19 PM

@Lea_Lacroix_WMDE my main planned use case right now is T190210. Maybe it could also be used to automate the "See also" section at the top of the page (currently maintained manually with Template:also + bot).

Another use case would be to automatically link to other wikis in translation tables (Template:t+).

Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptJun 2 2019, 1:20 PM