Difference between revisions of "Template:GraticuleV/Documentation"

From Geohashing
imported>Joannac
m (Oops, fixed how to use section)
imported>Joannac
m (Minor editing)
Line 6: Line 6:
 
| s = [[Hayfields, USA|Hayfields]]
 
| s = [[Hayfields, USA|Hayfields]]
 
}}</nowiki>
 
}}</nowiki>
 +
 +
This is for '''cities that are split vertically over 2 graticules'''.
  
 
Make sure to not leave out the trailing slash on the <tt><nowiki><map... /></nowiki></tt>. Ideally, I'd like to avoid using <tt><nowiki><map></nowiki></tt> at all, but <tt><nowiki>{{#tag}}</nowiki></tt> doesn't seem to want to do the right thing here. [[User:Duskwolf|Duskwolf]] 00:22, 22 May 2008 (UTC)
 
Make sure to not leave out the trailing slash on the <tt><nowiki><map... /></nowiki></tt>. Ideally, I'd like to avoid using <tt><nowiki><map></nowiki></tt> at all, but <tt><nowiki>{{#tag}}</nowiki></tt> doesn't seem to want to do the right thing here. [[User:Duskwolf|Duskwolf]] 00:22, 22 May 2008 (UTC)
Line 20: Line 22:
 
----
 
----
  
[http://wiki.xkcd.com/wgh/index.php?title=Template:Graticule/Documentation&action=edit Edit the documentation] (it isn't part of the template page)
+
[http://wiki.xkcd.com/wgh/index.php?title=Template:GraticuleV/Documentation&action=edit Edit the documentation] (it isn't part of the template page)

Revision as of 06:48, 3 October 2008

Usage:

{{graticuleV
| map = <map lat="123" lon="-45" date="2005-05-21"/>
| nw = [[Smalltown, USA|Smalltown]]
| s = [[Hayfields, USA|Hayfields]]
}}

This is for cities that are split vertically over 2 graticules.

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]].
  • You can add a "| maponly = 1" if you just want the map without the links to the surrounding graticules.
  • This uses: nnw, n, nne, nw, ne, w, e, sw, s, se


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)


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