Template:Infobox military person: Difference between revisions
No edit summary Tag: 2017 source edit |
image test Tags: Manual revert 2017 source edit |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| bodystyle = width: | | bodystyle = width: 350px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; font-family: Arial, sans-serif; | ||
| title = {{{name|{{PAGENAMEBASE}}}}} | | title = {{{name|{{PAGENAMEBASE}}}}} | ||
| titleclass = vcard | | titleclass = vcard | ||
| titlestyle = font-size: | | titlestyle = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px; background-color: #eaeaea; padding: 8px; border: 1px solid #ddd; | ||
| image = | | image = [[File:{{{image|Upload an image}}}|300px]] | ||
| imagestyle = margin: 0 auto; display: block; border: 1px solid #ccc; | | imagestyle = margin: 0 auto; display: block; border: 1px solid #ccc; padding: 5px; | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
Line 57: | Line 57: | ||
| data15 = {{{other_work|Unknown}}} | | data15 = {{{other_work|Unknown}}} | ||
}} | }} | ||
<noinclude> | |||
== Template documentation == | |||
This is the documentation for the `Infobox military person` template. | |||
=== Parameters === | |||
Below are the available parameters: | |||
{{TemplateData|Infobox military person | |||
|description = A template for displaying information about a military person. | |||
|params = | |||
name = | |||
description = The name of the military person. | |||
type = string | |||
required = true | |||
image = | |||
description = The name of the image file (e.g., `Example.jpg`). | |||
type = string | |||
required = false | |||
caption = | |||
description = A caption for the image. | |||
type = string | |||
required = false | |||
birth_date = | |||
description = The birth date of the person. | |||
type = string | |||
required = false | |||
birth_place = | |||
description = The place of birth of the person. | |||
type = string | |||
required = false | |||
death_date = | |||
description = The date of death. | |||
type = string | |||
required = false | |||
death_place = | |||
description = The place of death. | |||
type = string | |||
required = false | |||
resting_place = | |||
description = Where the person is buried or commemorated. | |||
type = string | |||
required = false | |||
branch = | |||
description = The military branch the person served in. | |||
type = string | |||
required = false | |||
service_years = | |||
description = The years the person served in the military. | |||
type = string | |||
required = false | |||
rank = | |||
description = The rank of the person in the military. | |||
type = string | |||
required = false | |||
units = | |||
description = The units the person served in. | |||
type = string | |||
required = false | |||
deployments = | |||
description = The deployments the person participated in. | |||
type = string | |||
required = false | |||
moss = | |||
description = Military Occupational Specialties (MOSs) of the person. | |||
type = string | |||
required = false | |||
commands = | |||
description = Commands held by the person. | |||
type = string | |||
required = false | |||
battles = | |||
description = The battles or wars the person participated in. | |||
type = string | |||
required = false | |||
awards = | |||
description = Awards and honors received by the person. | |||
type = string | |||
required = false | |||
spouse = | |||
description = The person's spouse(s). | |||
type = string | |||
required = false | |||
children = | |||
description = The number or names of the person's children. | |||
type = string | |||
required = false | |||
other_work = | |||
description = Other notable work or achievements of the person. | |||
type = string | |||
required = false | |||
}} | |||
</noinclude> |
Latest revision as of 18:08, 11 December 2024
[[File:File:Upload an image|300px]] | |
Born | Unknown, Unknown |
---|---|
Died | Unknown, Unknown |
Resting place | Unknown |
Service/branch | Unknown |
Years of service | Unknown |
Rank | Unknown |
Units | Unknown |
Deployments | Unknown |
Military Occupational Specialties (MOSs) | Unknown |
Commands | Unknown |
Battles/wars | Unknown |
Awards | Unknown |
Spouse(s) | Unknown |
Children | Unknown |
Other work | Unknown |
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#ifeq:Infobox military person|Infobox||}} | other | #default = }}
Template documentation
This is the documentation for the `Infobox military person` template.
Parameters
Below are the available parameters:
{{#if:Infobox military person
| [{{SAFESUBST:#if:view
|view |[1]
}}] [{{SAFESUBST:#if:edit
|edit |[2]
}}] [{{SAFESUBST:#if:history
|history |[3]
}}] [{{SAFESUBST:#if:purge
|purge |[4]
}}]
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox military person|Template:Infobox military person|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox military person|Template:Infobox military person|Template:Infobox military person}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|#default=[5]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox military person|Template:Infobox military person|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox military person|Template:Infobox military person|Template:Infobox military person}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|#default=[6]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}} }}}}
TemplateData for Infobox military person
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#if:{{#ifeq:Infobox|sandbox|1}}{{#ifeq:Infobox military person|doc|1}}||
}} | other | #default = }} Infobox military person
|{{#ifexist: Template:Infobox military person/TemplateData
|{{SAFESUBST:#if:view
[|view |[7]
}}] [{{SAFESUBST:#if:edit
|edit |[8]
}}] [{{SAFESUBST:#if:history
|history |[9]
}}] [{{SAFESUBST:#if:purge
|purge |[10]
}}]
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox military person|Template:Infobox military person|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox military person|Template:Infobox military person|Template:Infobox military person}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|#default=[11]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Infobox military person|Template:Infobox military person|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AInfobox+military+person%7CInfobox+military+person%7CInfobox+military+person%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Infobox military person|Template:Infobox military person|Template:Infobox military person}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}}.
|#default=[12]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Infobox military person|its|this}} TemplateData}} }}}}
TemplateData for Infobox military person
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#if:{{#ifeq:Infobox|sandbox|1}}{{#ifeq:Infobox military person|doc|1}}||
}} | other | #default = }} Template:Infobox military person/TemplateData
|{{SAFESUBST:#if:create
[|create |[13]
}}] [{{SAFESUBST:#if:purge
|purge |[14]
}}] }} }}