Template:Infobox military person: Difference between revisions
No edit summary Tag: 2017 source edit |
image test Tags: Manual revert 2017 source edit |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| bodystyle = width: 350px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; font-family: Arial, sans-serif; | |||
| bodystyle = width: | |||
| | | title = {{{name|{{PAGENAMEBASE}}}}} | ||
| | | titleclass = vcard | ||
| titlestyle = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px; background-color: #eaeaea; padding: 8px; border: 1px solid #ddd; | |||
| image = [[File:{{{image|Upload an image}}}|300px]] | |||
| imagestyle = margin: 0 auto; display: block; border: 1px solid #ccc; padding: 5px; | |||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| captionstyle = font-size: 90%; text-align: center; margin-top: 5px; | | captionstyle = font-size: 90%; text-align: center; margin-top: 5px; | ||
| label1 = | | label1 = Born | ||
| data1 = {{{ | | data1 = {{{birth_date|Unknown}}}, {{{birth_place|Unknown}}} | ||
| label2 = | | label2 = Died | ||
| data2 = {{{ | | data2 = {{{death_date|Unknown}}}, {{{death_place|Unknown}}} | ||
| label3 = | | label3 = Resting place | ||
| data3 = {{{ | | data3 = {{{resting_place|Unknown}}} | ||
| label4 = | | label4 = Service/branch | ||
| data4 = {{{ | | data4 = {{{branch|Unknown}}} | ||
| label5 = | | label5 = Years of service | ||
| data5 = {{{ | | data5 = {{{service_years|Unknown}}} | ||
| label6 = | | label6 = Rank | ||
| data6 = {{{ | | data6 = {{{rank|Unknown}}} | ||
| label7 = | | label7 = Units | ||
| data7 = {{{ | | data7 = {{{units|Unknown}}} | ||
| label8 = | | label8 = Deployments | ||
| data8 = {{{ | | data8 = {{{deployments|Unknown}}} | ||
| label9 = | | label9 = Military Occupational Specialties (MOSs) | ||
| data9 = {{{ | | data9 = {{{moss|Unknown}}} | ||
| label10 = | | label10 = Commands | ||
| data10 = {{{ | | data10 = {{{commands|Unknown}}} | ||
| label11 = | | label11 = Battles/wars | ||
| data11 = {{{ | | data11 = {{{battles|Unknown}}} | ||
| label12 = | | label12 = Awards | ||
| data12 = {{{ | | data12 = {{{awards|Unknown}}} | ||
| label13 = | | label13 = Spouse(s) | ||
| data13 = {{{ | | data13 = {{{spouse|Unknown}}} | ||
| label14 = | | label14 = Children | ||
| data14 = {{{ | | data14 = {{{children|Unknown}}} | ||
| label15 = | | label15 = Other work | ||
| data15 = {{{ | | 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]
}}] }} }}