Template:UF-coord-classes: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Voice of Clam
Add code for disabling blue globe and wikiminiatlas
meta>Stepheng3
rm redundant
Line 1: Line 1:
By default coordinates are displayed in the format in which they are specified.
To always display coordinates as DMS values, add this to [[Special:Mypage/monobook.css|your monobook.css]]:
To always display coordinates as DMS values, add this to [[Special:Mypage/monobook.css|your monobook.css]]:
:<code>.geo-default { display: inline }<br />.geo-nondefault { display: inline }<br />.geo-dec { display: none }<br />.geo-dms { display: inline }</code>
:<code>.geo-default { display: inline }<br />.geo-nondefault { display: inline }<br />.geo-dec { display: none }<br />.geo-dms { display: inline }</code>

Revision as of 20:51, 15 January 2010

To always display coordinates as DMS values, add this to your monobook.css:

.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: none }
.geo-dms { display: inline }

To always display coordinates as decimal values, add this to your monobook.css:

.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: none }

To display coordinates in both formats, add this to your monobook.css:

.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: inline }
.geo-multi-punct { display: inline }

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 monobook.js

var wma_settings = {enabled:false}

Note that this will disable WikiMiniAtlas

See also Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates.