Module:Infobox dim/doc explained

Code to convert information about physical size of objects into parameters for geohack or mapframes.

The following parameters describe the physical object size:

When producing scale or zoom, module can use size of object on screen specified via or . Defaults to 10cm, to match geohack.

In addition, the module can accept and convert between geohack parameters:

Usage

<nowiki>{{</nowiki>#invoke:Infobox dim|dim<nowiki>}}</nowiki>
  • Generates dim string (e.g, "24km") suitable for geohack link
    <nowiki>{{</nowiki>#invoke:Infobox dim|scale<nowiki>}}</nowiki>
  • Generates scale (e.g, 100000) suitable for geohack link
    <nowiki>{{</nowiki>#invoke:Infobox dim|zoom<nowiki>}}</nowiki>
  • Generates Open Street Map zoom level (e.g, 12) suitable for use in mapframes