e.g. population on Hitchwiki
this seems like a good option
✅ Option 1: Wikidata Infobox / Wikibase Client Parser Functions
If your MediaWiki has the Wikibase Client extension enabled, you can use parser functions to fetch data from Wikidata directly, without Lua.
Example using {{#statements:}} parser function:
{{#statements:P1082|from=Q90}}
P1082 is the Wikidata property for population.
Q90 is the Wikidata item ID for Paris.
🔹 This will output the latest population value from Wikidata.
Note: This syntax works if the Wikibase Client extension and its parser functions are correctly enabled in your MediaWiki installation.
e.g. population on Hitchwiki
this seems like a good option
1st step: https://www.mediawiki.org/wiki/Wikibase/Installation