Template:Location map-line/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Example usage

[edit source]

Latitude

[edit source]
Code Result
{{Location map-line |lat=-30}}
30th parallel south (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -1800, -30 ], [ 1800, -30 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lat=60}}
60th parallel north (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -1800, 60 ], [ 1800, 60 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lat=0}}
Equator (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -1800, 0 ], [ 1800, 0 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lat=-90}}
90th parallel south (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -1800, -90 ], [ 1800, -90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lat=90}}
90th parallel north (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -1800, 90 ], [ 1800, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lat=91}} Error: Out of range.

Longitude

[edit source]
Code Result
{{Location map-line |lon=-50}}
50th meridian west (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ -50, -90 ], [ -50, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=130}}
130th meridian east (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 130, -90 ], [ 130, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=0}}
Prime meridian (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 0, -90 ], [ 0, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=180}}
180th meridian (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 180, -90 ], [ 180, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=181}} Error: Out of range.

width and caption parameters

[edit source]
Code Result
{{Location map-line |lon=0}}
Prime meridian (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 0, -90 ], [ 0, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=0 |width=400}}
Prime meridian (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 0, -90 ], [ 0, 90 ] ], "type": "LineString" } }</maplink>)
{{Location map-line |lon=0 |caption=Test}}
Test (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 0, -90 ], [ 0, 90 ] ], "type": "LineString" } }</maplink>)

No parameters

[edit source]
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]}}.
Equator (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ ], "type": "LineString" } }</maplink>)

Both parameters

[edit source]
Code Result
{{Location map-line|lat=34|lon=130}}
130th meridian east (<maplink zoom="1" text="interactive map" class="no-icon">{ "type": "Feature", "properties": { "stroke": "#f00" }, "geometry": { "coordinates": [ [ 130, -90 ], [ 130, 90 ] ], "type": "LineString" } }</maplink>)

Parameters

[edit source]
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 source]

Supporting templates and modules

[edit source]