ਫਰਮਾ:Population density WD/doc
ਇਹ ਇੱਕ ਫਰਮਾ:Population density WD ਲਈ documentation ਉਪ ਸਫ਼ਾ ਹੈ। ਇਸ ਵਿੱਚ ਵਰਤੋਂ ਦੀ ਜਾਣਕਾਰੀ, ਸ਼੍ਰੇਣੀਆਂ ਅਤੇ ਹੋਰ ਸਮੱਗਰੀ ਜੋ ਮੂਲ ਦਾ ਹਿੱਸਾ ਨਹੀਂ ਹੈ, ਸ਼ਾਮਲ ਹੈ। ਫਰਮਾ page. |
Calculcates and shows the population density of a place, based on area and populaction numbers retrieved from Wikidata.
Usage
[ਸੋਧੋ]{{Population density WD}}, without arguments, will show the population density of the current article subject, default in inhabitants per km2.
{{Population density WD|<page title>}}, will show the population density of the Wikipedia article page title stated in the first unnamed parameter. The template does not use the Wikidata label. It also works if the article is moved, since it follows the redirect.
The second unnamed parameter states the unit: {{Population density WD|<page title>|<unit>}}, for example PD/km2 (default), PD/sqmi, PD/acre, PD/scyd or PD/sqfoot.
The template is mainly intended for tables showing the population density of several geographical regions. A clickable pen is shown next to the value to users that have logged in are auto-confirmed. The pen is helpful in finding out at which Wikidata page each value in the table can be edited, and where the citations and edit history of each data value can be found. The pen is hidden to other users to reduce the risk of vandalism.
A purpose of this template is to avoid advanced code in Wikipedia articles, by using a comprehensible property name and article title instead of pid and qid codes. However, the template may also be called with a parameter named qid.
Current article
[ਸੋਧੋ]Example:
{{Population density WD}} inhabitants per km<sup>2</sup>
shows the population per km2 of the current article subject.
Articles sharing the same Wikidata label
[ਸੋਧੋ]The template does not use the Wikidata label. These two places have the same label São Paulo:
{{Population density WD|São Paulo}} /km<sup>2</sup>
gives the population density of São Paulo: [convert: invalid number] /km2.
{{Population density WD|São Paulo (state)}}
gives the population density of São Paulo (state): [convert: invalid number].
Redirect
[ਸੋਧੋ]The redirect page Sao Paulo, Brazil does not have Wikidata item of its own. Then the template shows data for the redirect destination São Paulo:
{{Population density WD|Sao Paulo, Brazil}}
gives: [convert: invalid number].
Qid code
[ਸੋਧੋ]Another option is to use the qid code of (Qq174). This however makes the wikicode less comprehensible, but is useful if the place has a wikidata item but no Wikipedia article:
{{Population density WD|qid=q174}}
which gives: [convert: invalid number] .
Other units
[ਸੋਧੋ]Population density units that are accepted by {{convert}} can be used in the second unnamed parameter, for example
{{Population density WD|São Paulo|PD/acre}} acres
which gives: [convert: invalid number] acres.
{{Population density WD|São Paulo|PD/sqmi}} per square mile
gives: [convert: invalid number] per square mile.
{{Population density WD|São Paulo|/sqyd}} per square yard
gives: [convert: invalid number] per square yard.
{{Population density WD|São Paulo|PD/km2}} per km<sup>2</sup>
gives: [convert: invalid number] per km2 (default unit).
See also
[ਸੋਧੋ]- List of Brazilian states by population density (Example article)
- {{Get QID}}
- {{Area WD}}
- {{Population WD}}
- {{Convert}}
- {{Data/popdens}}
- {{Density}}
- {{Pop density}}