magnusmanske / listeria_rs

Repo for the Wikimedia Listeria bot
https://listeria.toolforge.org/
23 stars 6 forks source link

get units #89

Open SimonVilleneuvewp opened 2 years ago

SimonVilleneuvewp commented 2 years ago

Hi,

Do is it possible to get units of values in the table ? As an example, can I get the units for the "distance" and "masse" fields here : https://fr.wikipedia.org/wiki/Discussion:Liste_des_trous_noirs_les_plus_massifs#Liste_Wikidata

jowis commented 2 years ago

Same issue here: List of volcanos in the Xarrotxa Volcanic Field.

pere-prlpz commented 1 week ago

@SimonVilleneuvewp @jowis

It is possible to get units via query, but it's complicated. You can find an example in https://ca.wikipedia.org/w/index.php?title=Llista_de_top%C3%B2nims_de_la_Vall_de_Bo%C3%AD&oldid=33886802

It is also possible to get all values in the same unit (normalised values). An example https://ca.wikipedia.org/w/index.php?title=Llista_dels_edificis_m%C3%A9s_alts_de_Chicago&oldid=33699267

However, I agree that having ListeriaBot returning values with their units would be a nicer and simpler solution.