Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT] Support langs single template #1625

Closed
BoboTiG opened this issue Jan 19, 2023 · 5 comments · Fixed by #1626 or #1647
Closed

[IT] Support langs single template #1625

BoboTiG opened this issue Jan 19, 2023 · 5 comments · Fixed by #1626 or #1647
Assignees

Comments

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 19, 2023

Wikicode:

{{it}}

Let's see if we can use an API instead of fetching/parsing https://it.wiktionary.org/wiki/Categoria:Template_lingua_testo.

@BoboTiG
Copy link
Owner Author

BoboTiG commented Jan 19, 2023

Here is the API.

@BoboTiG
Copy link
Owner Author

BoboTiG commented Jan 19, 2023

OK, I may have used the wrong list.

For instance, {{ang}} returns inglese when anglosassone is awaited (https://it.wiktionary.org/wiki/Danimarca).

@BoboTiG BoboTiG reopened this Jan 19, 2023
@BoboTiG
Copy link
Owner Author

BoboTiG commented Jan 19, 2023

Another issue: {{gem}} is not in the current list were germanico is awaited (https://it.wiktionary.org/wiki/Gilberto).

@BoboTiG BoboTiG removed their assignment Jan 19, 2023
@lasconic
Copy link
Collaborator

lasconic commented Jan 19, 2023

it -> italiano is hardcoded in the template : https://it.wiktionary.org/w/index.php?title=Template:it&action=edit
I doubt we will find an API for that.

But if we end up using the API and caches, we could use "parse" or "expandtemplate" and save a bit of work on the render step :-)

@BoboTiG
Copy link
Owner Author

BoboTiG commented Jan 20, 2023

I'll go with the fetch/parse of all those pages then.

But if we end up using the API and caches, we could use "parse" or "expandtemplate" and save a bit of work on the render step :-)

If you have ideas, we can do all what we want ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants