Difference between revisions of "Template:Graticule"

From Geohashing
imported>Tyler
(undid my link/comment (wouldn't make sense not to have map))
imported>Duskwolf
(moving map below surroundings, per a suggestion)
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;">
<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>
 
<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 14:
 
     <td style="text-align:center"><b>{{#if:{{{s|}}} | [[{{{s}}}]] | - }}</b></td>
 
     <td style="text-align:center"><b>{{#if:{{{s|}}} | [[{{{s}}}]] | - }}</b></td>
 
     <td style="text-align:center"><b>{{#if:{{{se|}}} | [[{{{se}}}]] | - }}</b></td>
 
     <td style="text-align:center"><b>{{#if:{{{se|}}} | [[{{{se}}}]] | - }}</b></td>
</tr></table><noinclude>
+
</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>
 
Usage:
 
Usage:
  

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