Difference between revisions of "Template:Coord/link/sandbox"
< Template:Coord | link
Jump to navigation
Jump to search
imported>WOSlinker (remove {{pp-template}}) |
|||
| Line 1: | Line 1: | ||
| − | <span class="plainlinks nourlexpansion">[{{Coor URL}}{{{param}}}{{#if:{{{name|}}}|&title={{urlencode:{{{name}}}}}}} | + | <span class="plainlinks nourlexpansion">[{{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> |
<!-- BE CAREFUL WITH COPY PASTING | <!-- BE CAREFUL WITH COPY PASTING | ||
HTMLTidy moves our whitespace around. We use  (unicode zero width no break space/BOM) to force a space char at the end or beginning of a span to stay where it is, and this character gets lost in copypasting. This is a deprecated unicode character for these purposes, but it is the only method that works consistently around all browsers (opposed to #x2060 and #x200b). | HTMLTidy moves our whitespace around. We use  (unicode zero width no break space/BOM) to force a space char at the end or beginning of a span to stay where it is, and this character gets lost in copypasting. This is a deprecated unicode character for these purposes, but it is the only method that works consistently around all browsers (opposed to #x2060 and #x200b). | ||
-->{{documentation}}[[Category:Coord template]]</noinclude> | -->{{documentation}}[[Category:Coord template]]</noinclude> | ||
Revision as of 14:57, 13 January 2013
| This is the template sandbox page for Template:Coord/link (diff). |
This template, {{Coord/link}}, is used by {{Coord}}.
Examples
| {{coord|10|N|30|W}} | Lua error: callParserFunction: function "#coordinates" was not found. |
| {{coord|10|11|N|30|31|W}} | Lua error: callParserFunction: function "#coordinates" was not found. |
| {{coord|10|11|12|N|30|31|32|W}} | Lua error: callParserFunction: function "#coordinates" was not found. |
Notes on classes
Note: the span classes "geo-default", "geo-dec", and "geo-dms" are defined at http://en.wikipedia.org/wiki/MediaWiki:Common.css.
In addition, "geo" and the nested "latitude" and "longitude" have special meaning as a Geo microformat and so might also be used by other templates; see also http://microformats.org/wiki/geo.
Display
| The above documentation is transcluded from Template:Coord/link/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. A print version of this template exists at /Print. If you make a change to this template, please update the print version as well. |