Difference between revisions of "Template:GraticuleH/Documentation"

From Geohashing
imported>Joannac
(Documentation)
 
imported>Joannac
m (Fixed edit link)
Line 6: Line 6:
 
| s = [[Hayfields, USA|Hayfields]]
 
| s = [[Hayfields, USA|Hayfields]]
 
}}</nowiki>
 
}}</nowiki>
 +
 +
This is for '''cities that are split horizontally 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 13: Line 15:
 
* You can automatically abbreviate links using the magic pipe: insert a | character at the end of the bracketed text: <tt><nowiki>[[Smalltown, USA|]]</nowiki></tt> is magically transformed (at save time) to <tt><nowiki>[[Smalltown, USA|Smalltown]]</nowiki></tt>.
 
* You can automatically abbreviate links using the magic pipe: insert a | character at the end of the bracketed text: <tt><nowiki>[[Smalltown, USA|]]</nowiki></tt> is magically transformed (at save time) to <tt><nowiki>[[Smalltown, USA|Smalltown]]</nowiki></tt>.
 
* You can add a "<code><nowiki>| maponly = 1</nowiki></code>" if you just want the map without the links to the surrounding graticules.
 
* You can add a "<code><nowiki>| maponly = 1</nowiki></code>" if you just want the map without the links to the surrounding graticules.
* This uses: nww, nw, n, ne, w, e, sww, sw, s, se
+
* This uses: nww, nw, n, ne, w, e, sww, sw, s, se (yes I know it's inconsistent; no I don't care).
  
  
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:GraticuleH/Documentation&action=edit Edit the documentation] (it isn't part of the template page)

Revision as of 06:47, 3 October 2008

Usage:

{{graticuleH
| 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 horizontally 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: nww, nw, n, ne, w, e, sww, sw, s, se (yes I know it's inconsistent; no I don't care).


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)