Soft launch: Soldier biographies and research notes vary in completeness. Prefer class-roster, NARA, newspapers, and other cited sources for contested facts — treat Research notes as leads, not settled history. Anyone can correct a page; contact us with questions.

Template:Soldier: Difference between revisions

From Ritchie Boys Wiki
Jump to navigation Jump to search
Import soldier infobox
 
Import soldier infobox
Line 24: Line 24:
|Match_confidence=String
|Match_confidence=String
}}
}}
This template stores one Camp Ritchie soldier and renders the infobox. Edit the soldier article, not this page, unless you are changing the data schema.
This template stores one Camp Ritchie soldier, renders a Wikipedia-style infobox, and writes the opening biography sentence from those fields. Edit the soldier article to add a photo (<code>|photo=Filename.jpg</code>) or a longer Life section.
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>{{#cargo_store:_table=Soldiers
</noinclude><includeonly>{{#cargo_store:_table=Soldiers
Line 49: Line 49:
|Rank_final={{{rank_final|}}}
|Rank_final={{{rank_final|}}}
|Match_confidence={{{confidence|}}}
|Match_confidence={{{confidence|}}}
}}{{#if:{{{confidence|}}}|{{#ifeq:{{{confidence}}}|high||<div class="unconfirmed-banner">'''Record status: unconfirmed.''' The class-roster match confidence is ''{{{confidence}}}''. Correct the infobox if you have a source, and mention it in [[{{TALKPAGENAME}}|talk]].</div>}}}}
}}{{#if:{{{confidence|}}}|{{#ifeq:{{{confidence}}}|high||<div class="hatnote unconfirmed-banner">'''Record status: unconfirmed.''' Class-roster match confidence is ''{{{confidence}}}''. Correct the infobox if you have a source, and note it on [[{{TALKPAGENAME}}|talk]].</div>}}}}
{| class="soldier-infobox"
{| class="infobox vcard soldier-infobox"
|-
|-
! colspan="2" | {{#if:{{{first|}}}|{{{first}}} }}{{{surname|Soldier}}}
! colspan="2" class="infobox-above" | {{#invoke:Soldier|displayName}}
{{#if:{{{photo|}}}|
{{#if:{{{photo|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center" {{!}} [[File:{{{photo}}}|250px]]
{{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{photo}}}|{{{image_size|220px}}}|alt={{{alt|{{#invoke:Soldier|displayName}}}}}]]{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}
}}
}}
{{#if:{{{alias|}}}|
{{#if:{{{birth_year|}}}{{{death_year|}}}{{{alias|}}}{{{nativity|}}}{{{religion|}}}{{{marital|}}}{{{education|}}}{{{occupation|}}}{{{state|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Alias
! colspan="2" class="infobox-header" {{!}} Personal details
{{!}} {{{alias}}}
}}
}}
{{#if:{{{asn|}}}|
{{#if:{{{alias|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} ASN
! class="infobox-label" {{!}} Nickname
{{!}} {{{asn}}}
{{!}} class="infobox-data nickname" {{!}} {{{alias}}}
}}
}}
{{#if:{{{class_number|}}}|
{{#if:{{{birth_year|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Class
! class="infobox-label" {{!}} Born
{{!}} {{{class_display|{{{class_number|}}}}}}
{{!}} class="infobox-data" {{!}} {{{birth_year}}}{{#if:{{{nativity|}}}|<br />Nativity: {{{nativity}}}}}
}}
}}
{{#if:{{{class_section|}}}|
{{#if:{{{death_year|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Section
! class="infobox-label" {{!}} Died
{{!}} {{{class_section}}}
{{!}} class="infobox-data" {{!}} {{{death_year}}}
}}
}}
{{#if:{{{class_rank|}}}|
{{#if:{{{religion|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Class rank
! class="infobox-label" {{!}} Religion
{{!}} {{{class_rank}}}
{{!}} class="infobox-data" {{!}} {{{religion}}}
}}
}}
{{#if:{{{class_branch|}}}|
{{#if:{{{marital|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Class branch
! class="infobox-label" {{!}} Spouse / marital
{{!}} {{{class_branch}}}
{{!}} class="infobox-data" {{!}} {{{marital}}}
}}
}}
{{#if:{{{rank_final|}}}|
{{#if:{{{education|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Final rank
! class="infobox-label" {{!}} Education
{{!}} {{{rank_final}}}
{{!}} class="infobox-data" {{!}} {{{education}}}
}}
}}
{{#if:{{{birth_year|}}}|
{{#if:{{{occupation|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Birth year
! class="infobox-label" {{!}} Occupation
{{!}} {{{birth_year}}}
{{!}} class="infobox-data" {{!}} {{{occupation}}}
}}
}}
{{#if:{{{death_year|}}}|
{{#if:{{{state|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Death year
! class="infobox-label" {{!}} State
{{!}} {{{death_year}}}
{{!}} class="infobox-data" {{!}} {{{state}}}
}}
}}
{{#if:{{{nativity|}}}|
|-
! colspan="2" class="infobox-header" | Military service
|-
! class="infobox-label" | Allegiance
| class="infobox-data" | United States
|-
! class="infobox-label" | Branch
| class="infobox-data" | {{#if:{{{class_branch|}}}|{{{class_branch}}}|United States Army}}
{{#if:{{{asn|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Nativity
! class="infobox-label" {{!}} ASN
{{!}} {{{nativity}}}
{{!}} class="infobox-data" {{!}} {{{asn}}}
}}
}}
{{#if:{{{religion|}}}|
{{#if:{{{rank_final|}}}{{{class_rank|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Religion
! class="infobox-label" {{!}} Rank
{{!}} {{{religion}}}
{{!}} class="infobox-data" {{!}} {{#if:{{{rank_final|}}}|{{{rank_final}}}|{{{class_rank|}}}}}{{#if:{{{rank_final|}}}|{{#if:{{{class_rank|}}}|{{#ifeq:{{{class_rank}}}|{{{rank_final}}}||<br />''At Ritchie:'' {{{class_rank}}}}}}} }}
}}
}}
{{#if:{{{state|}}}|
{{#if:{{{class_number|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} State
! class="infobox-label" {{!}} Camp Ritchie
{{!}} {{{state}}}
{{!}} class="infobox-data" {{!}} Class {{#invoke:Soldier|classLinks}}{{#if:{{{class_section|}}}|<br />Section {{{class_section}}}}}{{#if:{{{other_class|}}}|<br />Other: {{{other_class}}}}}
}}
}}
{{#if:{{{enlistment_place|}}}|
{{#if:{{{enlistment_place|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Place of enlistment
! class="infobox-label" {{!}} Enlisted
{{!}} {{{enlistment_place}}}
{{!}} class="infobox-data" {{!}} {{{enlistment_place}}}
}}
}}
{{#if:{{{assignment|}}}|
{{#if:{{{assignment|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Assignment
! class="infobox-label" {{!}} Assignment
{{!}} {{{assignment}}}
{{!}} class="infobox-data" {{!}} {{{assignment}}}
}}
{{#if:{{{division|}}}|
{{!}}-
! class="infobox-label" {{!}} Unit / division
{{!}} class="infobox-data" {{!}} {{{division}}}
}}
}}
{{#if:{{{ipw_ge|}}}|
{{#if:{{{ipw_ge|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} IPW (German)
! class="infobox-label" {{!}} IPW (German)
{{!}} {{{ipw_ge}}}
{{!}} class="infobox-data" {{!}} {{{ipw_ge}}}
}}
}}
{{#if:{{{ipw_it|}}}|
{{#if:{{{ipw_it|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} IPW (Italian)
! class="infobox-label" {{!}} IPW (Italian)
{{!}} {{{ipw_it}}}
{{!}} class="infobox-data" {{!}} {{{ipw_it}}}
}}
}}
{{#if:{{{overseas|}}}|
{{#if:{{{overseas|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Overseas
! class="infobox-label" {{!}} Overseas
{{!}} {{{overseas}}}
{{!}} class="infobox-data" {{!}} {{{overseas}}}
}}
{{#if:{{{other_class|}}}|
{{!}}-
! class="label" {{!}} Other class
{{!}} {{{other_class}}}
}}
{{#if:{{{division|}}}|
{{!}}-
! class="label" {{!}} Division
{{!}} {{{division}}}
}}
}}
{{#if:{{{special|}}}|
{{#if:{{{special|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Special
! class="infobox-label" {{!}} Special
{{!}} {{{special}}}
{{!}} class="infobox-data" {{!}} {{{special}}}
}}
}}
{{#if:{{{loc|}}}|
{{#if:{{{loc|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} LOC
! class="infobox-label" {{!}} LOC
{{!}} {{{loc}}}
{{!}} class="infobox-data" {{!}} {{{loc}}}
}}
}}
{{#if:{{{date_arrive|}}}|
{{#if:{{{date_arrive|}}}{{{date_depart|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Date arrive
! class="infobox-label" {{!}} Service dates
{{!}} {{{date_arrive}}}
{{!}} class="infobox-data" {{!}} {{#if:{{{date_arrive|}}}|Arrived {{{date_arrive}}}}}{{#if:{{{date_arrive|}}}{{{date_depart|}}}|<br />}}{{#if:{{{date_depart|}}}|Departed {{{date_depart}}}}}
}}
{{#if:{{{date_depart|}}}|
{{!}}-
! class="label" {{!}} Date depart
{{!}} {{{date_depart}}}
}}
}}
{{#if:{{{certificate|}}}|
{{#if:{{{certificate|}}}|
{{!}}-
{{!}}-
! class="label" {{!}} Certificate
! class="infobox-label" {{!}} Certificate
{{!}} {{{certificate}}}
{{!}} class="infobox-data" {{!}} {{{certificate}}}
}}
{{#if:{{{education|}}}|
{{!}}-
! class="label" {{!}} Education
{{!}} {{{education}}}
}}
{{#if:{{{occupation|}}}|
{{!}}-
! class="label" {{!}} Civilian occupation
{{!}} {{{occupation}}}
}}
{{#if:{{{marital|}}}|
{{!}}-
! class="label" {{!}} Marital status
{{!}} {{{marital}}}
}}
}}
|}
|}
{{#invoke:Soldier|lead}}
[[Category:Soldiers]]
[[Category:Soldiers]]
{{#invoke:SplitCats|letterCategory}}
{{#invoke:SplitCats|categories|{{{class_number|}}}|Class }}
{{#invoke:SplitCats|categories|{{{class_number|}}}|Class }}
{{#if:{{{nativity|}}}|[[Category:Nativity {{{nativity}}}]]}}
{{#if:{{{nativity|}}}|[[Category:Nativity {{{nativity}}}]]}}

Revision as of 02:00, 18 August 2026

This template defines the table "Soldiers". View table. This template stores one Camp Ritchie soldier, renders a Wikipedia-style infobox, and writes the opening biography sentence from those fields. Edit the soldier article to add a photo (|photo=Filename.jpg) or a longer Life section.