Page MenuHomePhabricator

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

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

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.

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 subscribed.

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

@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+).

The French Wiktionary is also intested in such feature also to manage links in translation templates.

Izno changed the subtype of this task from "Task" to "Feature Request".Jan 26 2023, 9:25 AM