Difference between revisions of "Template:Graticule"

From Geohashing
imported>Duskwolf
m (caption isn't really necessary, given the page title)
imported>Duskwolf
m (also, usage, and an example map for this page)
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|<span style='font-size: 125%; color:red'>'''No map available.'''</span>}}}</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" />}}}</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 15:
 
     <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><includeonly>
+
</tr></table><noinclude>
 +
Usage:
 +
 
 +
  <nowiki>{{</nowiki>graticule
 +
    | map = <nowiki><map lat="123" lon="-45" /></nowiki>
 +
    | nw = Smalltown, USA
 +
    | s = Hayfields, USA
 +
  }}
 +
 
 +
Make sure to not leave out the trailing slash on the <nowiki><map... /></nowiki>. Ideally, I'd like to avoid using <nowiki><map></nowiki> at all, but <nowiki>{{#tag}}</nowiki> doesn't seem to want to do the right thing here. [[User:Duskwolf|Duskwolf]] 00:22, 22 May 2008 (UTC)
 +
</noinclude>

Revision as of 00:22, 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)