テンプレート:Coord

提供:北海道 トンネルwiki
ナビゲーションに移動 検索に移動
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

クイック解説
記事の右上に Lua エラー: callParserFunction: function "#coordinates" was not found と加えたい場合

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

{{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=事故現場}}
以下の解説が利用できます

地図座標の表示およびナビゲーションページへの誘導のためのテンプレートです。{{ウィキ座標}}と同じ働きをしますが、指定できるオプションが多少異なります。英語版と完全互換仕様かつ多数の言語版で使用されているため、他言語版からの翻訳転記の際もそのまま使用できます。座標を調べる方法についてはWikipedia:緯度・経度の調べ方をご覧下さい。また、具体的な使用方法に付いては以下の解説をご覧下さい。

表示

基礎情報テンプレート内など横幅が狭い場所に配置した場合、緯度と経度の間で自動的に改行されます。表示は{{ウィキ座標2段度分秒}}と同様になります。

テンプレート 座標表示 (幅13em)
{{Coord}} Lua エラー: callParserFunction: function "#coordinates" was not found
{{ウィキ座標2段度分秒}} 北緯43度29分4.5秒
西経79度23分0.5秒
{{ウィキ座標度分秒}} 北緯43度29分4.5秒西経79度23分0.5秒

様々な使用例

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

エラー用カテゴリ

TemplateData

このテンプレートでは引数の長さや種類が変化するためビジュアルエディターとの相性が良くありません。

これは新しいビジュアルエディターにより使用されるテンプレートのためのTemplateData文書です。

Coord

<templatedata>{ "description": "これは地図座標の表示およびナビゲーションページへの誘導のためのテンプレートです。引数の長さや種類が変化するため、ビジュアルエディターとの相性が良くありません。詳しくはテンプレートページ Template:Coord の解説をお読みください。", "params": {

       "1": {
           "label": "1",
           "description": "緯度度、符号付き10進法表記の緯度、または10進法表記の緯度。",
           "type": "number",
           "required": true
       },
       "2": {
           "label": "2",
           "description": "緯度分、符号付き10進法表記の経度、または N か S。",
           "type": "string",
           "required": true
       },
       "3": {
           "label": "3",
           "description": "緯度秒、経度度、10進法表記の経度、N か S、または座標オプション。",
           "type": "string",
           "required": false
       },
       "4": {
           "label": "4",
           "description": "N か S、E か W、経度度、または座標オプション。",
           "type": "string",
           "required": false
       },
       "5": {
           "label": "5",
           "description": "経度度、経度分、または座標オプション。",
           "type": "string",
           "required": false
       },
       "6": {
           "label": "6",
           "description": "経度分、E か W、または座標オプション。",
           "type": "string",
           "required": false
       },
       "7": {
           "label": "7",
           "description": "経度秒、または座標オプション。",
           "type": "string",
           "required": false
       },
       "8": {
           "label": "8",
           "description": "E か W。",
           "type": "string",
           "required": false
       },
       "9": {
           "label": "9",
           "description": "座標オプション。(例) dim:30_region:US-WI_type:event",
           "type": "string",
           "required": false
       },
 "display": {
   "label": "Display",
   "description": "座標の表示位置。'inline' は本文内。'title' は記事の右上。'inline,title' は本文内と記事の右上、両方に。",
   "type": "string",  
   "default": "inline",  
   "required": false
 },
 "name": {
   "label": "Name",
   "description": "地図上での表示名を指定 (デフォルトはPAGENAME)",
   "type": "string",  
   "required": false
 },
 "notes": {
   "label": "Notes",
   "description": "座標の直ぐ後にテキストを表示します。",
   "type": "string",  
   "required": false
 },
 "format": {
   "label": "Format",
   "description": "表示書式を変更します。'dec' は10進法表記、'dms' は度分秒表記。",
   "type": "string",  
   "required": false
 }

}}</templatedata>

脚註

<references group=""></references>