Difference between revisions of "Template:Infobox settlement/checkauto/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Add ambox)
imported>Rich Farmbrough
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
{{ambox|text='''This subtemplate is not intended to be used directly'''}}
 
{{ambox|text='''This subtemplate is not intended to be used directly'''}}
This '''subtemplate of {{tl|Infobox settlement}}''' checks the inputs passed to {{tl|Infobox settlement/densdisp}} when the ''auto'' option is used.
+
This '''subtemplate of {{Tl|Infobox settlement}}''' checks the inputs passed to {{Tl|Infobox settlement/densdisp}} when the ''auto'' option is used.
  
 
=== Usage ===
 
=== Usage ===
:<code><nowiki>{{infobox settlement/checkauto|DENSsqmi|POP|AREAsqmi}}</nowiki></code>
+
:<code><nowiki>{{Infobox settlement/checkauto|DENSsqmi|POP|AREAsqmi}}</nowiki></code>
 
or
 
or
:<code><nowiki>{{infobox settlement/checkauto|DENSkm2|POP|AREAkm2}}</nowiki></code>
+
:<code><nowiki>{{Infobox settlement/checkauto|DENSkm2|POP|AREAkm2}}</nowiki></code>
  
where ''DENSsqmi'' is the density per square mile, ''DENSkm2'' is the density per square kilometer, ''POP'' is the population, ''AREAsqmi'' is the area in square miles, and ''AREAkm2'' is the area in square kilometers. See {{tl|Infobox settlement/densdisp}} for more details.
+
where ''DENSsqmi'' is the density per square mile, ''DENSkm2'' is the density per square kilometer, ''POP'' is the population, ''AREAsqmi'' is the area in square miles, and ''AREAkm2'' is the area in square kilometers. See {{Tl|Infobox settlement/densdisp}} for more details.
  
 
{| class="wikitable" border=1
 
{| class="wikitable" border=1
Line 15: Line 15:
 
!Result
 
!Result
 
|-
 
|-
|style="padding: 20px"|<code><nowiki>{{infobox settlement/checkauto|2|30|15}}</nowiki></code>
+
|style="padding: 20px"|<code><nowiki>{{Infobox settlement/checkauto|2|30|15}}</nowiki></code>
|style="padding: 20px"|{{infobox settlement/checkauto|2|30|15}}
+
|style="padding: 20px"|{{Infobox settlement/checkauto|2|30|15}}
 
|-
 
|-
|style="padding: 20px"|<code><nowiki>{{infobox settlement/checkauto|auto|30|15}}</nowiki></code>
+
|style="padding: 20px"|<code><nowiki>{{Infobox settlement/checkauto|auto|30|15}}</nowiki></code>
|style="padding: 20px"|{{infobox settlement/checkauto|auto|30|15}}
+
|style="padding: 20px"|{{Infobox settlement/checkauto|auto|30|15}}
 
|-
 
|-
|style="padding: 20px"|<code><nowiki>{{infobox settlement/checkauto|auto| |15}}</nowiki></code>
+
|style="padding: 20px"|<code><nowiki>{{Infobox settlement/checkauto|auto| |15}}</nowiki></code>
|style="padding: 20px"|{{infobox settlement/checkauto|auto| |15}}
+
|style="padding: 20px"|{{Infobox settlement/checkauto|auto| |15}}
 
|-
 
|-
|style="padding: 20px"|<code><nowiki>{{infobox settlement/checkauto|auto|30| }}</nowiki></code>
+
|style="padding: 20px"|<code><nowiki>{{Infobox settlement/checkauto|auto|30| }}</nowiki></code>
|style="padding: 20px"|{{infobox settlement/checkauto|auto|30| }}
+
|style="padding: 20px"|{{Infobox settlement/checkauto|auto|30| }}
 
|-
 
|-
|style="padding: 20px"|<code><nowiki>{{infobox settlement/checkauto|auto| | }}</nowiki></code>
+
|style="padding: 20px"|<code><nowiki>{{Infobox settlement/checkauto|auto| | }}</nowiki></code>
|style="padding: 20px"|{{infobox settlement/checkauto|auto| | }}
+
|style="padding: 20px"|{{Infobox settlement/checkauto|auto| | }}
 
|}
 
|}
  
 
=== See also ===
 
=== See also ===
*{{tl|infobox settlement}}
+
*{{TL|Infobox settlement}}
*{{tl|infobox settlement/areadisp}}
+
*{{TL|Infobox settlement/areadisp}}
*{{tl|infobox settlement/densdisp}}
+
*{{TL|Infobox settlement/densdisp}}
*{{tl|infobox settlement/lengthdisp}}
+
*{{TL|Infobox settlement/lengthdisp}}
*{{tl|infobox settlement/permi2km2}}
+
*{{TL|Infobox settlement/permi2km2}}
  
 
<includeonly>
 
<includeonly>

Revision as of 13:35, 15 July 2010

This subtemplate of {{Infobox settlement}} checks the inputs passed to {{Infobox settlement/densdisp}} when the auto option is used.

Usage

{{Infobox settlement/checkauto|DENSsqmi|POP|AREAsqmi}}

or

{{Infobox settlement/checkauto|DENSkm2|POP|AREAkm2}}

where DENSsqmi is the density per square mile, DENSkm2 is the density per square kilometer, POP is the population, AREAsqmi is the area in square miles, and AREAkm2 is the area in square kilometers. See {{Infobox settlement/densdisp}} for more details.

Code Result
{{Infobox settlement/checkauto|2|30|15}}
{{Infobox settlement/checkauto|auto|30|15}}
{{Infobox settlement/checkauto|auto| |15}}
{{Infobox settlement/checkauto|auto|30| }}
{{Infobox settlement/checkauto|auto| | }}

See also