Difference between revisions of "Template:Coord-doc-dim"

From MediaWiki
Jump to: navigation, search
m (Close <code> properly)
 
m (1 revision)
 

Latest revision as of 00:27, 15 February 2015

The dim: parameter defines the diameter of a viewing circle centered on the coordinate. While the default unit of measurement is metres, the km suffix may be appended to indicate kilometres.

GeoHack uses dim: to select a map scale such that the viewing circle appears roughly {{safesubst:#invoke:convert|convert}} in diameter on a 72 dpi computer monitor. If no dim:, type:, or scale: parameters are provided, GeoHack uses its default viewing circle of {{safesubst:#invoke:convert|convert}}.

Samples
Subject View diameter Markup Result
Western Hemisphere {{safesubst:#invoke:convert|convert}} {{coord|0|N|90|W|dim:10000km}} coord}}{{#if: N|90|W|dim:10000km {{#switch: inline,title inline, title it t title,inline title={{#switch:Coord-doc-dim doc testcases= #default={{#switch:
 {{#if: 
{{{demospace}}} Template talk talk other
   }} 
 }}
talk = other #default = primary

}}

 }}
#default=
}}
name=

}} }}

Ohio {{safesubst:#invoke:convert|convert}} {{coord|40.5|-82.5|dim:400km}} coord}}{{#if: -82.5|dim:400km {{#switch: inline,title inline, title it t title,inline title={{#switch:Coord-doc-dim doc testcases= #default={{#switch:
 {{#if: 
{{{demospace}}} Template talk talk other
   }} 
 }}
talk = other #default = primary

}}

 }}
#default=
}}
name=

}} }}

Dresden {{safesubst:#invoke:convert|convert}} {{coord|51.033|13.73|dim:20000}} coord}}{{#if: 13.73|dim:20000 {{#switch: inline,title inline, title it t title,inline title={{#switch:Coord-doc-dim doc testcases= #default={{#switch:
 {{#if: 
{{{demospace}}} Template talk talk other
   }} 
 }}
talk = other #default = primary

}}

 }}
#default=
}}
name=

}} }}

Statue of Liberty {{safesubst:#invoke:convert|convert}} {{coord|40.6892|-74.0445|dim:100}} coord}}{{#if: -74.0445|dim:100 {{#switch: inline,title inline, title it t title,inline title={{#switch:Coord-doc-dim doc testcases= #default={{#switch:
 {{#if: 
{{{demospace}}} Template talk talk other
   }} 
 }}
talk = other #default = primary

}}

 }}
#default=
}}
name=

}} }}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox