Jump to content

Template:Coord/link: Difference between revisions

From IdeaWazaWiki
wikademia>Quarl
geo-default
wikademia>Wikademia
m 46 revisions
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude><!--
<span class="plainlinksneverexpand">[{{Coor URL}}{{{param}}}{{#if:{{{name|}}}|&title={{urlencode:{{{name}}}}}}} <span class="{{#ifeq:{{{default|}}}|dec|geo-nondefault|geo-default}}"><span class="geo-dms" title="Maps, aerial photos, and other data for this location"><span class="latitude">{{{dms-lat}}}</span> <span class="longitude">{{{dms-long}}}</span></span></span><span class="geo-multi-punct"> / </span><span class="{{#ifeq:{{{default|}}}|dec|geo-default|geo-nondefault}}">{{#if:{{{name|}}}|<span class="vcard">|}}<span class="geo-dec" title="Maps, aerial photos, and other data for this location">{{{dec-lat-display|{{#ifexpr:{{{dec-lat}}}<0|{{Coord/negzeropad|{{{dec-lat}}}|{{#expr:abs{{{dec-lat}}}}}}}°S|{{{dec-lat}}}°N}}}}} {{{dec-long-display|{{#ifexpr:{{{dec-long}}}<0|{{Coord/negzeropad|{{{dec-long}}}|{{#expr:abs{{{dec-long}}}}}}}°W|{{{dec-long}}}°E}}}}}</span><span style="display:none"> / <span class="geo">{{{dec-lat}}}; {{{dec-long}}}</span></span>{{#if:{{{name|}}}|<span style="display:none"> (<span class="fn org">{{{name|}}}</span>)</span></span>|}}</span>]</span><noinclude>{{pp-template|small=yes}}{{documentation}}[[Category:Coord template]]</noinclude>
 
Note: the span classes "geo-dec" and "geo-dms" are defined at http://en.wikipedia.org/wiki/MediaWiki:Common.css.  See there for instructions on how to choose which to display.  "latitude" and "longitude" also have styles.
 
In addition, "geo" and the nested "latitude" and "longitude" have special meaning as a Microformat; see http://microformats.org/wiki/geo.
 
--></noinclude><span class="plainlinksneverexpand">[{{Coor URL}}{{{param}}} <!--
--><span class="geo-default" title="Maps, aerial photos, and other data for {{{default-lat}}} {{{default-long}}}"><!--
  --><span class="latitude">{{{default-lat}}}</span> <!--
  --><span class="longitude">{{{default-long}}}</span><!--
--></span><!--
--><span style="display:none"> (</span><!--
--><span class="geo-dms" title="Maps, aerial photos, and other data for {{{dms-lat}}} {{{dms-long}}}"><!--
  --><span class="latitude">{{{dms-lat}}}</span> <!--
  --><span class="longitude">{{{dms-long}}}</span><!--
--></span><!--
--><span style="display:none">) (</span><!--
--><span class="geo-dec geo" title="Maps, aerial photos, and other data for {{{dec-lat}}} {{{dec-long}}}"><!--
  --><span class="latitude">{{{dec-lat}}}</span>, <!--
  --><span class="longitude">{{{dec-long}}}</span><!--
--></span><!--
--><span style="display:none">)</span><!--
-->]</span><noinclude>
<!-- {{protected template}} -->
{{template doc}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 05:40, 19 March 2009