Template talk:Coord

From CruisersWiki

Jump to: navigation, search

Coordinates in print followed by a lengthy URL

On printed version of a page every instance of Template:Coord is followed by an URL to tools.wmflabs.org (like http://tools.wmflabs.org/geohack/geohack.php?language=en&params=37_43.6_N_26_50.6_W).

Currently it's code is:

<span class="plainlinksneverexpand">[{{Coord URL}}{{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}} <span style="white-space:nowrap">{{{1}}}°{{{2}}}′{{{3}}},</span> <span style="white-space:nowrap">{{{4}}}°{{{5}}}′{{{6}}}</span>]</span>

Here is how this could be fixed:

<span class="plainlinks nourlexpansion">[{{Coord URL}}{{{1}}}_{{{2}}}_{{{3}}}_{{{4}}}_{{{5}}}_{{{6}}} <span style="white-space:nowrap">{{{1}}}°{{{2}}}′{{{3}}},</span> <span style="white-space:nowrap">{{{4}}}°{{{5}}}′{{{6}}}</span>]</span>

Associated with MediaWiki:Print.css:

/* CSS placed here will affect the print output */
 
/* removing url */
.nourlexpansion a.external.text:after {
    display: none !important;
}

--Vadp 18:14, 10 March 2015 (GMT)

Personal tools
advertisement
Friends of Cruisers Wiki