Difference between revisions of "Module:Location map/data/New Zealand transparent/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
m (Frietjes moved page Template:Location map New Zealand transparent to Module:Location map/data/New Zealand transparent/doc: preserve history for attribution after merge with the module)
blackwiki>Frietjes
Line 1: Line 1:
−
{{#switch:{{{1}}}
+
<!-- Place categories where indicated at the bottom of this page; interwikis at Wikidata -->
−
| name    = New Zealand
+
{{Module:Location map/data/doc
−
| top      = -34.0
+
|examples=
−
| bottom   = -48.3
 
−
| left    = 165.8
 
−
| right    = 179.4
 
−
| image    = New Zealand location map transparent.svg
 
−
| mark    = Disc Plain red.svg
 
−
| marksize = 5
 
−
}}<noinclude>
 
−
{{Location map/Info}}
 
−
 
 
−
==Some examples==
 
−
 
 
 
===Standard version===
 
===Standard version===
 
{{Location map
 
{{Location map
Line 24: Line 13:
 
  |caption=
 
  |caption=
 
}}
 
}}
−
{| style="width:500px;" align="none" border="0"
+
 
−
|-
+
<pre style="overflow:auto; width:30em;">
−
|
 
−
<pre>
 
 
{{Location map
 
{{Location map
 
  |New Zealand transparent
 
  |New Zealand transparent
Line 38: Line 25:
 
  |caption=
 
  |caption=
 
}}
 
}}
−
</pre>
+
</pre>{{clear}}
−
|}
 
−
<br style="clear:both;"><hr>
 
  
 
===Standard version with coloured background===
 
===Standard version with coloured background===
−
{| style="width:160px; background:#E0FFFF; float:right;" border="0"
+
<div style="width:160px; background:#E0FFFF; float:right;" border="0">{{Location map
−
|-
 
−
| {{Location map
 
 
  |New Zealand transparent
 
  |New Zealand transparent
 
  |label=Kumara
 
  |label=Kumara
Line 54: Line 37:
 
  |float=right
 
  |float=right
 
  |caption=
 
  |caption=
−
}}
+
}}</div>
−
|}
+
<pre style="overflow:auto; width:30em;">
−
{| style="width:500px;" align="none" border="0"
+
<div style="width:160px; background:#E0FFFF; float:right;" border="0">{{Location map
−
|-
 
−
|
 
−
<pre>
 
−
{| style="width:160px; background:#E0FFFF; float:right;" border="0"
 
−
|-
 
−
| {{Location map
 
 
  |New Zealand transparent
 
  |New Zealand transparent
 
  |label=Kumara
 
  |label=Kumara
Line 71: Line 48:
 
  |float=right
 
  |float=right
 
  |caption=
 
  |caption=
−
}}
+
}}</div></pre>
−
|}</pre>
 
−
|}
 
−
<br style="clear:both;"><hr>
 
  
 
===Long placename on East Coast===
 
===Long placename on East Coast===
−
{| style="width:230px; float:right;" border="0"
+
{{Location map
−
|-
 
−
| {{Location map
 
 
  |New Zealand transparent
 
  |New Zealand transparent
 
  |label=Maungakotukutuku
 
  |label=Maungakotukutuku
 
  |lat_dir=S | lat_deg=40 | lat_min=57
 
  |lat_dir=S | lat_deg=40 | lat_min=57
 
  |lon_dir=E | lon_deg=175 | lon_min=1
 
  |lon_dir=E | lon_deg=175 | lon_min=1
−
|position=right
 
 
  |width= 150
 
  |width= 150
 
  |float=left
 
  |float=left
 
  |caption=
 
  |caption=
 
}}
 
}}
−
|}
+
<pre style="overflow:auto; width:30em; margin-left:1em;">
−
{| style="width:500px;" align="none" border="0"
+
{{Location map
−
|-
 
−
|
 
−
<pre>
 
−
{| style="width:230px; float:right;" border="0"
 
−
|-
 
−
| {{Location map
 
 
  |New Zealand transparent
 
  |New Zealand transparent
 
  |label=Maungakotukutuku
 
  |label=Maungakotukutuku
 
  |lat_dir=S | lat_deg=40 | lat_min=57
 
  |lat_dir=S | lat_deg=40 | lat_min=57
 
  |lon_dir=E | lon_deg=175 | lon_min=1
 
  |lon_dir=E | lon_deg=175 | lon_min=1
−
|position=right
 
 
  |width= 150
 
  |width= 150
 
  |float=left
 
  |float=left
 
  |caption=
 
  |caption=
 
}}
 
}}
−
|}</pre>
+
</pre>
−
|}
+
{{clear}}
−
<br style="clear:both;"><hr>
 
−
 
 
 
===Large version===
 
===Large version===
 
{{Location map
 
{{Location map
Line 123: Line 85:
 
  |caption=
 
  |caption=
 
}}
 
}}
−
{| style="width:500px;" align="none" border="0"
+
<pre style="overflow:auto; width:30em;">
−
|-
 
−
|
 
−
<pre>
 
 
{{Location map
 
{{Location map
 
  |New Zealand transparent
 
  |New Zealand transparent
Line 140: Line 99:
 
}}
 
}}
 
</pre>
 
</pre>
−
|}<br style="clear:both;"><hr>
+
{{clear}}
−
 
 
 
===Multiple locations===
 
===Multiple locations===
 
{{Location map+|New Zealand transparent|width=150|caption=|border=none|places=
 
{{Location map+|New Zealand transparent|width=150|caption=|border=none|places=
Line 148: Line 106:
 
{{Location map~|New Zealand transparent|label_size=75|marksize=5|lat=-43.53|long=172.620278|position=right|label=Christchurch}}
 
{{Location map~|New Zealand transparent|label_size=75|marksize=5|lat=-43.53|long=172.620278|position=right|label=Christchurch}}
 
}}
 
}}
−
{| style="width:500px;" align="none" border="0"
+
<pre style="overflow:auto; width:70em;">  
−
|-
 
−
|
 
−
<pre>  
 
 
{{Location map+|New Zealand transparent|width=150|caption=|border=none|places=
 
{{Location map+|New Zealand transparent|width=150|caption=|border=none|places=
 
{{Location map~|New Zealand transparent|label_size=90|marksize=7|lat=-36.85|long=174.783333|position=left|label=Auckland}}
 
{{Location map~|New Zealand transparent|label_size=90|marksize=7|lat=-36.85|long=174.783333|position=left|label=Auckland}}
Line 158: Line 113:
 
}}
 
}}
 
</pre>
 
</pre>
−
|}
+
| see also =
−
<br style="clear:both;">
+
* [[Module:Location map/data/New Zealand]]
  
 +
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 +
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:New Zealand location map templates]]
 
[[Category:New Zealand location map templates]]
  
−
</noinclude>
+
}}</includeonly>

Revision as of 15:37, 11 April 2018


Location map of New Zealand
name New Zealand
border
coordinates
-34
165.8 ←↕→ 179.4
-48.3
map center Lua error: callParserFunction: function "#coordinates" was not found.
image New Zealand location map transparent.svg
400x400px
mark Disc Plain red.svg
marksize 5


Module:Location map/data/New Zealand transparent is a location map definition used to overlay markers and labels on an equirectangular projection map of New Zealand. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "New Zealand transparent":

Map definition

  • name = New Zealand
    Name used in the default map caption
  • bottom = -48.3
    Latitude at bottom edge of map, in decimal degrees
  • left = 165.8
    Longitude at left edge of map, in decimal degrees
  • right = 179.4
    Longitude at right edge of map, in decimal degrees
  • mark = Disc Plain red.svg (Disc Plain red.svg)
    The default mark image to display with this map. This can be overridden by the mark parameter in Template:Location map, which would otherwise default to Red pog.svg (Red pog.svg).
  • marksize = 5
    The default mark size (in pixels) for the mark image displayed with this map (should not include px, for example marksize=5, not marksize=5px). This can be overridden by the marksize parameter in Template:Location map, which would otherwise default to 8.

Precision

Longitude: from West to East this map definition covers 13.6 degrees.

  • At an image width of 200 pixels, that is 0.068 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0136 degrees per pixel.

Latitude: from North to South this map definition covers 14.3 degrees.

  • At an image height of 200 pixels, that is 0.0715 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0143 degrees per pixel.

Examples using location map templates

Standard version

{{Location map
 |New Zealand transparent
 |label=Kumara
 |lat_dir=S | lat_deg=42 | lat_min=38
 |lon_dir=E | lon_deg=171 | lon_min=11
 |position=left
 |width= 150
 |float=right
 |caption=
}}

Standard version with coloured background

<div style="width:160px; background:#E0FFFF; float:right;" border="0">{{Location map
 |New Zealand transparent
 |label=Kumara
 |lat_dir=S | lat_deg=42 | lat_min=38
 |lon_dir=E | lon_deg=171 | lon_min=11
 |position=left
 |width= 150
 |float=right
 |caption=
}}</div>

Long placename on East Coast

{{Location map
 |New Zealand transparent
 |label=Maungakotukutuku
 |lat_dir=S | lat_deg=40 | lat_min=57
 |lon_dir=E | lon_deg=175 | lon_min=1
 |width= 150
 |float=left
 |caption=
}}

Large version

{{Location map
 |New Zealand transparent
 |label=Kinloch
 |label_size=150
 |marksize=9
 |lat_dir=S | lat_deg=38 | lat_min=39
 |lon_dir=E | lon_deg=175 | lon_min=55
 |position=left
 |width= 250
 |float=right
 |caption=
}}

Multiple locations

 
{{Location map+|New Zealand transparent|width=150|caption=|border=none|places=
{{Location map~|New Zealand transparent|label_size=90|marksize=7|lat=-36.85|long=174.783333|position=left|label=Auckland}}
{{Location map~|New Zealand transparent|label_size=85|marksize=5|lat=-41.288889|long=174.777222|position=left|label=WELLINGTON}}
{{Location map~|New Zealand transparent|label_size=75|marksize=5|lat=-43.53|long=172.620278|position=right|label=Christchurch}}
}}

See also

Location map templates

Creating new map definitions