Revision 5962687 of "Template:Get Austria population" on simplewiki

<!--
-===========================================
- Get_Austria_population: Count of residents
-===========================================
-->{{
#ifexpr: {{{key|901}}} > 0
  |{{Metadata population AT-{{padleft:|1|{{{key|901}}} }}|{{{key|901}}} }}
  |{{{defcount|-1}}}<!--
-->}}<!--endif {key} > 0
--><noinclude>

The '''Template:Get Austria population''' retrieves the population count of a location in [[Austria]] for key=nnnnn greater than zero, or else returns the number in the parameter defcount.

:: '''Usage:''' {&#123;Get Austria population|key=901|defcount=45000}}

The population count is returned without commas, so the number can be used within a calculation expression. To add commas, then use {&#123;formatnum:___}} around the template call.

The key=nnnn can be set by using <nowiki>{{Get Austria location code |name}}</nowiki>, where the ''name'' is the formal name of a city, town or district in the nation of [[Austria]].

==See also==
*[[Template:EWZ]] - Get population count
*[[Template:EWD]] - Get population as-of date
:(similar to [[German WP]] [[:de:Vorlage:EWZ]] & [[:de:Vorlage:EWD]])


[[Category:Wikipedia formatting and function templates]]
</noinclude>