模板:Infobox factory

維基百科,自由的百科全書
(重新導向自Template:工廠簡介
Infobox factory
文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

使用方法[編輯]

{{{name}}}
{{{native_name}}}
[[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.

例子[編輯]

特斯拉內華達超級工廠
Giga Nevada
GIgafactory Nevada
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              = 
}}

Microformat[編輯]

本模板產生的HTML記號包含了HCard 微格式,能夠讓電腦解析地點名稱和位置,具有可自動將文章分類至適當類別的功能。在HCard中有Geo微格式,能讓電腦分析經緯度資料,因此可在地圖上查詢,或下載至全球定位系統(GPS)裝置。關於微格式的更多使用資訊,請參閱維基百科的微格式專題

hCard 使用以下的 HTML class:

  • adr
  • county-name
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • vcard

Geo由{{coord}}產生,並使用以下的HTML class:

  • geo
  • latitude
  • longtitude

請勿將這些class更名或刪除。

當指定經緯度數值時,請避免太過詳細。

追蹤模版[編輯]

參見[編輯]