Template:Coord/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Quarl
meta>Quarl
rename coor/new => coord
Line 1: Line 1:
{{tl|coor/new}}, is a general-purpose geographical coordinate template intended to replace {{tl|coor}}, {{tl|coor d}}, {{tl|coor dm}}, {{tl|coor dms}}, allowing decimal and degree/minutes/seconds parameters of arbitrary precision.
{{tl|coord}}, is a general-purpose geographical coordinate template intended to replace {{tl|coor}}, {{tl|coor d}}, {{tl|coor dm}}, {{tl|coor dms}}, allowing decimal and degree/minutes/seconds parameters of arbitrary precision.


It links to {{Coor URL}}, then displays the [[WGS84]] coordinate ([[latitude]];[[longitude]]) in appropriate, human-readable degree/minutes/seconds precision, and outputs the computer-readable [[Geo (microformat)|Geo microformat]].
It links to {{Coor URL}}, then displays the [[WGS84]] coordinate ([[latitude]];[[longitude]]) in appropriate, human-readable degree/minutes/seconds precision, and outputs the computer-readable [[Geo (microformat)|Geo microformat]].


== Usage ==
== Usage ==
  {{coor/new|''latitude''|''longitude''}}
  {{coord|''latitude''|''longitude''}}
  {{coor/new|''dd''|''N/S''|''dd''|''E/W''}}
  {{coord|''dd''|''N/S''|''dd''|''E/W''}}
  {{coor/new|''dd''|''mm''|''N/S''|''dd''|''mm''|''E/W''}}
  {{coord|''dd''|''mm''|''N/S''|''dd''|''mm''|''E/W''}}
  {{coor/new|''dd''|''mm''|''ss''|''N/S''|''dd''|''mm''|''ss''|''E/W''}}
  {{coord|''dd''|''mm''|''ss''|''N/S''|''dd''|''mm''|''ss''|''E/W''}}


== Examples ==
== Examples ==
<table class="prettytable">
<table class="prettytable">
<tr><td><nowiki>{{coor/new|43.651234|-79.383333}}</nowiki></td><td>{{coor/new|43.651234|-79.383333}}</td><td>(Toronto - Fully decimal - N & W )</td></tr>
<tr><td><nowiki>{{coord|43.651234|-79.383333}}</nowiki></td><td>{{coord|43.651234|-79.383333}}</td><td>(Toronto - Fully decimal - N & W )</td></tr>
<tr><td><nowiki>{{coor/new|43.651234|N|79.383333|W}}</nowiki></td><td>{{coor/new|43.651234|-79.383333}}</td><td>(Toronto - decimal with Northing & Westing)</td></tr>
<tr><td><nowiki>{{coord|43.651234|N|79.383333|W}}</nowiki></td><td>{{coord|43.651234|-79.383333}}</td><td>(Toronto - decimal with Northing & Westing)</td></tr>
<tr><td><nowiki>{{coor/new|43|29||N|79|23|W}}</nowiki></td><td>{{coor/new|43.651234|-79.383333}}</td><td>(Toronto - degrees & minutes)</td></tr>
<tr><td><nowiki>{{coord|43|29||N|79|23|W}}</nowiki></td><td>{{coord|43.651234|-79.383333}}</td><td>(Toronto - degrees & minutes)</td></tr>
<tr><td><nowiki>{{coor/new|43|29|4|N|79|23|0|W}}</nowiki></td><td>{{coor/new|43.651234|-79.383333}}</td><td>(Toronto - degrees, minutes & seconds)</td></tr>
<tr><td><nowiki>{{coord|43|29|4|N|79|23|0|W}}</nowiki></td><td>{{coord|43.651234|-79.383333}}</td><td>(Toronto - degrees, minutes & seconds)</td></tr>
<tr><td><nowiki>{{coor/new|55.752222|N|37.615556|E}}</nowiki></td><td>{{coor/new|55.752222|N|37.615556|E}}</td><td>(Moscow - N & E)</td></tr>
<tr><td><nowiki>{{coord|55.752222|N|37.615556|E}}</nowiki></td><td>{{coord|55.752222|N|37.615556|E}}</td><td>(Moscow - N & E)</td></tr>
<tr><td><nowiki>{{coor/new|33|55|S|18|25|E}}</nowiki></td><td>{{coor/new|33|55|S|18|25|E}}</td><td>(Capetown - S & E)</td></tr>
<tr><td><nowiki>{{coord|33|55|S|18|25|E}}</nowiki></td><td>{{coord|33|55|S|18|25|E}}</td><td>(Capetown - S & E)</td></tr>
<tr><td><nowiki>{{coor/new|22|54|30|S|43|14|37|W}}</nowiki></td><td>{{coor/new|22|54|30|S|43|14|37|W}}</td><td>(Rio - S & W)</td></tr>
<tr><td><nowiki>{{coord|22|54|30|S|43|14|37|W}}</nowiki></td><td>{{coord|22|54|30|S|43|14|37|W}}</td><td>(Rio - S & W)</td></tr>
</table>
</table>

Revision as of 11:23, 2 April 2007

{{coord}}, is a general-purpose geographical coordinate template intended to replace {{coor}}, {{coor d}}, {{coor dm}}, {{coor dms}}, allowing decimal and degree/minutes/seconds parameters of arbitrary precision.

It links to Template:Coor URL, then displays the WGS84 coordinate (latitude;longitude) in appropriate, human-readable degree/minutes/seconds precision, and outputs the computer-readable Geo microformat.

Usage

{{coord|latitude|longitude}}
{{coord|dd|N/S|dd|E/W}}
{{coord|dd|mm|N/S|dd|mm|E/W}}
{{coord|dd|mm|ss|N/S|dd|mm|ss|E/W}}

Examples

{{coord|43.651234|-79.383333}}Lua error: callParserFunction: function "#coordinates" was not found.(Toronto - Fully decimal - N & W )
{{coord|43.651234|N|79.383333|W}}Lua error: callParserFunction: function "#coordinates" was not found.(Toronto - decimal with Northing & Westing)
{{coord|43|29||N|79|23|W}}Lua error: callParserFunction: function "#coordinates" was not found.(Toronto - degrees & minutes)
{{coord|43|29|4|N|79|23|0|W}}Lua error: callParserFunction: function "#coordinates" was not found.(Toronto - degrees, minutes & seconds)
{{coord|55.752222|N|37.615556|E}}Lua error: callParserFunction: function "#coordinates" was not found.(Moscow - N & E)
{{coord|33|55|S|18|25|E}}Lua error: callParserFunction: function "#coordinates" was not found.(Capetown - S & E)
{{coord|22|54|30|S|43|14|37|W}}Lua error: callParserFunction: function "#coordinates" was not found.(Rio - S & W)