Template:Infobox military person: Difference between revisions

No edit summary
image test
Tags: Manual revert 2017 source edit
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
| bodystyle    = width: 550px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; font-family: Arial, sans-serif;
| bodystyle    = width: 350px; padding: 15px; border: 1px solid #aaa; background-color: #f9f9f9; font-family: Arial, sans-serif;


| title        = {{{name|{{PAGENAMEBASE}}}}}
| title        = {{{name|{{PAGENAMEBASE}}}}}
Line 6: Line 6:
| titlestyle  = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px; background-color: #eaeaea; padding: 8px; border: 1px solid #ddd;
| titlestyle  = font-size: 125%; font-weight: bold; text-align: center; margin-bottom: 10px; background-color: #eaeaea; padding: 8px; border: 1px solid #ddd;


| image        = {{#if:{{{image|}}}|[[File:{{{image}}}|300px]]|<div style="text-align: center; font-size:90%; font-style:italic;">Upload an image</div>}}
| image        = [[File:{{{image|Upload an image}}}|300px]]
| imagestyle  = margin: 0 auto; display: block; border: 1px solid #ccc; padding: 5px;
| imagestyle  = margin: 0 auto; display: block; border: 1px solid #ccc; padding: 5px;


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>