الگو:UF-coord-classes: تفاوت میان نسخهها
جز (۱ نسخه واردشده) |
جز (۱ نسخه واردشده) |
||
(یک نسخهٔ میانی ویرایش شده توسط یک کاربر دیگر نشان داده نشد) | |||
خط ۱: | خط ۱: | ||
To always display coordinates as DMS values, add this to [[Special:Mypage/ | To always display coordinates as DMS values, add this to [[Special:Mypage/common.css|your common.css]]: | ||
: | <source 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 } | |||
</source> | |||
To always display coordinates as decimal values, add this to [[Special:Mypage/ | To always display coordinates as decimal values, add this to [[Special:Mypage/common.css|your common.css]]: | ||
: | <source 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 } | |||
</source> | |||
To display coordinates in both formats, add this to [[Special:Mypage/ | To display coordinates in both formats, add this to [[Special:Mypage/common.css|your common.css]]: | ||
: | <source 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 } | |||
</source> | |||
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: | 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/ | To disable display of the blue globe adjacent to coordinates, add this to [[Special:Mypage/common.js|your common.js]]: | ||
: | <source lang="javascript" style="display:table; padding:0.5em; margin-left:1em; border-radius:2px"> | ||
Note that this will disable [[meta:WikiMiniAtlas|WikiMiniAtlas]] | var wma_settings = {enabled:false} | ||
</source> | |||
Note that this will disable [[meta:WikiMiniAtlas|WikiMiniAtlas]]. | |||
See also [[ | See also [[Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates]].<noinclude> | ||
<noinclude> | |||
[[ | [[Category:Coord template]] | ||
[[ | [[Category:Microformat (uF) message templates]] | ||
[[Category:WikiProject Geographical coordinates|τ]] | |||
</noinclude> | </noinclude> |
نسخهٔ کنونی تا ۲۵ دسامبر ۲۰۱۹، ساعت ۱۳:۲۵
To always display coordinates as DMS values, add this to your common.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 common.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 common.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: [۱].)
To disable display of the blue globe adjacent to coordinates, add this to your common.js:
var wma_settings = {enabled:false}
Note that this will disable WikiMiniAtlas.
See also Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates.