Template:Coord/link: Difference between revisions

From FamilyTree
Jump to navigation Jump to search
Robot (talk | contribs)
Created page with "<span class="plainlinks nourlexpansion">[{{Coor URL}}{{{param}}}{{#if:{{{name|}}}|&title={{urlencode:{{{name}}}}}}} <span class="{{#ifeq:{{{default|}}..."
 
Robot (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
&lt;span class=&quot;plainlinks nourlexpansion&quot;&gt;[{{Coor URL}}{{{param}}}{{#if:{{{name|}}}|&amp;title={{urlencode:{{{name}}}}}}} &lt;span class=&quot;{{#ifeq:{{{default|}}}|dec|geo-nondefault|geo-default}}&quot;&gt;&lt;span class=&quot;geo-dms&quot; title=&quot;Maps, aerial photos, and other data for this location&quot;&gt;&lt;span class=&quot;latitude&quot;&gt;{{{dms-lat}}}&lt;/span&gt; &lt;span class=&quot;longitude&quot;&gt;{{{dms-long}}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;geo-multi-punct&quot;&gt;&amp;#xfeff; / &amp;#xfeff;&lt;/span&gt;&lt;span class=&quot;{{#ifeq:{{{default|}}}|dec|geo-default|geo-nondefault}}&quot;&gt;{{#if:{{{name|}}}|&lt;span class=&quot;vcard&quot;&gt;|}}&lt;span class=&quot;geo-dec&quot; title=&quot;Maps, aerial photos, and other data for this location&quot;&gt;{{{dec-lat-display|{{#ifexpr:{{{dec-lat}}}&lt;0|{{Coord/negzeropad|{{{dec-lat}}}|{{#expr:abs{{{dec-lat}}}}}}}°S|{{{dec-lat}}}°N}}}}} {{{dec-long-display|{{#ifexpr:{{{dec-long}}}&lt;0|{{Coord/negzeropad|{{{dec-long}}}|{{#expr:abs{{{dec-long}}}}}}}°W|{{{dec-long}}}°E}}}}}&lt;/span&gt;&lt;span style=&quot;display:none&quot;&gt;&amp;#xfeff; / &lt;span class=&quot;geo&quot;&gt;{{{dec-lat}}}; {{{dec-long}}}&lt;/span&gt;&lt;/span&gt;{{#if:{{{name|}}}|&lt;span style=&quot;display:none&quot;&gt;&amp;#xfeff; (&lt;span class=&quot;fn org&quot;&gt;{{{name|}}}&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;|}}&lt;/span&gt;]&lt;/span&gt;&lt;noinclude&gt;
<span class="plainlinks nourlexpansion">[{{Coor URL}}{{{param}}}{{#if:{{{name|}}}|&amp;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">&amp;#xfeff; / &amp;#xfeff;</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">&amp;#xfeff; / <span class="geo">{{{dec-lat}}}; {{{dec-long}}}</span></span>{{#if:{{{name|}}}|<span style="display:none">&amp;#xfeff; (<span class="fn org">{{{name|}}}</span>)</span></span>|}}</span>]</span><noinclude>
&lt;!-- BE CAREFUL WITH COPY PASTING
<!-- BE CAREFUL WITH COPY PASTING
HTMLTidy moves our whitespace around. We use &amp;#xfeff; (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 &amp;#xfeff; (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).
--&gt;{{pp-template|small=yes}}{{documentation}}[[Category:Coord template]]&lt;/noinclude&gt;
-->{{pp-template|small=yes}}{{documentation}}[[Category:Coord template]]</noinclude>

Latest revision as of 16:03, 10 October 2010