模板:Infobox firearm cartridge/doc
跳至導覽
跳至搜尋
腳本錯誤:沒有「Message box」這個模塊。
用法
Firearm cartridge infobox[編輯]
Template:Parameter names example
{{Infobox firearm cartridge
| name =
| image =
| alt =
| caption =
| type =
| origin =
<!-- 服役历史 -->
| service =
| used_by =
| wars =
<!--生产历史 -->
| designer =
| design_date =
| manufacturer =
| production_date =
| number =
| variants =
<!-- 基本规格-->
| is_SI_specs =
| parent =
| case_type =
| bullet =
| bullet_ref =
| neck =
| neck_ref =
| shoulder =
| shoulder_ref =
| base =
| base_ref =
| rim_dia =
| rim_dia_ref =
| rim_thick =
| rim_thick_ref =
| case_length =
| case_length_ref =
| length =
| length_ref =
| case_capacity =
| case_capacity_ref =
| rifling =
| primer =
| max_pressure =
| max_pressure_ref =
| pressure_method =
| max_pressure2 =
| max_pressure2_ref =
| pressure_method2 =
| max_pressure3 =
| max_pressure3_ref =
| pressure_method3 =
| max_cup =
| max_cup_ref =
| filling =
| filling_weight =
| detonation =
| yield =
<!-- 弹道表现 -->
| is_SI_ballistics =
| bwunit =
| bw1 =
| btype1 =
| vel1 =
| en1 =
| bw2 =
| btype2 =
| vel2 =
| en2 =
| bw3 =
| btype3 =
| vel3 =
| en3 =
| bw4 =
| btype4 =
| vel4 =
| en4 =
| bw5 =
| btype5 =
| vel5 =
| en5 =
| test_barrel_length =
| balsrc =
}}
「firearm cartridge infobox」 模版是為「槍彈」與「炮彈」版面統一設計,使用時請複製下方灰色框內文字加入欲編輯的頁面頂端,切勿調整變數順序、更改變數名稱或是消除無資料變數,「無資料變數」在顯示時會自動隱藏。
參數[編輯]
名稱圖像變數說明:
- name —(必須填入)彈藥正式名稱。
- image — 彈藥圖像,必須依照下列模式 [[File:圖像名稱.jpg|300px]]; 切勿使用「thumb」 。
- caption — 圖像說明。
- origin —(必須填入)原產地。
- type —(必須填入)類型(例如「手槍」、「步槍」、「獵槍」……) 。
使用記錄變數說明:
- service — 使用期間 (年分)。
- used_by — 使用國。
- wars — 參與的戰役。
生產歷史變數說明:
- designer — 研發者。
- design_date — 研發日期 (年分)。
- manufacturer — 生產商。
- production_date — 生產日期 (年分)。
- variants — 衍生型。
規格變數說明:
規格變數以「毫米」或「英吋」為單位;輸入數字即可(勿用千分號),模版會自動判斷填入單位。
- is_SI_specs — 度量單位為「公制」時填入「yes」;空白則為英制單位。
- parent — 前代彈系。
- case type — 彈殼類型(例如「有緣」、「無緣」、「直筒」、「縮口瓶型」……)。
- bullet — 彈頭直徑,以「毫米」或「英吋」為單位;輸入數字即可(勿用千分號),模版會自動判斷填入單位。
- neck — 彈頸直徑。
- shoulder — 彈肩直徑。
- base — 殼底直徑。
- rim_dia — 底緣直徑。
- rim_thick — 底緣厚度。
- case_length — 彈殼長度。
- length — 全長。
- rifling — 膛線纏距。
- primer — 底火種類(例如「大型手槍」、「小型步槍」、「底緣底火」……)。
- filling — 裝藥種類,彈頭內填炸藥種類。
- filling_weight — 裝藥量,彈頭內填炸藥重量。
- detonation — 引爆方式,內填炸藥之彈頭引爆方式(例如「延時」、「壓發」……)。
- yield — 爆發當量,彈頭內填炸藥之爆發當量以「噸/TNT」為單位。
彈道表現變數說明:
輸入數字即可(勿用千分號),模版會自動判斷填入單位。
最多可輸入五種不同彈頭重量,單位可用「毫米」或「英吋」,但須統一。
- is_SI_ballistics — 度量單位為「公制」時填入「yes」;空白則為英制單位。
- bwx — 彈頭重量, 度量單位為 Grain。
- test_barrel_length — 測試槍槍管長度。
- balsrc — 測試資訊來源。
示例[編輯]
腳本錯誤:沒有「Infobox」這個模塊。
{{Infobox firearm cartridge
| name = .357 SIG
| image = 9mm 7,62mm 357sig 10mm 45SW 45GAP 50AE 002.jpg
| image_size = 300px
| caption = Comparison to other cartridges. .357 SIG third from left.
| type = Pistol
| origin = [[United States]]
| designer = [[SIGARMS]]/[[Federal Cartridge Company|Federal Cartridge Co.]]
| design_date = 1994
| parent =
| case_type = Rimless, bottleneck
| bullet = .355
| neck = .381
| shoulder = .424
| base = .424
| rim_dia = .424
| rim_thick = .055
| case_length = .865
| length = 1.14
| rifling =
| primer = Small pistol
| bw1 = 115
| btype1 = [[Hollow point bullet|BHP]]
| vel1 = 1564
| en1 = 624
| bw2 = 124
| btype2 = [[Hollow point bullet|JHP]]
| vel2 = 1329
| en2 = 486
| bw3 = 125
| btype3 = JHP
| vel3 = 1299
| en3 = 468
| bw4 = 147
| btype4 = JHP
| vel4 = 1186
| en4 = 459
| bw5 = 150
| btype5 = JHP
| vel5 = 1130
| en5 = 425
| test_barrel_length = 4 in
| balsrc = [http://stevespages.com/page8f357sig.html Steve's 357 SIG Ballistic Page]
}}
Microformat[編輯]
此模板生成的HTML標記包含了hProduct微格式,能夠讓電腦解析產品的詳情,便於維基百科自動地,或經由瀏覽器工具人工地將該條目編入搜尋引擎所需的索引。關於維基百科中微格式的更多使用資訊,請參閱維基百科的微格式專題。
如果產品有URL,請使用 {{Url}}。
hProduct使用的HTML class包括: Template:Flatlist/microformat
請勿重新命名或移除這些class和使用這些參數的collapse nested elements。