แม่แบบ:กล่องข้อมูล บุคลากรทหาร/doc

อาจใช้อินโฟบ็อกซ์บุคคลทางทหารเพื่อสรุปข้อมูลเกี่ยวกับบุคคลทางทหารแต่ละคน เช่น ทหารหรือผู้นำทางทหาร
แม่แบบนี้อาจใช้มอดูล (แม่แบบย่อย) ของ กล่องข้อมูล ชีวประวัติ โปรดดู :en:Wikipedia:Infobox modules สำหรับคำแนะนำเกี่ยวกับการใช้งานดังกล่าว

**การใช้งาน**

**แม่แบบว่างเปล่า**
ควรเพิ่มกล่องข้อมูลที่แสดงด้านล่าง:

**พารามิเตอร์**
Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none". All subjective or qualitative judgements and numerical quantities or statistics must be cited to a reliable source (see WP:MILMOS#CITE). Please keep in mind WP:ICONDECORATION for the use of images.- honorific_prefix – titles such as "Sir", "General".- name – the full name of the person.- honorific_suffix – post-nominal honours such as "OBE"- image – optional – an image of the person. The image must be given in the form ; an image of a nation's highest award, such as the Medal of Honor or Victoria Cross, may be displayed for recipients of it, especially as a placeholder.- image_upright – optional – See WP:UPRIGHT- image_size – optional – the size of the image in px. Give the number without the px suffix (for example, 220 rather than 220px). image_upright is preferred.- alt Alt text, if used, must be placed here.- caption – optional – the text to be placed below the image.- native_name – the person's name in their own language- native_name_lang – ISO 639-2 code e.g. "fre" or "fra" for French. If more than one, use lang for native_name instead- birth_name – optional – the name the person was born with, if different from that used later in life.- other_name – optional – other names by which the person was known.- nickname – optional – nickname(s) by which the person was known.- birth_date – optional – the date of birth, if known, using Birth date or Birth date and age.- birth_place – optional – the person's birthplace.- death_date – optional – the date of death, if applicable and known, in Death date and age.- death_place – optional – the place where the person died.- placeofburial – optional – the place where the person's remains are buried or otherwise interred.- placeofburial_label – optional – the label of the placeofburial field (above). The placeofburial field is normally preceded by the label "Buried"; if this is not appropriate for the particular manner in which the remains were disposed of, a different label can be specified here.- placeofburial_coordinates – optional – the precise location where the person's remains are buried or otherwise interred. - allegiance – optional – the country or other power the person served. Multiple countries may be indicated together with the corresponding dates. This field should not be used to indicate a particular service branch, which is better indicated by the branch field (below).- branch – optional – the service branch (Army, Navy, etc.) the person was a part of; this should be left blank for people who were not part of a formal armed service, or who predate the establishment of formal service branches.- branch_label – optional – the label of the branch field (above). The branch field is normally preceded by "Service/Branch"; to avoid word wrapping, one of "Service" or "Branch" can be specified.- serviceyears – optional – the years during which the person served.- serviceyears_label – optional – the label to use for the serviceyears field (above); defaults to "Years of service". - rank – optional – the highest rank achieved by the person unless a reduction in rank occurred (whether by punishment, voluntary, or as part of joining another military unit or military service). The rank being awarded posthumously, may be noted. In cases where the person held different ranks in different armies, multiple ranks should be specified with dates and country noted for each. Separate multiple entries using Plainlist.- rank_label – optional – the label to use for the rank field (above); defaults to "Rank". - service number – optional – the service number held by the individual during military service. Do not supply for living persons unless published by secondary sources such as the London Gazette.- unit – optional – for persons who are not notable as commanding officers, the unit (company, battalion, regiment, etc.) in which they served. This should be omitted if the commands are specified (as below).- commands – optional – for persons who are notable as commanding officers, the units they commanded. Dates should be given if multiple notable commands were held. Separate multiple entries using Plainlist.- battles – optional – any notable battles or wars in which the person participated. This should be omitted if a Campaignbox is used in conjunction with this template. Separate multiple entries using Plainlist.- battles_label – optional – the label to use for the battles field (above); defaults to "Battles/wars". - awards – optional – any notable awards or decorations the person received; exhaustive lists should be worked into the prose. Separate multiple entries using Plainlist.- memorials – optional – Memorials or monuments to the subject (e.g. statues, streets named after them). Separate multiple entries using Plainlist.- alma_mater – optional – educational institutions the subject graduated from and degree received, in parentheses. Separate multiple entries using Plainlist- spouse – optional – list the service members spouse(s) if verifiable from a reliable source.- children – optional – Only if independently notable themselves or particularly relevant. Number of children (e.g., three or 3), or list of names if notable, in which case, separate entries using  or . For privacy reasons, consider omitting the names of children of living persons, unless notable.- relations – optional – any notable relations. Only reasonably close ones should be indicated; an exhaustive listing of an extensive family tree should be avoided here.- laterwork – optional – profession or positions held by the person other than military service (displays with the label "Other work"). Separate multiple entries using Plainlist.- signature – optional – an image of the person's signature. The image must be given in the form .- signature_size – optional – the size of the signature in px. Give the number without the px suffix.- signature_alt – optional – alt text for the signature.- website – optional – Use URL- module – optional – Embedded template

**รายการ**
For parameters such as awards, unit or commands, which take lists of values, unbulleted or bulleted lists may be preferable. See MOS:VLIST.
Unbulleted lists can be created with plainlist or ublist. The use of s is common but semantically incorrect. See MOS:NOBR.
Bulleted lists can be created with * markup.

**การฝัง**
Many military people are known for more than just their military service (e.g. Douglas Fairbanks Jr. and James Stewart), and hence it may be desirable to merge this infobox with another one, like Infobox person. By adding yes to the first line of the infobox code, one can embed this infobox into another, creating the illusion of one continuous infobox.
Though the process is a little complicated, it is possible to insert this infobox into most if not all other infoboxes. For Infobox person, this infobox is passed as a "module" using the module syntax. The title for the embedded section can be changed using embed_title.

**ตัวอย่าง**
สาธิตแม่แบบ: birth date, death date and age, plainlist และ ublist

**ข้อมูลแม่แบบ**
{
	"params": {
		"honorific_prefix": {
			"required": false,
			"label": "Honorific Prefix",
			"type": "string",
			"description": "Titles such as 'Sir', 'General'."
		},
		"name": {
			"required": false,
			"label": "Name",
			"type": "string",
			"description": "The full name of the person."
		},
		"honorific_suffix": {
			"required": false,
			"label": "Honorific Suffix",
			"type": "string",
			"description": "Post-nominal honours such as 'OBE'"
		},
		"native_name": {
			"required": false,
			"label": "Native Name",
			"type": "string",
			"description": "The person's name in their own language"
		},
		"native_name_lang": {
			"required": false,
			"label": "Native Name Language",
			"type": "string",
			"description": "Language in which the native name is given"
		},
		"image": {
			"required": false,
			"label": "Image",
			"type": "wiki-page-name",
			"description": "The image must be given in the form Example.jpg"
		},
		"image_upright": {
			"required": false,
			"label": "Image scaling",
			"type": "number",
			"description": "Image scaling factor, see WP:UPRIGHT"
		},
		"image_size": {
			"required": false,
			"label": "Image size",
			"type": "number",
			"description": "Size of the image in pixels."
		},
		"alt": {
			"required": false,
			"label": "Alt",
			"type": "string",
			"description": "Alternative text, if used, must be placed here."
		},
		"caption": {
			"required": false,
			"label": "Caption",
			"type": "string",
			"description": "Caption for the image"
		},
		"birth_date": {
			"required": false,
			"label": "Birth Date",
			"type": "line",
			"description": "The Date of Birth, if known,"
		},
		"death_date": {
			"required": false,
			"label": "Death Date",
			"type": "line",
			"description": "The Date of Death, if applicable and known,"
		},
		"birth_place": {
			"required": false,
			"label": "Birth Place",
			"type": "string",
			"description": "The person's birth place."
		},
		"death_place": {
			"required": false,
			"label": "Death Place",
			"type": "string",
			"description": "The place where the person died."
		},
		"placeofburial": {
			"required": false,
			"label": "Place of Burial",
			"type": "string",
			"description": "The place where the person's remains are buried or otherwise interred."
		},
		"placeofburial_label": {
			"required": false,
			"label": "Place of Burial Label",
			"type": "string",
			"description": "The label to use for the place of burial field"
		},
		"placeofburial_coordinates": {
			"required": false,
			"label": "Place of burial Coordinates",
			"type": "string",
			"description": "The precise location where the person's remains are buried or otherwise interred. "
		},
		"nickname": {
			"required": false,
			"label": "Nick Name",
			"type": "string",
			"description": "Nick name(s) by which the person was known."
		},
		"birth_name": {
			"required": false,
			"label": "Birth Name",
			"type": "string",
			"description": "The name of the person was born with."
		},
		"allegiance": {
			"required": false,
			"label": "Allegiance",
			"type": "string",
			"description": "The country or other power the person served."
		},
		"branch": {
			"required": false,
			"label": "Branch",
			"type": "string",
			"description": "The service branch (Army, Navy, etc.)"
		},
		"serviceyears": {
			"required": false,
			"label": "Service Years",
			"type": "number",
			"description": "The years during which the person served."
		},
		"rank": {
			"required": false,
			"label": "Rank",
			"type": "string",
			"description": "The highest rank achieved by the person"
		},
		"servicenumber": {
			"required": false,
			"label": "Service Number",
			"type": "string",
			"description": "The service number held by the individual during military service. "
		},
		"unit": {
			"required": false,
			"label": "Unit",
			"type": "string",
			"description": "The unit in which the person served(company, battalion, regiment, etc.)"
		},
		"commands": {
			"required": false,
			"label": "Commands",
			"type": "string",
			"description": "For persons who are notable as commanding officers, the units they commanded."
		},
		"battles": {
			"required": false,
			"label": "Battles",
			"type": "string",
			"description": "Any notable battles or wars in which the person participated."
		},
		"battles_label": {
			"required": false,
			"label": "Battles Label",
			"type": "string",
			"description": "The label to use for the battles field"
		},
		"awards": {
			"required": false,
			"label": "Awards",
			"type": "string",
			"description": "Any notable awards or decorations the person received"
		},
		"alma_mater": {
			"required": false,
			"label": "Alma mater",
			"type": "string",
			"description": "The linked name of attended higher education institution(s)."
		},
		"spouse": {
			"required": false,
			"label": "Spouse",
			"type": "string",
			"description": "Notable spouse if verifiable from a reliable source."
		},
		"children": {
			"required": false,
			"label": "Children",
			"type": "string",
			"description": "Notable children or number of children if verifiable from a reliable source."
		},
		"relations": {
			"required": false,
			"label": "Relations",
			"type": "string",
			"description": "Any notable relations."
		},
		"laterwork": {
			"required": false,
			"label": "Later Work",
			"type": "string",
			"description": "Profession or positions held by the person other than military service"
		},
		"signature": {
			"required": false,
			"label": "Signature",
			"type": "string",
			"description": "An image of the person's signature."
		},
		"website": {
			"required": false,
			"label": "Website",
			"type": "string",
			"description": "Military's website"
		},
		"branch_label": {
			"label": "Branch Label",
			"description": "The label of the branch field (above). The branch field is normally preceded by \"Service/Branch\"; to avoid word wrapping, one of \"Service\" or \"Branch\" can be specified.",
			"example": "Branch",
			"type": "string",
			"default": "Service/Branch"
		}
	},
	"format": " _____________ = _\n\n",
	"paramOrder": 
		"honorific_prefix",
		"name",
		"honorific_suffix",
		"native_name",
		"native_name_lang",
		"image",
		"image_upright",
		"image_size",
		"alt",
		"caption",
		"birth_date",
		"death_date",
		"birth_place",
		"death_place",
		"placeofburial",
		"placeofburial_label",
		"placeofburial_coordinates",
		"nickname",
		"birth_name",
		"allegiance",
		"branch",
		"branch_label",
		"serviceyears",
		"rank",
		"servicenumber",
		"unit",
		"commands",
		"battles",
		"battles_label",
		"awards",
		"alma_mater",
		"spouse",
		"children",
		"relations",
		"laterwork",
		"signature",
		"website"
	
}

**หมวดหมู่ติดตาม**
 หน้าที่ใช้กล่องข้อมูลบุคลากรทหารที่มีพารามิเตอร์ว่างที่ไม่รู้จัก- พารามิเตอร์รูปภาพในแม่แบบกล่องข้อมูลบุคลากรทหารต้องการการอัปเดต

**ดูเพิ่ม**
 กล่องข้อมูล หน่วยทหาร- กล่องข้อมูล ผู้ดำรงตำแหน่ง