Difference between revisions of "Template:Graticule"
From Geohashing
imported>Duskwolf (sorry, Gormster, but that broke more pages than it fixed) |
imported>AshleyMorton (Uh, I think it fixed more than it broke...) |
||
Line 2: | Line 2: | ||
{{#if:{{{maponly|}}}|| <!-- Put any extra headings below here. --> | {{#if:{{{maponly|}}}|| <!-- Put any extra headings below here. --> | ||
<tr> | <tr> | ||
− | <td style="text-align:left;width:7em" width="7em"><b>{{#if:{{{nw|}}} | | + | <td style="text-align:left;width:7em" width="7em"><b>{{#if:{{{nw|}}} | {{{nw}}} | - }}</b></td> |
− | <td style="text-align:center;width:8em" width="8em"><b>{{#if:{{{n|}}} | | + | <td style="text-align:center;width:8em" width="8em"><b>{{#if:{{{n|}}} | {{{n}}} | - }}</b></td> |
− | <td style="text-align:right;width:7em" width="7em"><b>{{#if:{{{ne|}}} | | + | <td style="text-align:right;width:7em" width="7em"><b>{{#if:{{{ne|}}} | {{{ne}}} | - }}</b></td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td style="text-align:left"><b>{{#if:{{{w|}}} | | + | <td style="text-align:left"><b>{{#if:{{{w|}}} | {{{w}}} | - }}</b></td> |
<td style="text-align:center"><b>{{{name|{{PAGENAME}}}}}</b></td> | <td style="text-align:center"><b>{{{name|{{PAGENAME}}}}}</b></td> | ||
− | <td style="text-align:right"><b>{{#if:{{{e|}}} | | + | <td style="text-align:right"><b>{{#if:{{{e|}}} | {{{e}}} | - }}</b></td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td style="text-align:left"><b>{{#if:{{{sw|}}} | | + | <td style="text-align:left"><b>{{#if:{{{sw|}}} | {{{sw}}} | - }}</b></td> |
− | <td style="text-align:center"><b>{{#if:{{{s|}}} | | + | <td style="text-align:center"><b>{{#if:{{{s|}}} | {{{s}}} | - }}</b></td> |
− | <td style="text-align:right"><b>{{#if:{{{se|}}} | | + | <td style="text-align:right"><b>{{#if:{{{se|}}} | {{{se}}} | - }}</b></td> |
</tr> | </tr> | ||
<!-- Put any additional fields above here. | <!-- Put any additional fields above here. |
Revision as of 21:28, 22 May 2008
- | - | - |
- | Graticule | - |
- | - | - |
Usage:
{{graticule | map = <map lat="123" lon="-45" /> | nw = Smalltown, USA | s = Hayfields, USA }}
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)