Skip to content

Sync article information with Wikipedia #26

@tillwenke

Description

@tillwenke

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.

1st step: https://www.mediawiki.org/wiki/Wikibase/Installation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions