Template:Infobox factory
外观
| 此模板使用Lua语言: |
使用方法
[编辑]| [[File:{{{image}}}|frameless|alt={{{alt}}}|upright={{{image_upright}}}|{{{alt}}}]] {{{caption}}} | |
| 建造时间 | {{{built}}} |
|---|---|
| 启用时间 | {{{operated}}} |
| 位置 | {{{location}}} |
| 坐标 | {{{coordinates}}} |
| 工厂类型 | {{{industry}}} |
| 产品 | {{{products}}} |
| 雇员数量 | {{{employees}}} |
| 建筑者 | {{{architect}}} |
| 风格 | {{{style}}} |
| 建筑 | {{{buildings}}} |
| 工厂面积 | {{{area}}} |
| 建筑大小 | {{{volume}}} |
| 地址 | {{{address}}} |
| 拥有者 | {{{owner}}} |
| 关闭时间 | {{{defunct}}} |
{{Infobox factory
| name =
| native_name =
| image =
| alt =
| caption =
| location_map =
| location_map_size =
| location_map_caption =
| location_map_alt =
| coordinates = {{Coord}}
| built = <!-- {{Start date|YYYY|MM|DD|df=y}} -->
| operated = <!-- {{Start date|YYYY|MM|DD|df=y}}-<br />{{End date|YYYY|MM|DD|df=y}}-->
| location =
| industry =
| products =
| employees =
| architect =
| style =
| buildings =
| area =
| volume =
| address =
| owner =
| defunct = <!-- {{End date|YYYY|MM|DD}} -->
}}
Mapframe map
[编辑]A Mapframe map is automatically included if:
- There are coordinates specified on the page's Wikidata item
- It has not been turned off by setting
|mapframe=no
The following optional parameters can then be used to adjust the map
|mapframe-zoom=zoom level (default is 10)|mapframe-width=and|mapframe-height=for the map size (defaults are 270 and 200)|mapframe-marker=for the marker icon (default is no icon)- either
|mapframe-marker-color=or|mapframe-marker-colour=for the marker colour (hex triplet, default is#5E74F3) - either
|mapframe-stroke-color=or|mapframe-stroke-colour=for the stroke colour (hex triplet, default is#FF0000) |mapframe-caption=caption below the map|mapframe-lat=and|mapframe-long=(or|mapframe-latitude=and|mapframe-longitude=) – alternate initial latitude and longitude for the map, instead of the factory's coordinates. Specify as a decimal number.
例子
[编辑]2019年12月无人机拍摄 | |
| 建造时间 | 2015年1月 −2020年代 |
|---|---|
| 启用时间 | 2016年1月 |
| 位置 | |
| 工厂类型 | 能源存储 |
| 产品 | 电动载具 組件, 锂离子电池 |
| 雇员数量 | 7,000 |
| 工厂面积 | 1,900,000 sq ft(180,000 m2) |
| 拥有者 | 特斯拉 |
{{Infobox factory
| name = 特斯拉内华达超级工厂
| native_name = Giga Nevada
| image = Tesla Gigafactory 1 - December 2019.jpg
| image_size =
| alt = GIgafactory Nevada
| caption = 2019年12月无人机拍摄
| location_map =
| location_map_size =
| location_map_caption =
| location_map_alt =
| coordinates =
| built = 2015年1月 −2020年代
| operated = 2016年1月
| location = {{USA}}[[内华达州]][[斯托里縣|斯托里县]]
| industry = 能源存储
| products = [[电动载具]] [[汽車零組件列表|組件]], [[锂离子电池]]
| employees = 7,000
| architect =
| style =
| area ={{cvt|1900000|sqft|m2}}
| volume =
| address =
| owner = [[特斯拉 (公司)|特斯拉]]
| defunct =
}}
微格式
[编辑]本模板產生的HTML記號包含了HCard 微格式,能夠讓電腦解析地點名稱和位置,具有可自動將文章分類至適當類別的功能。在HCard中有Geo微格式,能讓電腦分析经纬度資料,因此可在地圖上查詢,或下載至全球定位系统(GPS)裝置。關於微格式的更多使用資訊,請參閱維基百科的微格式專題。
hCard 使用以下的 HTML class:
adrcounty-namefnlabellocalitynicknamenoteorgvcard
Geo由{{coord}}產生,並使用以下的HTML class:
geolatitudelongtitude
请勿将这些class更名或删除。
當指定經緯度數值時,請避免太過詳細。