Template:Location map
![]() | 請参閱 {{editprotected}} 请求 |
![]() | 此模 |
使用 “caption=xxx”可 以给地 图加上 外 边框(缺 省 的 “caption=”则保留 地 图的无边框 状 态)- 标示
和 标签不 会 去 检查经度和 纬度的 有效 性 ,并且有 可能 被 置 于页面 的 任 何 位置 ,甚至超越 页面底部 要 忽 略 标示,可 以设置 marksize=1,即 1个像素的 宽度地 图需要 设置宽度,例 如“width=250”(省略 输入“px”),否 则图像 将 会 拉 伸 至 整 个页面 要 放置 多 个标示 和 标签,请参看 要 沿着汇合的 经线做映射 ,请参考 :Template:Location_map_skew
使用 方法
{{Location map | {{{1}}} | width = | float = | border = | caption = | alt = | relief = | AlternativeMap = | overlay_image = | label = | label_size = | position = | background = | mark = | marksize = | link = | lat_deg = | lon_deg = }} |
{{Location map | {{{1}}} | width = | float = | border = | caption = | alt = | relief = | AlternativeMap = | overlay_image = | label = | label_size = | position = | background = | mark = | marksize = | link = | lat_deg = | lat_min = | lat_sec = | lat_dir = | lon_deg = | lon_min = | lon_sec = | lon_dir = }} |
可用 地圖
- Location map
- Location map+
- Location map+/AlternativeMap
- Location map+/doc
- Location map-line
- Location map-line/draw line
- Location map-line/x
- Location map-line/y
- Location map/Info
- Location map/Info/code
- Location map/Info/doc
- Location map/doc
- Location map/sandbox
- Location map/sandbox quick
- Location map/testcases
- Location map AFC
- Location map Afghanistan
- Location map Afghanistan/doc
- Location map Africa
- Location map Africa/doc
- Location map Afro-Eurasia
- Location map Albania
- Location map Albania/doc
- Location map Algeria
- Location map Algeria/doc
- Location map America
- Location map Andorra
- Location map Andorra/doc
- Location map Angola
- Location map Angola/doc
- Location map Antarctica
- Location map Antarctica/doc
- Location map Antigua and Barbuda
- Location map Antigua and Barbuda/doc
- Location map Arab world1
- Location map Arctic
- Location map Argentina
- Location map Argentina/doc
- Location map Argentina Buenos Aires
- Location map Argentina Buenos Aires Province
- Location map Armenia
- Location map Armenia/doc
- Location map Arpetania
- Location map Aruba
- Location map Arunachal Pradesh
- Location map Asia
- Location map Asia/doc
- Location map Asia2
- Location map Atlantic Ocean
- Location map Atlantic Ocean/doc
- Location map Austral Islands
- Location map Australia
- Location map Australia/doc
- Location map Australia Heard and McDonald Islands
- Location map Australia New South Wales
- Location map Australia New South Wales/doc
- Location map Australia Norfolk Island
- Location map Australia Northern Territory
- Location map Australia Northern Territory/doc
- Location map Australia Queensland
- Location map Australia Queensland/doc
- Location map Australia South Australia
- Location map Australia South Australia/doc
- Location map Australia Sydney
- Location map Australia Tasmania
- Location map Australia Tasmania/doc
- Location map Australia Victoria
- Location map Australia Victoria/doc
- Location map Australia Victoria metropolitan Melbourne
- Location map Australia Western Australia
- Location map Australia Western Australia/doc
- Location map Austria
- Location map Austria/doc
- Location map Austria Burgenland
- Location map Austria Carinthia
- Location map Austria Lower Austria
- Location map Austria Salzburg
- Location map Austria Styria
- Location map Austria Tyrol
- Location map Austria Upper Austria
- Location map Austria Vienna
- Location map Austria Vorarlberg
- Location map Azerbaijan
- Location map Azerbaijan/doc
- Location map Azerbaijan Baku
- Location map Bahamas
- Location map Bahamas/doc
- Location map Bahrain
- Location map Bahrain/doc
- Location map Baku, Azerbaijan
- Location map Bangkok
- Location map Bangladesh
- Location map Bangladesh/doc
- Location map Barbados
- Location map Barbados/doc
- Location map Belarus
- Location map Belarus/doc
- Location map Belgium
- Location map Belgium/doc
- Location map Belgium Antwerp
- Location map Belgium Brussels
- Location map Belgium Brussels Metro
- Location map Belgium Flemish Brabant
- Location map Belgium Hainaut
- Location map Belgium Limburg
- Location map Belgium Liège
- Location map Belgium Liège City
- Location map Belgium Luxembourg
- Location map Belgium Namur
- Location map Belgium Railway
- Location map Belgium Walloon Brabant
- Location map Belgium West Flanders
- Location map Belize
- Location map Belize/doc
- Location map Benin
- Location map Benin/doc
- Location map Berkshire
- Location map Berkshire/doc
- Location map Bhutan
- Location map Bhutan/doc
- Location map Black Sea
- Location map Bolivia
- Location map Bolivia/doc
- Location map Bonaire
- Location map Bosnia
- Location map Bosnia/doc
- Location map Botswana
- Location map Botswana/doc
- Location map Bourgogne-Franche-Comté
- Location map Brazil
- Location map Brazil/doc
- Location map Brazil Bahia
- Location map Brazil Brasília
- Location map Brazil Rio de Janeiro City
- Location map Brazil São Paulo
- Location map Brunei
- Location map Brunei/doc
- Location map Buckinghamshire
- Location map Buckinghamshire/doc
- Location map Bulgaria
- Location map Bulgaria/doc
- Location map Burkina Faso
- Location map Burkina Faso/doc
- Location map Burundi
- Location map Burundi/doc
- Location map Cambodia
- Location map Cambodia/doc
- Location map Cambridgeshire
- Location map Cambridgeshire/doc
- Location map Cameroon
- Location map Cameroon/doc
- Location map Canada
- Location map Canada/doc
- Location map Canada Alberta
- Location map Canada Alberta/doc
- Location map Canada British Columbia
- Location map Canada British Columbia/doc
- Location map Canada Central Quebec
- Location map Canada Manitoba
- Location map Canada Manitoba/doc
- Location map Canada Montreal
- Location map Canada Montreal/doc
- Location map Canada New Brunswick
- Location map Canada New Brunswick/doc
- Location map Canada Newfoundland and Labrador
- Location map Canada Newfoundland and Labrador/doc
- Location map Canada Northwest Territories
- Location map Canada Nova Scotia
- Location map Canada Nunavut
- Location map Canada Nunavut/doc
- Location map Canada Ontario
- Location map Canada PEI
- Location map Canada PEI/doc
- Location map Canada Quebec
- Location map Canada Quebec/doc
- Location map Canada Saskatchewan
- Location map Canada Saskatchewan/doc
- Location map Canada Southern Ontario
- Location map Canada Toronto
- Location map Canada Yukon
- Location map Canary Islands
- Location map Canary Islands/doc
- Location map Cape Verde
- Location map Cape Verde/doc
- Location map Caribbean
- Location map Caucasus mountains
- Location map Caucasus mountains/doc
- Location map Central African Republic
- Location map Central African Republic/doc
- Location map Central London
- Location map Central London/doc
- Location map Chad
- Location map Chad/doc
- Location map Cheshire
- Location map Cheshire/doc
- Location map Chile
- Location map Chile/doc
- Location map China
- Location map China/doc
- Location map China Anhui
- Location map China Beijing
- Location map China Beijing urban
- Location map China Chongqing
- Location map China Dongfang Spaceport sea launch area map
- Location map China Fujian
- Location map China Fujian/doc
- Location map China Fujian Xiapu
- Location map China Gansu
- Location map China Guangdong
- Location map China Guangdong/doc
- Location map China Guangdong Foshan Shunde
- Location map China Guangdong Foshan Shunde Ronggui
- Location map China Guangxi
- Location map China Guangxi relief
- Location map China Guizhou
- Location map China Hainan
- Location map China Hainan/doc
- Location map China Hebei
- Location map China Hebei Shijiazhuang
- Location map China Heilongjiang
- Location map China Heilongjiang/doc
- Location map China Henan
- Location map China Henan Luoyang
- Location map China Hubei
- Location map China Hunan
- Location map China Inner Mongolia
- Location map China Inner Mongolia/doc
- Location map China Inner Mongolia Dongfeng spacecraft landing site
- Location map China Inner Mongolia Siziwangqi spacecraft landing site
- Location map China Inner Mongolia relief
- Location map China Jiangsu
- Location map China Jiangsu Nanjing
- Location map China Jiangxi
- Location map China Jilin
- Location map China Jilin/doc
- Location map China Liaoning
- Location map China Liaoning/doc
- Location map China Liaoning relief
- Location map China Ningxia
- Location map China Northern Plain relief
- Location map China Qinghai
- Location map China Qinghai/doc
- Location map China Qinghai relief
- Location map China Shaanxi Baoji
- Location map China Shandong
- Location map China Shandong/doc
- Location map China Shandong Jinan
- Location map China Shandong Qingdao
- Location map China Shandong Taian
- Location map China Shandong Taian/doc
- Location map China Shanghai
- Location map China Shanxi
- Location map China Sichuan
- Location map China Sichuan/doc
- Location map China Sichuan Chengdu urban
- Location map China Sichuan relief
- Location map China Tianjin
- Location map China Tibet
- Location map China Tibet/doc
- Location map China Tibet Ngari
- Location map China Tibet Ngari/doc
- Location map China Tibet Ngari relief
- Location map China Tibet Ngari relief/doc
- Location map China Tibet relief
- Location map China Xinjiang
- Location map China Xinjiang/doc
- Location map China Xinjiang Bayingolin
- Location map China Xinjiang Bayingolin/doc
- Location map China Xinjiang Bayingolin relief
- Location map China Xinjiang Bayingolin relief/doc
- Location map China Xinjiang Northern
- Location map China Xinjiang Northern/doc
- Location map China Xinjiang Northern relief
- Location map China Xinjiang Northern relief/doc
- Location map China Xinjiang Southern
- Location map China Xinjiang Southern/doc
- Location map China Xinjiang Southern relief
- Location map China Xinjiang Southern relief/doc
- Location map China Xinjiang relief
- Location map China Yunnan
- Location map China Yunnan/doc
- Location map China Yunnan Dehong
- Location map China Zhejiang
- Location map China Zhejiang Hangzhou
- Location map China Zhejiang Hangzhou urban
- Location map China relief
- Location map China relief/doc
- Location map Chubut Province Argentina
- Location map Chubut Province Argentina/doc
- Location map Colombia
- Location map Colombia/doc
- Location map Comoros
- Location map Comoros/doc
- Location map Cornwall
- Location map Cornwall/doc
- Location map Costa Rica
- Location map Costa Rica/doc
- Location map County Down
- Location map County Durham
- Location map County Durham/doc
- Location map Crimea
- Location map Croatia
- Location map Croatia/doc
- Location map Cuba
- Location map Cuba/doc
- Location map Cuba1
- Location map Cuba1/doc
- Location map Cumbria
- Location map Cumbria/doc
- Location map Curaçao
- Location map Cyprus
- Location map Cyprus/doc
- Location map Czech Republic
- Location map Czech Republic/doc
- Location map Côte d'Ivoire
- Location map Côte d'Ivoire/doc
- Location map Democratic Republic of the Congo
- Location map Democratic Republic of the Congo/doc
- Location map Denmark
- Location map Denmark/doc
- Location map Denmark Capital Region
- Location map Denmark Copenhagen
- Location map Devon
- Location map Devon/doc
说明:
建立 新 地圖 步 驟
- 找到
一 幅 合 适的使用 等 距圆柱 投影 的 空白 地 图 - 以「Template:Location map location」
的 名稱 建立 模 板 (可 從 其他地圖 模 板 複製 過 來 ,並 輸入 相關 數 據 )
範 例
带默认说明 的 地 图(度 /分 )
{{Location map | Croatia | alt =位 於島 上 的 帕格 | lat_deg = 44 | lat_min = 26 | lon_deg = 15 | lon_min = 3 }}
带默认说明 的 地 图(十进制坐标)
{{Location map | Croatia | alt =位 於島 上 的 帕格 | lat_deg = 44.44 | lon_deg = 15.05 }}
带默认说明和 替 代 文字 的 地 图
{{Location map | Croatia | width = 200 | float = right | alt =位 於島 上 的 帕格 | label = 帕格 | position = right | mark = Green pog.svg <!--绿色标示点 --> | lat_deg = 44 | lat_min = 26 <!-- default: lat_dir = N --> | lon_deg = 15 | lon_min = 3 <!-- default: lon_dir = E --> }}
标示和 标签位 于地图之外
{{Location map | Croatia | width = 200 | float = right | caption = | alt =里 米 尼 在 意 大利 的 位置 (地圖 之 外 ) | 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 =里 米 尼 | position = right }}
带自定 义说明和 文字 背景 的 地 图
Imotski
{{Location map |Croatia |label=Imotski |lat=43.44 |long=17.21 |position=right |width=300 |float=right |background=#FFFFDD |caption=Imotski |
標示 和 標 簽都放 大 了 的 地圖
{{Location map | Italy | width = 200 | float = right | caption =里 米 尼 在 意 大利 的 位置 | alt =意 大利 的 地圖 ,標記 顯示 里 米 尼 的 位置 | label =里 米 尼 | label_size = 150 <!--150% of normal size--> | position = bottom | background = orange | mark = Orange_pog.svg | marksize = 12 <!--size in pixels--> | lat_deg = 44.05 | lon_deg = 12.57 }}
不 带说明 的 地 图
Brčko({{Location map |Bosnia |label=Brčko |position=left |width=150 |lat=44.87 |long=18.81 |float=right |caption= }} |
地形 图参数
Also demonstrates automatic positioning of label to the left, due to far right position of mark.
{{Location map | Nepal | relief = yes | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal | label = Biratnagar | mark = Airplane silhouette.svg | marksize = 10 | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E }}
{{Location map | Nepal | relief = | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal | label = Biratnagar | mark = Airplane silhouette.svg | marksize = 10 | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E }}
置 换成其它地 图的参 数 (AlternativeMap)
{{Location map | Italy | AlternativeMap = Italy location map.svg | width = 200 | float = right | caption =羅 馬 在 意 大利 的 位置 | alt =意 大利 的 地圖 ,標記 顯示 羅 馬 的 位置 | label =羅 馬 | lat_deg = 41.9 | lon_deg = 12.5 }}
在 不同 地 图显示 同 一 坐 标
{{Location map | Scotland | 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 }}
{{Location map | United Kingdom | 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 }}
西半球
{{Location map many | United Kingdom | width = 180 | float = right | caption =蘇 格 蘭 的 洛 克 比 | label =洛 克 比 | position = right | lat_deg = 55 | lat_min=07 | lat_sec=16 | lat_dir=N | lon_deg = 3 | lon_min=21 | lon_sec=19 | lon_dir=W }}
幅 员超过180°经度的 国家
{{Location map | Fiji | width = 180 | float = right | label =蘇 瓦 | position = right | background = yellow | mark = Locator_Dot.png | marksize = 7 | lat_deg = 18 | lat_min = 8 | lat_sec = 0 | lat_dir = S | lon_deg = 178 | lon_min = 26 | lon_sec = 0 | lon_dir = E }}
用 户选择多个地图
需
{{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 }}
“coordinates”與 “lat_deg”“lat”
如果“coordinates”
{{Location map | Croatia | coordinates = {{Coord|42|26|N|14|3|E}} | lat_deg = 44 | lat_min = 26 | lon_deg = 15 | lon_min = 3 }}
如果“coordinates”
{{Location map | Croatia | coordinates = {{Coord|42|26|N|14|3|E}} | lat = 44.4333 | long = 15.05 | caption = “coordinates”參 數 優先 於“lat”(“lat”等 參 數 所 示 位置 位 於克羅 地 亞 海岸 ) }}
全部 参 数
描述 | ||
---|---|---|
{1} | ||
AlternativeMap= | Location map {1}|image | [[File: {}]] |
background= | background-color: {}; | |
border= | #CCCCCC | border: {}; |
caption= | ||
float= | float: {}; clear: {}; | |
label= | {PAGENAME} | |
lat= | 0 | |
lat_deg= | 0 | |
lat_dir= | ||
lat_min= | 0 | |
lat_sec= | 0 | |
long= | 0 | |
lon_deg= | 0 | |
lon_dir= | ||
lon_min= | 0 | |
lon_sec= | 0 | |
mark= | Red pog.svg | [[File: {}]] |
marksize= | 8 | [[File: {}px]] font-size: {}px; |
position= | right | |
width= | 240 | File: {}px width: ({}+2)px; |
另請參 見
- Template:Location map many –
放置 多 个标示 和 标签 - Template:Location map+ –
放置 标示和 标签的 长列表 - Template:Location map skew – 沿着汇合
的 经线做映射 (非 等 距圆柱 投影 ) - commons:Category:Map pointers
无描
描述 | 类型 | |||
---|---|---|---|---|
width | width | 以像 | ||
default_width | default_width | 以像 | ||
max_width | max_width | |||
float | float | |||
border | border | |||
caption | caption | |||
alt | alt | Alt text for map; used by screen readers. See WP:ALT. | ||
relief | relief |
编者 请在/doc |