Difference between revisions of "Template:GraticuleQ/Documentation"
From Geohashing
imported>Mattyk |
imported>Mattyk |
||
Line 72: | Line 72: | ||
==Parameters== | ==Parameters== | ||
− | ( | + | (refer to the ''Full Example'' at right to see where each parameter goes) |
+ | ;mapnw, mapne, mapse, mapsw | ||
+ | :What to draw for the appropriate map. | ||
+ | ;map | ||
+ | :What to draw for the entire map. | ||
+ | :Only used if all of '''mapnw''', '''mapne''', '''mapse''' and '''mapsw''' are left out. | ||
+ | ;maponly | ||
+ | :''(optional)'' if specified, only draws the '''map'''(s) and '''caption''' (if any). | ||
+ | ;namenw, namene, namese, namesw | ||
+ | :What to write in the appropriate mid section of the legend. | ||
+ | ;name-full | ||
+ | :A single name that fills the entire mid-section of the legend. (Overrides the other '''name'''s) | ||
+ | ;name | ||
+ | :Default text to use, if all other names are left out. | ||
+ | :Automatically gets '''NW''', '''NE''', '''SW''' or '''SW''' appended where appropriate. | ||
+ | ;nw, ne, se, sw | ||
+ | :Neighbouring graticules in the simple directions. | ||
+ | ;nnw, nne, ene, ese, sse, ssw, wsw, wnw | ||
+ | :Neighbouring graticules due north, east, south, or west of one of the four graticules. | ||
+ | :Directions are (approximately) relative to the mid-point of the four graticules. | ||
+ | ;n, e, s, w | ||
+ | :Default values for otherwise unspecified north/east/south/west graticules. | ||
+ | ;caption | ||
+ | :Extra stuff to include at the bottom of the box, like the caption text of an Image. | ||
==Example== | ==Example== |
Latest revision as of 11:16, 30 November 2008
|
|
Brainerd | - | Duluth | Hayward, WI |
St. Cloud | Minneapolis NW | St. Paul NE | Rice Lake, WI |
Hutchinson | Minneapolis SW | St. Paul SE | Eau Claire, WI |
Estherville, IA | Albert Lea | Austin | La Crosse, WI |
Real Example |
A more awesome version of Template:Graticule, designed for cities that occupy four adjacent graticules.
Based on a concept by Joannac, overcomplicated by Matty.
Parameters
(refer to the Full Example at right to see where each parameter goes)
- mapnw, mapne, mapse, mapsw
- What to draw for the appropriate map.
- map
- What to draw for the entire map.
- Only used if all of mapnw, mapne, mapse and mapsw are left out.
- maponly
- (optional) if specified, only draws the map(s) and caption (if any).
- namenw, namene, namese, namesw
- What to write in the appropriate mid section of the legend.
- name-full
- A single name that fills the entire mid-section of the legend. (Overrides the other names)
- name
- Default text to use, if all other names are left out.
- Automatically gets NW, NE, SW or SW appended where appropriate.
- nw, ne, se, sw
- Neighbouring graticules in the simple directions.
- nnw, nne, ene, ese, sse, ssw, wsw, wnw
- Neighbouring graticules due north, east, south, or west of one of the four graticules.
- Directions are (approximately) relative to the mid-point of the four graticules.
- n, e, s, w
- Default values for otherwise unspecified north/east/south/west graticules.
- caption
- Extra stuff to include at the bottom of the box, like the caption text of an Image.
Example
{{GraticuleQ | map = [[Image:MSP_Graticules.png]] | namenw = Minneapolis NW | namesw = Minneapolis SW | namene = St. Paul NE | namese = St. Paul SE | nw = [[Brainerd, Minnesota|Brainerd]] | nne = [[Duluth, Minnesota|Duluth]] | ne = [[Hayward, Wisconsin|Hayward, WI]] | wnw = [[St. Cloud, Minnesota|St. Cloud]] | ene = [[Rice Lake, Wisconsin|Rice Lake, WI]] | wsw = [[Hutchinson, Minnesota|Hutchinson]] | ese = [[Eau Claire, Wisconsin|Eau Claire, WI]] | sw = [[Estherville, Iowa|Estherville, IA]] | ssw = [[Albert Lea, Minnesota|Albert Lea]] | sse = [[Austin, Minnesota|Austin]] | se = [[La Crosse, Wisconsin|La Crosse, WI]] }}
See Also: Template:Graticule, Template:GraticuleH, Template:GraticuleV