Template:Graticule/Documentation

From Geohashing
< Template:Graticule
Revision as of 23:33, 22 May 2008 by imported>Duskwolf (copied from Template:Graticule, with a few additions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage:

{{graticule
| map = <map lat="123" lon="-45" />
| nw = [[Smalltown, USA|Smalltown]]
| s = [[Hayfields, USA|Hayfields]]
}}

Make sure to not leave out the trailing slash on the <map... />. Ideally, I'd like to avoid using <map> at all, but {{#tag}} doesn't seem to want to do the right thing here. Duskwolf 00:22, 22 May 2008 (UTC)

Notes on usage:

  • You don't have to include neighbors that don't exist. The template will automatically insert a "-" for absent neighbors.
  • 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]].


All articles using this template should use wikilink brackets ([[ and ]]) to link to the other neighboring graticules. Please don't change this article to link automatically, since neighboring graticules might have unwieldy names that would make more sense to be shortened (ie by using "[[Minneapolis SW, Minnesota|Minneapolis SW]]"). Work has been done to change existing articles to link to neighbors by the template user and not by the template. Ironiridis 21:56, 22 May 2008 (UTC)