模板:Infobox military conflict/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索
巴巴罗萨作战
第二次世界大战东方战线的一部分
File:Operation Barbarossa corrected border.png
德军进攻示意图
日期1941年6月22日-1941年12月
地点
结果 战略上轴心国失败
参战方
轴心国 苏联
指挥官与领导者
战略:阿道夫·希特勒
前线:张三
战略:斯大林
前线:李四
兵力
约320万 约490万
伤亡与损失
830,903
(阵亡174,000、失踪36,000、受伤604,000)
阵亡、被俘、或失踪305万

{{Infobox military conflict}}为军事冲突模板(有的时候又被叫做Warbox),可以在整理一个军事冲突的时候使用(战争、战役、一连串相关的战争)。本模板针对军事冲突而设计,因此请勿使用于非军事冲突(如警民冲突)的条目上。

用法[编辑]

{{Infobox military conflict
|width=
|conflict=
|partof=
|image=
|image-hans=
|image-hant=
|image_size=
|caption=
|date=
|place=
|territory=
|result=
|combatant1=
|combatant2=
|combatant3=
|commander1=
|commander2=
|commander3=
|strength1=
|strength2=
|strength3=
|polstrength1=
|polstrength2=
|polstrength3=
|milstrength1=
|milstrength2=
|milstrength3=
|casualties1=
|casualties2=
|casualties3=
|notes=
}}

信息框宽度
军事冲突名称
所属战役
插图
插图尺寸
图注
日期
地点
领土变更
结果
参战方1
参战方2
参战方3
指挥官1
指挥官2
指挥官3
兵力1
兵力2
兵力3
政治支持1
政治支持2
政治支持3
军事支援1
军事支援2
军事支援3
伤亡1
伤亡2
伤亡3
备注

有许多的参数在使用时可以被省略,但date、place是必需的参数,也可以依照各冲突的不同性质而选用参数,三方交战可使用此模板。上述参数中,commander处的指挥官战死使用{{KIA}},投降使用{{POW}}。

模板参数[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Infobox military conflict模板数据

<templatedata> { "description": "用于战争、战役等军事冲突类条目的信息框模板", "params": { "campaignbox": { "label": "系列军事冲突导航模板",

"description": "用于填写

模板制作的,用于大规模战争及其战役条目的导航模板",

"type": "string", "required": false }, "combatant3": { "label": "参战方3", "description": "参与该场军事冲突的第三方阵营", "type": "wiki-page-name", "required": false }, "conflict": { "label": "军事冲突名称", "description": "该场军事冲突的名称,默认是条目名称", "type": "string", "required": false, "default": "Infobox military conflict/doc" }, "partof": { "label": "所属战役", "description": "该军事冲突所属的更大规模的战争/战役", "type": "wiki-page-name", "required": false }, "image": { "label": "插图", "description": "能够表现该场军事冲突的图片", "type": "string", "required": false }, "image-hans": { "label": "简体中文插图", "description": "繁简图片转换时使用", "type": "string", "required": false }, "image-hant": { "label": "繁体中文插图", "description": "繁简图片转换时使用", "type": "string", "required": false }, "caption": { "label": "插图说明", "description": "插图的说明文字", "type": "string", "required": false }, "date": { "label": "日期", "description": "军事冲突发生的起讫时间,用 ()- ()来表示", "type": "string", "required": true }, "place": { "label": "地点", "description": "军事冲突发生的地点", "type": "string", "required": true }, "coordinates": { "label": "坐标", "description": "军事冲突发生地点的地理坐标,使用坐标:缺少纬度
无效参数传递至{{#coordinates:}}函数模板", "type": "string", "required": false }, "status": { "label": "当前状态", "description": "仍在继续中的军事冲突目前所处的状态", "type": "string", "required": false }, "result": { "label": "结果", "description": "已经结束的军事冲突所造成的结果", "type": "string", "required": false }, "territory": { "label": "领土变更", "description": "该场军事冲突所造成的领土的改变情况", "type": "string", "required": false }, "combatant1": { "label": "参战方1", "description": "参与该场军事冲突的第一方阵营", "type": "wiki-page-name", "required": false }, "combatant2": { "label": "参战方2", "description": "参与该场军事冲突的第二方阵营", "type": "wiki-page-name", "required": false }, "commander1": { "label": "指挥官1", "description": "参与该场军事冲突的第一方阵营的军事指挥官", "type": "string", "required": false }, "commander2": { "label": "指挥官2", "description": "参与该场军事冲突的第二方阵营的军事指挥官", "type": "string", "required": false }, "commander3": { "label": "指挥官3", "description": "参与该场军事冲突的第三方阵营的军事指挥官", "type": "string", "required": false }, "units1": { "label": "参战单位1", "description": "参与该场军事冲突的第一方阵营的战斗单位", "type": "string", "required": false }, "units2": { "label": "参战单位2", "description": "参与该场军事冲突的第二方阵营的战斗单位", "type": "string", "required": false }, "units3": { "label": "参战单位3", "description": "参与该场军事冲突的第三方阵营的战斗单位", "type": "string", "required": false }, "strength1": { "label": "兵力1", "description": "参与该场军事冲突的第一方阵营所投入的兵力", "type": "string", "required": false }, "strength2": { "label": "兵力2", "description": "参与该场军事冲突的第二方阵营所投入的兵力", "type": "string", "required": false }, "strength3": { "label": "兵力3", "description": "参与该场军事冲突的第三方阵营所投入的兵力", "type": "string", "required": false }, "casualties1": { "label": "伤亡1", "description": "参与该场军事冲突的第一方阵营的伤亡与损失情况", "type": "string", "required": false }, "casualties2": { "label": "伤亡2", "description": "参与该场军事冲突的第二方阵营的伤亡与损失情况", "type": "string", "required": false }, "casualties3": { "label": "伤亡3", "description": "参与该场军事冲突的第三方阵营的伤亡与损失情况", "type": "string", "required": false }, "notes": { "label": "备注", "description": "与信息框内容相关的注释说明", "type": "string", "required": false } }, "sets": [ { "label": "图片", "params": [ "image", "caption" ] }, { "label": "参战的第一阵营", "params": [ "combatant1", "commander1", "units1", "strength1", "casualties1" ] }, { "label": "参战的第二阵营", "params": [ "combatant2", "commander2", "units2", "strength2", "casualties2" ] }, { "label": "参战的第三阵营", "params": [ "combatant3", "commander3", "units3", "strength3", "casualties3" ] } ], "format": "block", "paramOrder": [ "campaignbox", "combatant3", "conflict", "partof", "image", "image-hans", "image-hant", "caption", "date", "place", "coordinates", "status", "result", "territory", "combatant1", "combatant2", "commander1", "commander2", "commander3", "units1", "units2", "units3", "strength1", "strength2", "strength3", "casualties1", "casualties2", "casualties3", "notes" ] } </templatedata>

此模板产生的HTML标记包含了hCalendar微格式,能够让电脑解析事件的详情,便于维基百科将该条目归类,或让用户通过浏览器将该事件添加进日历或日记应用程序中。关于微格式的更多使用资讯,请参阅维基百科的微格式专题

日期只会在使用了{{Start date}}或{{End date}}的情况下显示,URL只会在使用了{{Url}}的情况下被包含。

hCalendar使用的HTML class包括:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent

请勿移除或修改这些class,也请勿更改或移除有相关设定之模板及设定。

参见[编辑]