Template:Coord how-to: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Stepheng3 inline is the default display |
meta>Stepheng3 use <code> consistently in examples |
||
Line 4: | Line 4: | ||
|- | |- | ||
| To add {{coord|57|18|22.5|N|4|27|32.7|W}} to the top of an article, use | | To add {{coord|57|18|22.5|N|4|27|32.7|W}} to the top of an article, use | ||
:'''<nowiki>{{coord|57|18|22.5|N|4|27|32.7|W|display=title}}</nowiki>''' | :'''<code><nowiki>{{coord|57|18|22.5|N|4|27|32.7|W|display=title}}</nowiki></code>''' | ||
These [[Geographic coordinate system|coordinates]] are in [[Degree (angle)|degrees]], [[Minute of arc|minutes]], and seconds of arc. | These [[Geographic coordinate system|coordinates]] are in [[Degree (angle)|degrees]], [[Minute of arc|minutes]], and seconds of arc. | ||
|- | |- | ||
| To add {{coord|44.112|N|87.913|W}} to the top of an article, use either | | To add {{coord|44.112|N|87.913|W}} to the top of an article, use either | ||
:'''<nowiki>{{coord|44.112|N|87.913|W|display=title}}</nowiki>''' | :'''<code><nowiki>{{coord|44.112|N|87.913|W|display=title}}</nowiki></code>''' | ||
''or'' | ''or'' | ||
:'''<nowiki>{{coord|44.112|-87.913|display=title}}</nowiki>''' | :'''<code><nowiki>{{coord|44.112|-87.913|display=title}}</nowiki></code>''' | ||
These coordinates are in [[Decimal fraction|decimal]] degrees. | These coordinates are in [[Decimal fraction|decimal]] degrees. | ||
|- | |- | ||
Line 20: | Line 20: | ||
|- | |- | ||
|Optional coordinate parameters follow the longitude and are separated by [[Underscore|an underscore ("_")]]:<br /> | |Optional coordinate parameters follow the longitude and are separated by [[Underscore|an underscore ("_")]]:<br /> | ||
*[[Template:Coord#dim:D|dim]]: <code>dim: | *[[Template:Coord#dim:D|dim]]: <code>dim:</code>'''''N''''' (diameter in meters) | ||
*[[Template:Coord#region:R|region]]: <code>region: | *[[Template:Coord#region:R|region]]: <code>region:</code>'''''R''''' ([[ISO 3166-1 alpha-2]] or [[ISO 3166-2]] code) | ||
*[[Template:Coord#type:T|type]]: <code>type: | *[[Template:Coord#type:T|type]]: <code>type:</code>'''''T''''' (<code>landmark</code> or <code>city</code>, for example) | ||
Other optional parameters are separated by [[Vertical bar|a pipe ("|")]]:<br /> | Other optional parameters are separated by [[Vertical bar|a pipe ("|")]]:<br /> | ||
Line 31: | Line 31: | ||
*[[Template:Coord#Name|name]] | *[[Template:Coord#Name|name]] | ||
*: <code>name=Xxxx</code> to provide a label (default is PAGENAME) | *: <code>name=Xxxx</code> to provide a label (default is PAGENAME) | ||
Thus: '''<nowiki>{{coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|display=inline,title|name=Klann Road}}</nowiki>''' | Thus: '''<code><nowiki>{{coord|44.117|-87.913|dim:30_region:US-WI_type:landmark| | ||
display=inline,title|name=Klann Road}}</nowiki></code>''' | |||
|- | |- | ||
| | | |
Revision as of 13:24, 23 October 2009
Template:Tnavbar-header |
---|
To add Lua error: callParserFunction: function "#coordinates" was not found. to the top of an article, use
These coordinates are in degrees, minutes, and seconds of arc. |
To add Lua error: callParserFunction: function "#coordinates" was not found. to the top of an article, use either
or
These coordinates are in decimal degrees. |
|
Optional coordinate parameters follow the longitude and are separated by an underscore ("_"):
Other optional parameters are separated by a pipe ("|"):
Thus: |
|