「テンプレート:Coord」の版間の差分

提供: miniwiki
移動先:案内検索
 
1行目: 1行目:
<includeonly>{{Coord/display/{{{display|inline}}}|1={{Coord/input/{{#ifeq:{{{4|}}}||dec|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}|7={{{7|}}}|8={{{8|}}}|9={{{9|}}}|10={{{10|}}}|format={{{format|}}}|name={{{name|}}}}}}}<!--  
+
<includeonly>{{Coord/display/{{{display|inline}}}
-->{{#ifeq:{{{region|XYZ}}}|XYZ||[[Category:Coord template needing repair|R{{PAGENAME}}]]}}<!--  
+
|1={{Coord/input/{{#ifeq:{{{1|}}}||nolat|{{#ifeq:{{{4|}}}{{{5|}}}{{{6|}}}||dec|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}|dms|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}|dm|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}}}
-->{{#ifeq:{{{type|XYZ}}}|XYZ||[[Category:Coord template needing repair|T{{PAGENAME}}]]}}<!--  
+
|1={{{1|}}}
-->{{#ifeq:{{{scale|XYZ}}}|XYZ||[[Category:Coord template needing repair|S{{PAGENAME}}]]}}<!--  
+
|2={{{2|}}}
--></includeonly><noinclude>{{pp-template|small=yes}}{{template doc}}</noinclude>
+
|3={{{3|}}}
 +
|4={{{4|}}}
 +
|5={{{5|}}}
 +
|6={{{6|}}}
 +
|7={{{7|}}}
 +
|8={{{8|}}}
 +
|9={{{9|}}}
 +
|10={{{10|}}}
 +
|format={{{format|}}}
 +
|name={{{name|}}}
 +
}}{{{notes|}}}}}<!--
 +
-->{{#ifeq:{{{dim|μ}}}|μ||{{Coord/input/error2|msg=dim= should be dim:|sort_ch=D}}}}<!--
 +
-->{{#ifeq:{{{globe|μ}}}|μ||{{Coord/input/error2|msg=globe= should be globe:|sort_ch=G}}}}<!--
 +
-->{{#ifeq:{{{region|μ}}}|μ||{{Coord/input/error2|msg=region= should be region:|sort_ch=R}}}}<!--
 +
-->{{#ifeq:{{{scale|μ}}}|μ||{{Coord/input/error2|msg=scale= should be scale:|sort_ch=S}}}}<!--
 +
-->{{#ifeq:{{{source|μ}}}|μ||{{Coord/input/error2|msg=source= should be source:|sort_ch=s}}}}<!--
 +
-->{{#ifeq:{{{type|μ}}}|μ||{{Coord/input/error2|msg=type= should be type:|sort_ch=T}}}}<!--
 +
--></includeonly><noinclude>
 +
{{Documentation}}</noinclude>

2018/9/30/ (日) 15:19時点における最新版

view edit Documentation

地図座標の表示およびナビゲーションページへの誘導のためのテンプレートです。{{ウィキ座標}}と同じ働きをしますが、指定できるオプションが多少異なります。英語版との完全互換仕様になっているため、主に英語版記事からの転記に使用します。

クイック解説[ ][ ]
記事の右上に 西経4度27分32.7秒北緯57.30625度 西経4.459083度57.30625; -4.459083 と加えたい場合

○度○分○秒形式のデータを持っている場合は次のように記入します

{{Coord|57|18|22.5|N|4|27|32.7|W|display=title}}

10進数形式のデータを持っている場合は

{{Coord|57.30625|-4.459083|format=dms|display=title}}

と記入します。場所は記事の最後、デフォルトソートのすぐ上に記入します。

座標オプションを付加できます。アンダースコア ("_")で区切ります。
  • dim: dim:N (表示範囲を直径(単位:メートル)で指定)
  • region: region:R (地域をISO 3166-1 alpha-2またはISO 3166-2で指定)
  • type: type:T (種別を指定、landmarkcity(30,000) など)
  • scale: scale:S (縮尺を指定、500、50000 など)

他のオプションも付加できます。パイプ ("|")で区切ります

  • display
    display=inline (デフォルト) 本文内に座標を表示
    display=title 記事の右上に座標を表示
    display=inline,title 本文内と記事の右上、両方に座標を表示
  • name
    name=X 地図上での表示名を指定 (デフォルトはPAGENAME)

これら各種オプションを指定すると以下のようになります。

{{Coord|57|18|22.5|N|4|27|32.7|W|dim:30_region:US-WI_type:event
|display=inline,title|name=事故現場}}
main}}以下の解説が利用できます

様々な使用例

{{coord|43.651234|-79.383333}} 西経79度23分00秒北緯43.651234度 西経79.383333度43.651234; -79.383333 トロント - 厳密で精度の高い10進法表記 - 北緯と西経
{{coord|43.65|-79.38}} 西経79度23分北緯43.65度 西経79.38度43.65; -79.38 トロント - 省略的で精度の低い10進法表記
{{coord|43.6500|-79.3800}} 西経79度22分48秒北緯43.6500度 西経79.3800度43.6500; -79.3800 トロント - 末尾にゼロを付けた中位の精度
{{coord|43.651234|N|79.383333|W}} 西経79度23分00秒北緯43.651234度 西経79.383333度43.651234; -79.383333 トロント - 方位(東西南北)のアルファベットを明記した10進法表記
{{coord|43|29|N|79|23|W}} 西経79度23分北緯43.483度 西経79.383度43.483; -79.383 トロント - 度分
{{coord|43|29|4|N|79|23|0|W}} 西経79度23分0秒北緯43.48444度 西経79.38333度43.48444; -79.38333 トロント - 度分秒
{{coord|43|29|4.5|N|79|23|0.5|W}} 西経79度23分0.5秒北緯43.484583度 西経79.383472度43.484583; -79.383472 トロント - 度と分と端数付き秒
{{coord|55.752222|N|37.615556|E}} 東経37度36分56秒北緯55.752222度 東経37.615556度55.752222; 37.615556 モスクワ - 北緯と東経
{{coord|55.752222|N|37.615556|E|format=dms}} 東経37度36分56秒北緯55.752222度 東経37.615556度55.752222; 37.615556 度分秒方式へ変換
{{coord|39.098095|-94.587307|format=dms}} 西経94度35分14秒北緯39.098095度 西経94.587307度39.098095; -94.587307 方位(東西南北)のアルファベットを明記しない度分秒方式への変換
{{coord|55.752222|N|37.615556|E|​format=dec|name=モスクワ}} 東経37度36分56秒北緯55.752222度 東経37.615556度55.752222; 37.615556 (モスクワ) 度分秒方式への変換と地図上のラベル名表記
{{coord|33|55|S|18|25|E}} 東経18度25分南緯33.917度 東経18.417度-33.917; 18.417 ケープタウン - 南緯と東経
{{coord|35|00|N|105|00|E}} 東経105度00分北緯35度 東経105度35; 105 中華人民共和国
{{coord|22|54|30|S|43|14|37|W}} 西経43度14分37秒南緯22.90833度 西経43.24361度-22.90833; -43.24361 リオデジャネイロ - 南緯と西経
{{coord|22|S|43|W}} 西経43度南緯22度 西経43度-22; -43 緯線と経線の交差点
{{coord|52|28|59|N|1|53|37|W|​display=inline,title|region:GB_type:city}} 西経1度53分37秒北緯52.48306度 西経1.89361度52.48306; -1.89361 バーミンガム - 地域コードと倍率のパラメータを設定
{{coord|0|40|26.69|N|23|28|22.69|E|globe:moon_type:landmark}} 東経23度28分22.69秒北緯0.6740806度 東経23.4729694度0.6740806; 23.4729694 月におけるアポロ11号の着陸地点
{{coord|22.697|N|48.222|W|globe:mars_type:landmark}} 西経48度13分19秒北緯22.697度 西経48.222度22.697; -48.222 火星内の地点
{{coord|5|S|351|E|globe:venus_type:landmark}} 東経351度南緯5度 東経351度-5; 351 金星内の地点

af:Sjabloon:Coord ar:قالب:كوورد be-x-old:Шаблён:Каардынаты bg:Шаблон:Coord bs:Template:coord ca:Template:Coord cs:Šablona:Geo dms en:Template:Coord eo:Ŝablono:Koord es:Plantilla:Coord fr:Modèle:Coord fur:Model:Coord hsb:Předłoha:Koord ia:Patrono:Coord it:Template:Coord no:Mal:Koordinater pl:Szablon:Koordynaty pt:Predefinição:Coord ro:Format:Coord ru:Template:Coord simple:Template:Coord sl:Predloga:Koord sv:Mall:Coord uk:Шаблон:Координати vo:Samafomot:Coord zh:Template:Coord