Template:Map scale/sandbox
Appearance
This is the template sandbox page for Template:Map scale (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
[edit]{{Map scale}} is used to generate the scale argument for geohack links. The template accepts a number of (optional) parameters that describe the physical dimensions of an object:
- length_mi
- length_km
- width_mi
- width_km
- area_mi2
- area_km2
- area_acre
- area_ha
The template can accept parameters that describe the size of the object on the screen: |viewport_cm=
or |viewport_px=
.
The template also accepts other geohack parameters to generate the scale argument:
- dim
- type (e.g., "mountain" or "city")
- population (for type="city" only)