Template:Location map
このテンプレートは52,000 |
Luaモジュールを |
このテンプレートを
用法
locationというパラメータは、 {Template:Location map location} もしくは モジュール:Location map/data/location のlocation(
角度 単位 の座標
{{Location map | location | lat_deg = | lon_deg = | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
度 分秒 の座標
{{Location map | location | lat_deg = 52 | lat_min = 52 | lat_sec = | lat_dir = | lon_deg = 13 | lon_min = 41 | lon_sec = | lon_dir = | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
座標 テンプレートを使用
{{Location map | location | coordinates= | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
Wikidata のプロパティを使用
{{Location map | location | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
引数
{{{1}}} | 1 | |
---|---|---|
lat_deg | 0 | |
lat_deg | 0 | |
lat_min | 0 | |
lat_sec | 0 | |
lat_dir | N | |
lon_deg | 0 | |
lon_deg | 0 | |
lon_min | 0 | |
lon_sec | 0 | |
lon_dir | E | |
coordinates | {{coord}}を|display= 、|format= といった | |
label | {{PAGENAME}} | ラベルのテキスト |
label_size | 100 | ラベルのテキストの |
position | right | マークに |
background | transparent | ラベルの |
mark | Red pog.svg | マークに |
marksize | 8 | マークのサイズをpx font-size: {}px;) |
width | 240 | width: ({}+2)px;) |
float | right | |
border | #CCC | |
caption | ラベルのテキスト (location map |
|
alt | mapの | |
AlternativeMap | {{Location map {{{1}}}|image}} |
地点 を複数 表示 させる場合
利用 可能 な地図
新 しい地図 を作 るには
英語 版 に欲 しいモジュールがある場合
まずは
地図 はあるが英語 版 モジュールが無 い場合
この
この
return { name = 'ベルギー', top = 51.8, bottom = 49.2, left = 2.2, right = 6.9, image = 'Belgium location map.svg', image1 = 'Belgium relief location map.jpg' }
例
規定 値 の幅 、位置 、ラベルの位置 、地図 説明 文 (角度 表記 の座標 )
{{Location map | Croatia | alt = Pag is on an island. | lat_deg = 44.44 | lon_deg = 15.05 }}
規定 値 の地図 説明 文 (度 /分 表記 )
{{Location map | Croatia | lat_deg = 44 | lat_min = 26 | lon_deg = 15 | lon_min = 3 | label = Pag | position = right | mark = Green pog.svg <!--green dot--> | width = 200 | float = right | alt = Pag is on an island. }}
地図 の外 に出 ているポイントとラベル
{{Location map | Croatia | width = 200 | float = right | caption = | alt = Rimini in Italy (outside the map) | lat_deg = 44.05 | lon_deg = 12.57 <!--outside map's left border at 13.1--> | outside = 1 <!-- we're aware the point is outside the map, so suppress the warning category --> | label = Rimini | position = right }}
任意 の地図 説明 文 と背景 色 を設定 した地図
{{Location map | Croatia | lat_deg = 43.44 | lon_deg = 17.21 | label = Imotski | position = right | background = #FFFFDD | width = 300 | float = right | caption = Imotski in Croatia | alt = Imotski is in Croatia. }}
ポイントとラベルを拡大 した地図
{{Location map | Croatia | lat_deg = 44.44 | lon_deg = 15.05 | label = Pag | label_size = 200 <!--200% larger--> | position = right | background = #FFFFDD | marksize = 14 | width = 200 | float = right | caption = Pag Island in Croatia | alt = Pag is on an island }}
地図 説明 文 と罫線 を省 いた地図
{{Location map | Bosnia | lat_deg = 44.87 | lon_deg = 18.81 | label = Brčko | position = left | width = 200 | float = right | caption = | alt = Brčko is in northeast Bosnia. }}
別 の地図 画像 を使用 した地図
{{Location map | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal }}
{{Location map | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal | AlternativeMap = Nepal relief location map.jpg }}
地形 図
{{Location map | Mexico | label = Popocatépetl | lat_deg = 19 | lat_min = 1 | lat_sec = 20 | lat_dir = N | lon_deg = 98 | lon_min = 37 | lon_sec = 40 | lon_dir = W | width = 200 | relief = 1 }}
{{Location map | Mexico | label = Popocatépetl | lat_deg = 19 | lat_min = 1 | lat_sec = 20 | lat_dir = N | lon_deg = 98 | lon_min = 37 | lon_sec = 40 | lon_dir = W | width = 200 | relief =
同 一 地点 の地図 を選択肢 付 きで複数 表示
{{Location map | UK Scotland#UK | relief = 1 | width = 180 | float = right | caption = Lockerbie in Scotland, UK | alt = Lockerbie is in southern Scotland. | label = Lockerbie | mark = Blue_pog.svg | marksize = 9 | lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N | lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W }}
180度 の子午線 をまたぐ地図
{{Location map | Fiji | label=Suva | lat_deg = 18 | lat_min = 8 | lat_sec = 0 | lat_dir = S | lon_deg = 178 | lon_min = 26 | lon_sec = 0 | lon_dir = E | position = right | background = yellow | mark = Locator_Dot.png | marksize = 7 | width = 200 | float = right }}
座標 テンプレートの使用 で表示 した地図
{{Location map|Tokyo city |label=東京 駅 |coordinates={{coord|35|40|52|N|139|46|0|E}} | position = right | width = 200 | float = right }}
エラー表示 された場合
- Lua エラー モジュール:Location_map
内 、xxx行 目 :緯度 の値 が指定 されていません。
というエラーが
インフォボックステンプレートの
| coords = {{Coord|10.399768|N|45.900335|E|display=title,inline}}
なら
| coordinates = {{Coord|10.399768|N|45.900335|E|display=title,inline}}
とすればよいでしょう。
あるいはインフォボックステンプレートの
| coordinates = {{Coord|60.083389|-64.380778|type:landmark|display=inline}}
の
| longitude = 60.083389 | latitude = -64.380778
と
| coordinates = {{coord|8|13|50|N|46|19|36|E|region:SO-TO|display=inline,title}}
の
|latd=8 |latm=13 |lats=50 |latNS=N |longd=46 |longm=19 |longs=36 |longEW=E
と
TemplateData
このテンプレートを
パラメーター | ||||
---|---|---|---|---|
1 |
| |||
lat_deg | マーク
| |||
lat_min | マーク | |||
lat_sec | マーク | |||
lat_dir |
| |||
lon_deg | マーク
| |||
lon_min | マーク | |||
lon_sec | マーク | |||
lon_dir |
| |||
Template:coord | coordinates | Template:coordを
| ||
マークラベル | label | マークに
| ||
マークラベルの | label_size | マークラベルの
| ||
マークに | position | マークに
| ||
マークラベルの | background | マークラベルの
| ||
マークの | mark | マークに
| ファイル | |
マークのサイズ | marksize | マーク
| ||
width |
| |||
float |
| |||
border |
| |||
caption |
| |||
mapの | alt |
| ||
AlternativeMap |
| ファイル |
関連 ページ
- ウィキメディア・コモンズには、
地図 のポイント画像 に関 するカテゴリがあります。 - ウィキメディア・コモンズには、
地図 のマーカーに関 するメディアがあります。 - Template:Location map many
- Template:Location map+