Difference between revisions of "Template:Infobox settlement/checkauto/doc"
Jump to navigation
Jump to search
imported>Plastikspork (+ some documentation) |
imported>Plastikspork (→Usage: Format) |
||
| Line 4: | Line 4: | ||
=== Usage === | === Usage === | ||
| − | <code><nowiki>{{infobox settlement/checkauto|DENSsqmi|POP|AREAsqmi}}</nowiki></code> | + | :<code><nowiki>{{infobox settlement/checkauto|DENSsqmi|POP|AREAsqmi}}</nowiki></code> |
| − | <code><nowiki>{{infobox settlement/checkauto|DENSkm2|POP|AREAkm2}}</nowiki></code> | + | or |
| + | :<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. | ||
Revision as of 22:08, 3 February 2010
| This is a documentation subpage for Template:Infobox settlement/checkauto. It contains usage information, categories and other content that is not part of the original template page. |
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
- {{infobox settlement}}
- {{infobox settlement/areadisp}}
- {{infobox settlement/densdisp}}
- {{infobox settlement/lengthdisp}}
- {{infobox settlement/permi2km2}}