Page MenuHomePhabricator

OnThisDay: support Italian language
Closed, ResolvedPublic

Description

Introduce the Italian language on the /feed/onthisday/{type}/{mm}/{dd} API.

All the available types will be supported, with some limitations:

  • the "selected" type will always return an empty list, since the returned HTML can't be parsed using an XPath selector.
  • the "births" and "deaths" types will also be empty, since those information are not in the same page (https://it.wikipedia.org/wiki/Nati_il_27_luglio for births, for example)

Event Timeline

Change 525965 had a related patch set uploaded (by DavideAlberani; owner: DavideAlberani):
[mediawiki/services/mobileapps@master] OnThisDay API: support Italian language

https://gerrit.wikimedia.org/r/525965

Thank you for submitting the task and the patch!

Are you able to influence the format of the selected anniversaries page (e.g. https://it.wikipedia.org/wiki/Template:PaginaPrincipale%2FAttualita%2F25_luglio)? Without the selected portion filled out there I doubt the app would show the On this day entry very well.
If you or someone in the Italian WP community could agree to change the format to have the on this day entries in list items they could be parsed using something similar to `body > section li'.

thanks for the heads up, it makes sense!

Being my first contribution to Wikimedia, I don't feel confident enough to modify something that is show on the main page.

If someone can help, it would be great. I think what's needed is a mass-change of the https://it.wikipedia.org/wiki/Template:PaginaPrincipale/Attualita/ templates (or, maybe, it's https://it.wikipedia.org/wiki/Template:Pagina_principale/Attualit%C3%A0 that should be changed - I'm not sure).
Thanks!

Change 525965 abandoned by Mholloway:
OnThisDay API: support Italian language

Reason:
Closing as abandoned.

https://gerrit.wikimedia.org/r/525965

@DavideAlberani: I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action...Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding!

@DavideAlberani: I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!).

@Aklapper : sure, it's okay to reset the assignee.

I think my code still works (not tested in a long time), but as pointed by @bearND it makes little sense to merge it since the "selected" key could not be populated (the HTML can't be easily parsed).
I'll keep an eye on the template, and if it will change I'll try to update my code.

Obviously, any contribution is welcome.

Thanks.

Change 742171 had a related patch set uploaded (by Vadim Kovalenko; author: Vadim Kovalenko):

[mediawiki/services/wikifeeds@master] OnThisDay: support Italian language

https://gerrit.wikimedia.org/r/742171

Change 742171 merged by jenkins-bot:

[mediawiki/services/wikifeeds@master] OnThisDay: support Italian language

https://gerrit.wikimedia.org/r/742171