Difference between revisions of "Template:Graticule2"

From Geohashing
imported>Mattyk
imported>Mattyk
m
 
(2 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
<!-- Put any additional fields above here. -->}}
 
<!-- Put any additional fields above here. -->}}
 
<tr><td colspan="3" style="text-align:center;">{{{map| {{#ifeq:{{{point|0}}}|1
 
<tr><td colspan="3" style="text-align:center;">{{{map| {{#ifeq:{{{point|0}}}|1
|{{#tag:map||lat={{{lat|0}}}|lon={{{lon|0}}}|date={{#time:Y-m-d| +{{#expr:({{{lon|0}}} * 12 / 180) round 0}} hours }}}}
+
|{{#vardefine:ymd|{{#time:Y-m-d| +{{#expr:({{{lon|0}}} * 12 / 180) round 0}} hours}} }}
|{{#tag:map||lat={{{lat|0}}}|lon={{{lon|0}}}}}
+
{{#tag:map||lat={{{lat|0}}}|lon={{{lon|0}}}|date={{#var:ymd}} }}<br>
 +
[[{{#var:ymd}}|{{#time:D j M Y|{{#var:ymd}} }}]] in [[{{{lat|0}}},{{{lon|0}}}]]:<br>
 +
'''{{coordinates graticule|{{#var:ymd}}|lat={{{lat|0}}}|lon={{{lon|0}}} }}'''<br>
 +
{{meetup links|{{#var:ymd}}|lat={{{lat|0}}}|lon={{{lon|0}}} }}
 +
|{{#tag:map||lat={{{lat|0}}}|lon={{{lon|0}}} }}
 
}} }}}</td></tr>
 
}} }}}</td></tr>
 
</table></includeonly><noinclude>
 
</table></includeonly><noinclude>
 
{{Graticule2/Documentation}} <!-- Documentation is elsewhere -->
 
{{Graticule2/Documentation}} <!-- Documentation is elsewhere -->
 
</noinclude>
 
</noinclude>

Latest revision as of 04:57, 14 December 2008

Edit the documentation (it isn't part of the template page)


Rapid City
Graticule2
Torrington

Usage:

{{graticule2
| lat = 43
| lon = -103
| n = [[Rapid City, South Dakota|]]
| sw = [[Torrington, Wyoming|]]
}}

Notes on usage:

  • As per Template:Graticule, you can specify | map = ... and | name = ... parameters if you wish.
  • You don't have to include neighbors that don't exist. The template will automatically insert a "–" for absent neighbors. This dash now acts as a link to the missing graticule.
  • You can automatically abbreviate links using the magic pipe: insert a | character at the end of the bracketed text: [[Smalltown, USA|]] is magically transformed (at save time) to [[Smalltown, USA|Smalltown]].
  • You can add a "| maponly = 1" if you just want the map without the links to the surrounding graticules.
  • You can add a "| point= 1" if you want the map to show the (approximately) current hash point for the graticule.


All articles using this template should use wikilink brackets ([[ and ]]) to link to the other neighboring graticules.