Template:Demography/doc

Experimental template to add categories to author pages based on demographic information from Wikidata.

Usage
Categorisation should be automatic. To correct errors, edits should be made to the corresponding wikidata item. However, manual override is possible by direct parameters.

Sex or gender
Based on Wikidata property P21. Manual override parameter:

Sexual orientation
Based on Wikidata property P91. Manual override parameter:

Country of citizenship
Based on Wikidata property P27. Manual override parameter:

Uses the subroutine Template:Demography/nationality (currently limited to just a few test cases)

Where there are multiple values held on Wikidata, the template can read up to the first six values.

Religion
Based on Wikidata property P140. Manual override parameter:

NB: Currently won't work with multiple values

Possible errors and omissions
The behaviour of this template could be negatively affected by:


 * Lack of standardisation at Wikidata: Certain demographics can be handled in different ways. If usage is different from the usage expected by this template, it will not be picked up.
 * Label changes at Wikidata: This template uses the  magic word to return values.  If the labels of these values are changed at Wikidata, and this template is not also changed, it will cease to function properly.