Jump to content

Template:Location map-line/doc

From Wikipedia, the free encyclopedia

Example usage

[edit]

Latitude

[edit]
Code Result
{{Location map-line |lat=-30}}
Line across the Earth
30°
{{Location map-line |lat=60}}
Line across the Earth
60°
{{Location map-line |lat=0}}
{{Location map-line |lat=-90}}
Line across the Earth
90°
{{Location map-line |lat=90}}
Line across the Earth
90°
{{Location map-line |lat=91}} Error: Out of range.

Longitude

[edit]
Code Result
{{Location map-line |lon=-50}}
Line across the Earth
50°
{{Location map-line |lon=130}}
Line across the Earth
130°
{{Location map-line |lon=0}}
{{Location map-line |lon=180}}
{{Location map-line |lon=181}} Error: Out of range.

width and caption parameters

[edit]
Code Result
{{Location map-line |lon=0}}
{{Location map-line |lon=0 |width=400}}
{{Location map-line |lon=0 |caption=Test}}

No parameters

[edit]
Code Result
{{Location map-line}} WARNING You are using the {{location map-line}} template without proper parameters. If the text {{location map-line}} appears in the wiki markup, this is not the proper use of the location map-line template. Replace {{location map-line}} with {{location map-line|lat=[latitude]}} or {{location map-line|lon=[longitude]}}.
Line across the Earth
Equator (
<maplink>: The JSON content is not valid GeoJSON+simplestyle. The list below shows all attempts to interpret it according to the JSON Schema. Not all are errors.
  • /0/query: The property query is required
  • /0/ids: The property ids is required
  • /0: Failed to match at least one schema
  • /0/title: The property title is required
  • /0/service: The property service is required
  • /0: Failed to match exactly one schema
  • /0/type: Does not have a value in the enumeration ["ExternalData"]
  • /0/geometries: The property geometries is required
  • /0/type: Does not have a value in the enumeration ["GeometryCollection"]
  • /0/type: Does not have a value in the enumeration ["MultiPolygon"]
  • /0/type: Does not have a value in the enumeration ["Point"]
  • /0/type: Does not have a value in the enumeration ["MultiPoint"]
  • /0/type: Does not have a value in the enumeration ["LineString"]
  • /0/type: Does not have a value in the enumeration ["MultiLineString"]
  • /0/type: Does not have a value in the enumeration ["Polygon"]
  • /0/coordinates: The property coordinates is required
  • /0/geometry/geometries: The property geometries is required
  • /0/geometry/type: Does not have a value in the enumeration ["GeometryCollection"]
  • /0/geometry/type: Does not have a value in the enumeration ["MultiPolygon"]
  • /0/geometry/type: Does not have a value in the enumeration ["Point"]
  • /0/geometry/coordinates: There must be a minimum of 2 items in the array
  • /0/geometry/type: Does not have a value in the enumeration ["MultiPoint"]
  • /0/geometry/coordinates: Failed to match all schemas
  • /0/geometry/type: Does not have a value in the enumeration ["MultiLineString"]
  • /0/geometry/type: Does not have a value in the enumeration ["Polygon"]
  • /0/geometry: Failed to match exactly one schema
  • /0/geometry: Object value found, but a null is required
  • /0/features: The property features is required
  • /0/type: Does not have a value in the enumeration ["FeatureCollection"]
)

Both parameters

[edit]
Code Result
{{Location map-line|lat=34|lon=130}}
Line across the Earth
34°

Parameters

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Location map-line in articles based on its TemplateData.

TemplateData for Location map-line

No description.

Template parameters

ParameterDescriptionTypeStatus
latlat

no description

Unknownoptional
lonlon

no description

Unknownoptional
widthwidth

no description

Unknownoptional
captioncaption

no description

Unknownoptional

Tracking category

[edit]

Supporting templates and modules

[edit]