govdirectory / website

Website repository for Govdirectory - a crowdsourced and fact-checked directory of official governmental online accounts and services.
https://govdirectory.org
Creative Commons Zero v1.0 Universal
48 stars 32 forks source link

Localize social media per country #154

Open Ainali opened 2 years ago

Ainali commented 2 years ago

The feature

Make a query for each country to figure out which social networks are most common, and use them as the top five in the lists. (Could this perhaps even be dynamic?)

Why?

It was pointed out during CEE online meeting that it looked like our selection had a western point of view and that completely different social media might be more used in other countries.

Examples and inspiration

No response

Abbe98 commented 2 years ago

We could introduce a new option into the countries query where a comma-separated list of properties could make those "prioritized".

If for example VKontakte and TikTok would be very important networks in Greenland we could make those prioritized like so:

(wd:Q223 'Greenland' 'greenland' 'Current content only includes municipalities.', 'P3185,P7085')

One can then fall back to our default ones until one has populated five networks.

https://github.com/govdirectory/website/blob/fb2f7e6b5cf4cb7613582fe9969311204c6a1664/queries/countries.rq#L12-L15

The social-icons.html template would also then need to take the country not account but it should be rather straightforward.

https://github.com/govdirectory/website/blob/main/templates/components/social-icons.html