Difference between revisions of "Template:Graticule"

From Geohashing
imported>Duskwolf
(moving map below surroundings, per a suggestion)
imported>Duskwolf
(adding maponly parameter - hides everything but the map)
Line 1: Line 1:
 
<table class="infobox" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;">
 
<table class="infobox" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;">
 +
{{#if:{{{maponly|}}}|| <!-- Put any extra headings below here. -->
 
<tr>
 
<tr>
 
     <td style="text-align:center" width="7em"><b>{{#if:{{{nw|}}} | [[{{{nw}}}]] | - }}</b></td>
 
     <td style="text-align:center" width="7em"><b>{{#if:{{{nw|}}} | [[{{{nw}}}]] | - }}</b></td>
Line 15: Line 16:
 
     <td style="text-align:center"><b>{{#if:{{{se|}}} | [[{{{se}}}]] | - }}</b></td>
 
     <td style="text-align:center"><b>{{#if:{{{se|}}} | [[{{{se}}}]] | - }}</b></td>
 
</tr>
 
</tr>
 +
<!-- Put any additional fields above here.
 +
-->}}
 
<tr><td colspan="3" style="text-align:center;">{{{map|<includeonly><span style='font-size: 125%; color:red'>'''No map available.'''</span></includeonly><noinclude><map lat="51" lon="0" /></noinclude>}}}</td></tr>
 
<tr><td colspan="3" style="text-align:center;">{{{map|<includeonly><span style='font-size: 125%; color:red'>'''No map available.'''</span></includeonly><noinclude><map lat="51" lon="0" /></noinclude>}}}</td></tr>
 
</table><noinclude>
 
</table><noinclude>

Revision as of 02:25, 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)