Jump to content

Template:Coord/link: Difference between revisions

From IdeaWazaWiki
wikademia>Quarl
comment; spans
wikademia>Wikademia
m 46 revisions
 
(31 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" 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-dms" title="Maps, aerial photos, and other data for {{{lat}}} {{{long}}}">
--><span class="latitude">{{{lat}}}</span> <!--
--><span class="longitude">{{{long}}}</span></span><!--  
--><span class="geo" title="Maps, aerial photos, and other data for {{{geolat}}} {{{geolong}}}"> (<span class="latitude">{{{geolat}}}</span>, <!--
  --><span class="longitude">{{{geolong}}}</span>)</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