Template:Area WD/doc

Shows the area of a place, according to Wikidata.

Usage
, without arguments, will show the area of the current article subject.

, will show the area 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:, for example km2 (default), sqmi, acre, scyd or sqfoot.

The template is mainly intended for tables showing the area of several geographical regions. A logged-in user will see a clickable pencil next to the area value, which 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.

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: km2 shows the area 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: gives the area of São Paulo: km2.

gives the area of São Paulo (state):.

Redirect
The redirection page Sao Paulo, Brazil also works: gives:.

Qid code
Another option is to use the qid code of. This however makes the wikicode less comprehensible, but is useful if the place has a wikidata item but no Wikipedia article: which gives:.

Other units
Area units that are accepted by can be used in the second unnamed parameter, for example which gives: acres. gives:  square miles. gives: square yard. gives: km2.