الگو:Coord-doc-dim: تفاوت میان نسخه‌ها

از ویکی حج
(balance the coords precision)
جز (۱ نسخه واردشده)
 
(یک نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
The <code>dim:</code> parameter defines the [[diameter]] of a viewing circle centered on the coordinate. While the default unit of measurement is metres, the <code>km</code> suffix may be appended to indicate kilometres.
The <code>dim:</code> parameter defines the [[diameter]] (in meters) of a viewing circle centered on the coordinate. [[tswiki:GeoHack|GeoHack]] uses <code>dim:</code> to select a [[Scale (map)|map scale]] such that the viewing circle appears roughly 10 cm in diameter on a 72 dpi computer monitor.


[[tswiki:GeoHack|GeoHack]] uses <code>dim:</code> to select a [[Scale (map)|map scale]] such that the viewing circle appears roughly {{convert|10|cm|in|0}} in diameter on a 72 [[Dots per inch|dpi]] computer monitor.  If no <code>dim:</code>, <code>type:</code>, or <code>scale:</code> parameters are provided, GeoHack uses its default viewing circle of {{convert|30|km|mi}}.
If [[#scale:N|scale:]] is set, it overrides any <code>dim:</code> setting.


{| class="wikitable"
{| class="wikitable"
|+ Samples
|+ Samples
! Subject
! Subject
! View diameter
! D
! Markup
! Markup
! Result
! Result
|-
|-
| [[Western Hemisphere]]
| [[نیم‌کره غربی]]
| style="text-align:right;" | {{convert|10000|km|mi}}
|align=right| 10000000
| <nowiki>{{coord|0|N|90|W|dim:10000km}}</nowiki>
| <nowiki>{{coord|0|N|90|W|dim:10000000}}</nowiki>
| {{coord|0|N|90|W|dim:10000km}}
| {{coord|0|N|90|W|dim:10000000}}
|-
|-
| [[Ohio]]
| [[اوهایو]]
| style="text-align:right;" | {{convert|400|km|mi}}
|align=right| 400000
| <nowiki>{{coord|40.5|-82.5|dim:400km}}</nowiki>
| <nowiki>{{coord|40.5|-82.5|dim:400000}}</nowiki>
| {{coord|40.5|-82.5|dim:400km}}
| {{coord|40.5|-82.5|dim:400000}}
|-
|-
| [[Dresden]]
| [[درسدن]]
| style="text-align:right;" | {{convert|20000|m|mi}}
|align=right| 20000
| <nowiki>{{coord|51.03|13.73|dim:20000}}</nowiki>
| <nowiki>{{coord|51.033|13.73|dim:20000}}</nowiki>
| {{coord|51.03|13.73|dim:20000}}
| {{coord|51.033|13.73|dim:20000}}
|-
|-
| [[Statue of Liberty]]
| [[مجسمه آزادی]]
| style="text-align:right;" | {{convert|100|m|ft}}
|align=right| 100
| <nowiki>{{coord|40.6892|-74.0445|dim:100}}</nowiki>
| <nowiki>{{coord|40.6892|-74.0445|dim:100}}</nowiki>
| {{coord|40.6892|-74.0445|dim:100}}
| {{coord|40.6892|-74.0445|dim:100}}
|-
| [[Mill Ends Park]]
|align=right| 0.61
| <nowiki>{{coord|45.516194|-122.673226|dim:0.6}}</nowiki>
| {{coord|45.516194|-122.673226|dim:0.6}}
|-
|-
|}
|}

نسخهٔ کنونی تا ‏۲۸ فوریهٔ ۲۰۱۹، ساعت ۱۹:۵۳

The dim: parameter defines the diameter (in meters) of a viewing circle centered on the coordinate. GeoHack uses dim: to select a map scale such that the viewing circle appears roughly 10 cm in diameter on a 72 dpi computer monitor.

If scale: is set, it overrides any dim: setting.

Samples
Subject D Markup Result
نیم‌کره غربی 10000000 {{coord|0|N|90|W|dim:10000000}} 0°N 90°W / 0°N 90°W / 0; -90
⧼validator-fatal-error⧽


اوهایو 400000 {{coord|40.5|-82.5|dim:400000}} 40°30′N 82°30′W / 40.5°N 82.5°W / 40.5; -82.5
⧼validator-fatal-error⧽


درسدن 20000 {{coord|51.033|13.73|dim:20000}} 51°01′59″N 13°43′48″E / 51.033°N 13.73°E / 51.033; 13.73
⧼validator-fatal-error⧽


مجسمه آزادی 100 {{coord|40.6892|-74.0445|dim:100}} 40°41′21″N 74°02′40″W / 40.6892°N 74.0445°W / 40.6892; -74.0445
⧼validator-fatal-error⧽


Mill Ends Park 0.61 {{coord|45.516194|-122.673226|dim:0.6}} 45°30′58″N 122°40′24″W / 45.516194°N 122.673226°W / 45.516194; -122.673226
⧼validator-fatal-error⧽