Template:Infobox military person: Difference between revisions

From Irregularpedia
Jump to navigation Jump to search
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
| bodyclass    = vcard
| bodystyle    = width: 350px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; font-family: Arial, sans-serif;
| bodystyle    = width: 250px; padding: 10px; border: 1px solid #ccc; background-color: #f9f9f9;


| above       = {{{name|{{PAGENAMEBASE}}}}}
| title       = {{{name|{{PAGENAMEBASE}}}}}
| abovestyle   = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px;
| 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;


| image        = {{#if:{{{image|}}}|[[File:{{{image}}}|200px]]|<div style="text-align: center; font-size:90%; font-style:italic;">Upload an image</div>}}
| imagestyle  = margin: 0 auto; display: block;
| 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      = Native name
| label1      = Born
| data1        = {{{native_name|}}}
| data1        = {{{birth_date|Unknown}}}, {{{birth_place|Unknown}}}


| label2      = Birth name
| label2      = Died
| data2        = {{{birth_name|}}}
| data2        = {{{death_date|Unknown}}}, {{{death_place|Unknown}}}


| label3      = Other names
| label3      = Resting place
| data3        = {{{other_name|}}}
| data3        = {{{resting_place|Unknown}}}


| label4      = Nickname(s)
| label4      = Service/branch
| data4        = {{{nickname|}}}
| data4        = {{{branch|Unknown}}}


| label5      = Born
| label5      = Years of service
| data5        = {{{birth_date|Unknown}}}, {{{birth_place|Unknown}}}
| data5        = {{{service_years|Unknown}}}


| label6      = Died
| label6      = Rank
| data6        = {{{death_date|Unknown}}}, {{{death_place|Unknown}}}
| data6        = {{{rank|Unknown}}}


| label7      = Resting place
| label7      = Units
| data7        = {{{resting_place|Unknown}}}
| data7        = {{{units|Unknown}}}


| label8      = Service/branch
| label8      = Deployments
| data8        = {{{branch|Unknown}}}
| data8        = {{{deployments|Unknown}}}


| label9      = Years of service
| label9      = Military Occupational Specialties (MOSs)
| data9        = {{{service_years|Unknown}}}
| data9        = {{{moss|Unknown}}}


| label10      = Rank
| label10      = Commands
| data10      = {{{rank|Unknown}}}
| data10      = {{{commands|Unknown}}}


| label11      = Units
| label11      = Battles/wars
| data11      = {{{units|Unknown}}}
| data11      = {{{battles|Unknown}}}


| label12      = Deployments
| label12      = Awards
| data12      = {{{deployments|Unknown}}}
| data12      = {{{awards|Unknown}}}


| label13      = Military Occupational Specialties (MOSs)
| label13      = Spouse(s)
| data13      = {{{moss|Unknown}}}
| data13      = {{{spouse|Unknown}}}


| label14      = Commands
| label14      = Children
| data14      = {{{commands|Unknown}}}
| data14      = {{{children|Unknown}}}


| label15      = Battles/wars
| label15      = Other work
| data15      = {{{battles|Unknown}}}
| data15      = {{{other_work|Unknown}}}
 
}}
| label16      = Awards
| data16      = {{{awards|Unknown}}}


| label17      = Spouse(s)
<noinclude>
| data17      = {{{spouse|Unknown}}}
== Template documentation ==
This is the documentation for the `Infobox military person` template.


| label18      = Children
=== Parameters ===
| data18      = {{{children|Unknown}}}
Below are the available parameters:


| label19      = Other work
{{TemplateData|Infobox military person
| data19      = {{{other_work|Unknown}}}
|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

Infobox military person
[[File:File:Upload an image|300px]]
BornUnknown, Unknown
DiedUnknown, Unknown
Resting placeUnknown
Service/branchUnknown
Years of serviceUnknown
RankUnknown
UnitsUnknown
DeploymentsUnknown
Military Occupational Specialties (MOSs)Unknown
CommandsUnknown
Battles/warsUnknown
AwardsUnknown
Spouse(s)Unknown
ChildrenUnknown
Other workUnknown

{{#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


|Template Data [{{SAFESUBST:#if:view

|view
|[1]

}}] [{{SAFESUBST:#if:edit

|edit
|[2]

}}] [{{SAFESUBST:#if:history

|history
|[3]

}}] [{{SAFESUBST:#if:purge

|purge
|[4]

}}]

{{#if:|{{#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=[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

|Template Data [{{SAFESUBST:#if:view

|view
|[7]

}}] [{{SAFESUBST:#if:edit

|edit
|[8]

}}] [{{SAFESUBST:#if:history

|history
|[9]

}}] [{{SAFESUBST:#if:purge

|purge
|[10]

}}]

{{#if:|{{#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=[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

|Template Data [{{SAFESUBST:#if:create

|create
|[13]

}}] [{{SAFESUBST:#if:purge

|purge
|[14]

}}] }} }}