Andrei_Stroe added a comment.

Thanks, @Strainu for the praise and for letting me know of this discussion.
By now, we have many infoboxes that have been refactored into working both in parameter-less mode, and with local override.

I had to heavily enhance https://ro.wikipedia.org/wiki/Modul:Wikidata in order to make it expose some functions that provide exactly what is needed in an infobox starting from an item, such as getOneValue (returns one value from those with the highest rank), getOneValueNoRef (same without reference), getValueListWithSeparator, getTimestampedValueListWithSeparator, getDateValue, getPreferredValue.

An example of infobox that uses these functions is https://ro.wikipedia.org/wiki/Format:Infocaseta_Joc_video

Other infoboxes were rewritten in LUA, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_A%C8%99ezare and https://ro.wikipedia.org/wiki/Format:Infocaseta_Fotbalist

https://ro.wikipedia.org/wiki/Format:Infocaseta_Biografie was rewritten in LUA as a basic infobox for biographies (and takes multiple biographical data from Wikidata, such as birth date and place, occupation etc.). It can, however, be extended into more specific biography infoboxes, both in LUA, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_Om_politic for politicians and https://ro.wikipedia.org/wiki/Format:Infocaseta_Actor for actors; and with basic parameters, such as https://ro.wikipedia.org/wiki/Format:Infocaseta_Artist for painters and other visual artists.

I avoided creating infoboxes for use with Wikidata that are separate from those with specified parameters in order to push the move towards Wikidata. The only example of such infobox is https://ro.wikipedia.org/wiki/Format:Taxobox-wd (LUA-based, only works with Wikidata as a parameter-less infobox) that is different than https://ro.wikipedia.org/wiki/Format:Taxobox (which still works with parameters only) - this is a complex infobox in a field of which I know little (biological taxonomy), so I wanted to avoid intruding in such an area.

I hope this is useful, just tag me if there is more I can do in this area.


TASK DETAIL
https://phabricator.wikimedia.org/T76229

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Andrei_Stroe
Cc: Strainu, Andrei_Stroe, Base, RexxS, Tobias1984, WikedKentaur, VIGNERON, jeblad, Smalyshev, Wesalius, Lucie, Jonas, Aklapper, putnik, Prod, Ainali, HenkvD, ValterVB, Snipre, Liuxinyu970226, Lydia_Pintscher, hoo, D3r1ck01, Izno, Psychoslave, Wikidata-bugs, aude, TheDJ, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to