Template:Coord
![]() | 此模 |
![]() | 此Template |
![]() | 此模 |
{{coord}}
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
此模
"display=title" |
此处坐标 |
|
值 | ||||||||
---|---|---|---|---|---|---|---|---|
0° | 30° | 45° | 60° | 90° | 180° | 270° | 360° | |
Googledisplay=title
。
另请
取 代 對象
这个单一的模板將取代以下模板:
举例:
{{coord|12|N|45|W|display=title}} | {{coor title d|12|N|45|W}} |
{{coord|12|34|N|45|33|W|display=title}} | {{coor title dm|12|34|N|45|33|W}} |
{{coord|12|34|56|N|45|33|22|W|display=title}} | {{coor title dms|12|34|56|N|45|33|8|W}} |
{{coord|12|34|12|N|45|33|45|W|display=inline,title}} | {{coor at dms|12|34|12|N|45|33|45|W}} |
{{coord|10.2|-20.3|display=inline}} {{coord|10.2|-20.3}} |
{{coor d|10.2|N|-20.3|E}} |
{{coord|44.4|-111.1|type:city_region:US|display=inline,title}} | {{Geolinks-US-cityscale|44.4|-111.1}} |
{{coord|51.01234|-1.56789|type:landmark_region:GB|display=inline,title}} | {{Geolinks-UK-buildingscale|51.01234|-1.56789}} |
{{coord|-35.5|150.1|type:landmark_region: |
{{Mapit-AUS-suburbscale|lat=-35.5|long=150.1}} |
{{coord|12|34|12|N|45|33|45|W|display=title}} | {{CoorHeader|12|34|12|N|45|33|45|W}} |
用法
{{coord|latitude|longitude|坐 标参数 |模 板 参 数 }} {{coord|dd|N/S|dd|E/W|坐 标参数 |模 板 参 数 }} {{coord|dd|mm|N/S|dd|mm|E/W|坐 标参数 |模 板 参 数 }} {{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|坐 标参数 |模 板 参 数 }}
坐 标参数 :以地图服务器识别,以参 数 :值的 格式 给出,并且藉由下 划线字 符 “_”互相隔 开。常 见的坐 标参数 包括 type、region、和 scale。参 见坐 标参数 查看全面 的 列 表 。模 板 参 数 :為 模 板 自身 所 使用 ,以参 数 =值的 格式 给出,并且由 管 道 符 “|”互相隔 开。支持 的 模 板 参 数 有 display、name和 format。- display
可 以为下 列 之 一 :display=inline
—内 联(inline)显示坐 标(缺 省 值)display=title
— 显示坐 标在条目 标题旁 边(取 代 {{coor title dms}}模 板 家族 ),快 捷 方式 为display=t
display=inline,title
—同 时内联显示 和 在 标题处显示 坐 标(取 代 {{coor at dms}}模 板 家族 )注意 :使用 title属性 表明 坐 标适用 于该条目 ,而不只 是 适用于条目 中 提 及的某 一 个地点 (可能 提 及了许多地点 )——因 此该属性 只 能 在 后 一种情形下才应当省略。display=title,inline
也是有效 的 。快 捷 方式 为display=it
- format
可 以用来 强制 显示dec或 dms坐 标给所有 读者。 - name
可 以用来 注 释内联坐标,用 于在地 图服务或其他外部 用 途中 的 显示。它不应用到 条目 标题旁 ,或 顯示 於一个信息框内部的那些坐标,由 于在那 些情况下条目 标题就是隐含的 名称 。 - notes
可 以用来 指定 紧接在 坐 标后的 文字 。主要 用 于给标题旁 的 坐 标添加 脚注 。 - qid
可 以用来 指定 显示哪个数 据 项的坐 标。主要 用 于使用 维基数 据 的 信 息 框 。
- display
举例
{{coord|43.651234|-79.383333}}
|
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W | |
{{coord|43.65|-79.38}}
|
43°39′N 79°23′W / 43.65°N 79.38°W | |
{{coord|43.6500|-79.3800}}
|
43°39′00″N 79°22′48″W / 43.6500°N 79.3800°W | |
{{coord|43.651234|N|79.383333|W}}
|
43°39′04″N 79°23′00″W / 43.651234°N 79.383333°W | |
{{coord|43|29|N|79|23|W}}
|
43°29′N 79°23′W / 43.483°N 79.383°W | |
{{coord|43|29|4|N|79|23|0|W}}
|
43°29′4″N 79°23′0″W / 43.48444°N 79.38333°W | |
{{coord|43|29|4.5|N|79|23|0.5|W}}
|
43°29′4.5″N 79°23′0.5″W / 43.484583°N 79.383472°W | |
{{coord|55.752222|N|37.615556|E}}
|
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E | 莫斯 |
{{coord|55.752222|N|37.615556|E|format=dms}}
|
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E | 转换 |
{{coord|39.098095|-94.587307|format=dms}}
|
39°05′53″N 94°35′14″W / 39.098095°N 94.587307°W | |
{{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}}
|
55°45′08″N 37°36′56″E / 55.752222°N 37.615556°E | 转换 |
{{coord|33|55|S|18|25|E}}
|
33°55′S 18°25′E / 33.917°S 18.417°E | 开普 |
{{coord|35|00|N|105|00|E}}
|
35°00′N 105°00′E / 35.000°N 105.000°E | |
{{coord|22|54|30|S|43|14|37|W}}
|
22°54′30″S 43°14′37″W / 22.90833°S 43.24361°W | |
{{coord|22|S|43|W}}
|
22°S 43°W / 22°S 43°W | |
{{coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}}
|
52°28′59″N 1°53′37″W / 52.48306°N 1.89361°W |
坐 标参数
跟随
type:T
设定这个
类型(Type) | 描述(Description) | |
---|---|---|
country | ( |
1:10,000,000 |
satellite | (1:10,000,000) | |
adm1st | 1:1,000,000 | |
adm2nd | 1:300,000 | |
city(pop) | 1:30,000 ... 1:300,000 | |
city | 1:100,000 | |
airport | 1:30,000 | |
mountain | 1:100,000 | |
isle | 岛、岛屿 | 1:100,000 |
waterbody | 1:100,000 | |
forest | 1:50,000 | |
river | 1:100,000 | |
glacier | 冰川、冰冠 | 1:50,000 |
edu | 1:10,000 | |
pass | 1:10,000 | |
railwaystation | 轨道、 |
1:10,000 |
landmark | 1:10,000 | |
1:300,000 |
圆括
{{coord|46|43|N|7|58|E|type:mountain}}
给出 46°43′N 7°58′E / 46.717°N 7.967°E
scale:N
设定
标记 | 结果 | |
---|---|---|
1:1000 | {{coord|51.500611|N|0.124611|W|scale:1000}} | 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W |
1:10,000 | {{coord|51.500611|N|0.124611|W|scale:10000}} | 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W |
1:100,000 | {{coord|51.500611|N|0.124611|W|scale:100000}} | 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W |
1:1,000,000 | {{coord|51.500611|N|0.124611|W|scale:1000000}} | 51°30′02″N 0°07′29″W / 51.500611°N 0.124611°W |
region:R
设置
- {{coord|46.9524|N|7.4396|E|region:CH}} 聚焦于瑞
士 区域 ,在 46°57′09″N 7°26′23″E / 46.9524°N 7.4396°E。 - {{coord|52.5164|N|13.3775|E|region:DE-BB}} 聚焦于德
国 区域 ,在 52°30′59″N 13°22′39″E / 52.5164°N 13.3775°E。
- XZ
用 于国际海域 之 内 /之 上 的 对象(类似于UN/LOCODE) - ZZ
用 于示例 中
globe:G
Geohack扩展
source:S
举例:
一 个源于英國 地形 測量 局 (Ordnance Survey)英國 國家 格 網 參考 系統 (British national grid reference system)NM 435 355,其数据 发现于英语维基 百科 ,这样的 经/纬地理 标签应当标记为“source:enwiki-osgb36(NM435355)”。- 一个源于取自德语维基百科的数据的经度-纬度
位置 ,应当标记为“source:dewiki”。对于其他语言代 码也类似。 - 一个源于公众领域
地理 网络名称 服 务器数 据 库的位置 应标记为“source:GNS”。数 据 或 格式 信 息 不 是 必需 的 ,因 为缺省 情 况下所有 维基百科坐标都是以基于WGS84数 据 的 经度/纬度格式 存在 。类似地 ,源 于相似 的 公 众领域 GNIS数 据 库的美国 位置 应当标记为“source:GNIS”。
显示
.geo-default { display: inline } .geo-nondefault { display: inline }
.geo-dec { display: none } .geo-dms { display: inline }
.geo-default { display: inline } .geo-nondefault { display: inline }
.geo-dec { display: inline } .geo-dms { display: none }
.geo-default { display: inline } .geo-nondefault { display: inline }
.geo-dec { display: inline } .geo-dms { display: inline }
.geo-multi-punct { display: inline }
如果CSS遭到
另见en:Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates。
错误使用 维护
类名
类名geo、latitude
模 板 数 据
This template uses overloading which does not work well with the VisualEditor/TemplateData.[
描述 | 类型 | |||
---|---|---|---|---|
1 | 1 | Either degrees latitude or a signed decimal degrees latitude | 推荐 | |
2 | 2 | Either: minutes latitude, signed decimal degrees longitude or 'N' or 'S'. | 推荐 | |
3 | 3 | Either: second latitude, degrees longitude, 'N' or 'S' or GeoHack parameters | ||
4 | 4 | Either: degrees longitude, 'N', 'S', 'E' or 'W' or GeoHack parameters | ||
5 | 5 | Either: degrees longitude, minutes longitude or GeoHack parameters | ||
6 | 6 | Either: minutes longitude, 'E' or 'W' or GeoHack parameters | ||
7 | 7 | Either second longitude, or GeoHack parameters | ||
8 | 8 | 'E' or 'W'. | ||
9 | 9 | GeoHack parameters. Example: dim:30_region:US-WI_type:event | ||
维基 | qid | 从WikiData项目而不
| 单 | |
display | 显示
| 单 | 推荐 | |
name | ||||
notes | ||||
format | 单 |
外部 链接
如何 让我的 维基百科条目出现在谷歌地球地理网络层?——关于Google如何 使用 维基百科的坐标信息的FAQ
|
编者 请在/doc |