Template:UF-coord-classes: Difference between revisions
meta>Pigsonthewing update |
m 32 revisions imported |
||
| (30 intermediate revisions by 20 users not shown) | |||
| Line 1: | Line 1: | ||
To always display coordinates as DMS values, add this to [[Special:Mypage/common.css|your common.css]]: | |||
<syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> | |||
.geo-default { display: inline } | |||
.geo-nondefault { display: inline } | |||
.geo-dec { display: none } | |||
.geo-dms { display: inline } | |||
</syntaxhighlight> | |||
To always display coordinates as | To always display coordinates as decimal values, add this to [[Special:Mypage/common.css|your common.css]]: | ||
: | <syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> | ||
.geo-default { display: inline } | |||
.geo-nondefault { display: inline } | |||
.geo-dec { display: inline } | |||
.geo-dms { display: none } | |||
</syntaxhighlight> | |||
To | To display coordinates in both formats, add this to [[Special:Mypage/common.css|your common.css]]: | ||
: | <syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> | ||
.geo-default { display: inline } | |||
.geo-nondefault { display: inline } | |||
.geo-dec { display: inline } | |||
.geo-dms { display: inline } | |||
.geo-multi-punct { display: inline } | |||
</syntaxhighlight> | |||
If CSS is disabled, or you have an old copy of [[MediaWiki:Common.css]] cached, you will see both formats. (You can either clear your cache or manually refresh this URL: {{Plain link|url=//en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400}}.) | |||
To disable display of the blue globe adjacent to coordinates, add this to [[Special:Mypage/common.js|your common.js]]: | |||
<syntaxhighlight lang="javascript" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> | |||
var wma_settings = {enabled:false} | |||
</syntaxhighlight> | |||
Note that this will disable [[meta:WikiMiniAtlas|WikiMiniAtlas]]. | |||
See also [[Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates]]. | See also [[Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates]].<noinclude> | ||
[[Category:Coord template]] | |||
[[Category:Microformat (uF) message templates]] | |||
[[Category:WikiProject Geographical coordinates|τ]] | |||
</noinclude> | |||
Latest revision as of 01:08, 3 September 2020
To always display coordinates as DMS values, add this to your common.css: <syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> .geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: none } .geo-dms { display: inline } </syntaxhighlight>
To always display coordinates as decimal values, add this to your common.css: <syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> .geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: inline } .geo-dms { display: none } </syntaxhighlight>
To display coordinates in both formats, add this to your common.css: <syntaxhighlight lang="css" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> .geo-default { display: inline } .geo-nondefault { display: inline } .geo-dec { display: inline } .geo-dms { display: inline } .geo-multi-punct { display: inline } </syntaxhighlight>
If CSS is disabled, or you have an old copy of MediaWiki:Common.css cached, you will see both formats. (You can either clear your cache or manually refresh this URL: [1].)
To disable display of the blue globe adjacent to coordinates, add this to your common.js: <syntaxhighlight lang="javascript" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> var wma_settings = {enabled:false} </syntaxhighlight> Note that this will disable WikiMiniAtlas.
See also Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates.