|
|
| Line 24: |
Line 24: |
| |Match_confidence=String | | |Match_confidence=String |
| }} | | }} |
| 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. | | This template stores one Camp Ritchie soldier, renders a Wikipedia-style infobox (Personal details and Military service), and writes the opening biography paragraph from those fields. Edit the soldier article to add a photo (<code>|photo=Filename.jpg</code>) or a longer Biography 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="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>}}}} | | }}{{DISPLAYTITLE:{{#invoke:Soldier|displayName}}}}{{#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>}}}}{{#invoke:Soldier|infobox}} |
| {| class="infobox vcard soldier-infobox"
| | |
| |-
| |
| ! colspan="2" class="infobox-above" | {{#invoke:Soldier|displayName}}
| |
| {{#if:{{{photo|}}}|
| |
| {{!}}-
| |
| {{!}} colspan="2" class="infobox-image" {{!}} [[File:{{{photo}}}|{{{image_size|220px}}}|alt={{{alt|{{#invoke:Soldier|displayName}}}}}]]{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}
| |
| }}
| |
| {{#if:{{{birth_year|}}}{{{death_year|}}}{{{alias|}}}{{{nativity|}}}{{{religion|}}}{{{marital|}}}{{{education|}}}{{{occupation|}}}{{{state|}}}|
| |
| {{!}}-
| |
| ! colspan="2" class="infobox-header" {{!}} Personal details
| |
| }}
| |
| {{#if:{{{alias|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Nickname
| |
| {{!}} class="infobox-data nickname" {{!}} {{{alias}}}
| |
| }}
| |
| {{#if:{{{birth_year|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Born
| |
| {{!}} class="infobox-data" {{!}} {{{birth_year}}}{{#if:{{{nativity|}}}|<br />Nativity: {{{nativity}}}}}
| |
| }}
| |
| {{#if:{{{death_year|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Died
| |
| {{!}} class="infobox-data" {{!}} {{{death_year}}}
| |
| }}
| |
| {{#if:{{{religion|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Religion
| |
| {{!}} class="infobox-data" {{!}} {{{religion}}}
| |
| }}
| |
| {{#if:{{{marital|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Spouse / marital
| |
| {{!}} class="infobox-data" {{!}} {{{marital}}}
| |
| }}
| |
| {{#if:{{{education|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Education
| |
| {{!}} class="infobox-data" {{!}} {{{education}}}
| |
| }}
| |
| {{#if:{{{occupation|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Occupation
| |
| {{!}} class="infobox-data" {{!}} {{{occupation}}}
| |
| }}
| |
| {{#if:{{{state|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} State
| |
| {{!}} class="infobox-data" {{!}} {{{state}}}
| |
| }}
| |
| |-
| |
| ! 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="infobox-label" {{!}} ASN
| |
| {{!}} class="infobox-data" {{!}} {{{asn}}}
| |
| }}
| |
| {{#if:{{{rank_final|}}}{{{class_rank|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Rank
| |
| {{!}} 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:{{{class_number|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Camp Ritchie
| |
| {{!}} class="infobox-data" {{!}} Class {{#invoke:Soldier|classLinks}}{{#if:{{{class_section|}}}|<br />Section {{{class_section}}}}}{{#if:{{{other_class|}}}|<br />Other: {{{other_class}}}}}
| |
| }}
| |
| {{#if:{{{enlistment_place|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Enlisted
| |
| {{!}} class="infobox-data" {{!}} {{{enlistment_place}}}
| |
| }}
| |
| {{#if:{{{assignment|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Assignment
| |
| {{!}} class="infobox-data" {{!}} {{{assignment}}}
| |
| }}
| |
| {{#if:{{{division|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Unit / division
| |
| {{!}} class="infobox-data" {{!}} {{{division}}}
| |
| }}
| |
| {{#if:{{{ipw_ge|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} IPW (German)
| |
| {{!}} class="infobox-data" {{!}} {{{ipw_ge}}}
| |
| }}
| |
| {{#if:{{{ipw_it|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} IPW (Italian)
| |
| {{!}} class="infobox-data" {{!}} {{{ipw_it}}}
| |
| }}
| |
| {{#if:{{{overseas|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Overseas
| |
| {{!}} class="infobox-data" {{!}} {{{overseas}}}
| |
| }}
| |
| {{#if:{{{special|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Special
| |
| {{!}} class="infobox-data" {{!}} {{{special}}}
| |
| }} | |
| {{#if:{{{loc|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} LOC
| |
| {{!}} class="infobox-data" {{!}} {{{loc}}}
| |
| }}
| |
| {{#if:{{{date_arrive|}}}{{{date_depart|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Service dates
| |
| {{!}} class="infobox-data" {{!}} {{#if:{{{date_arrive|}}}|Arrived {{{date_arrive}}}}}{{#if:{{{date_arrive|}}}{{{date_depart|}}}|<br />}}{{#if:{{{date_depart|}}}|Departed {{{date_depart}}}}}
| |
| }}
| |
| {{#if:{{{certificate|}}}|
| |
| {{!}}-
| |
| ! class="infobox-label" {{!}} Certificate
| |
| {{!}} class="infobox-data" {{!}} {{{certificate}}}
| |
| }}
| |
| |}
| |
| {{#invoke:Soldier|lead}} | | {{#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}}}]]}} |
| {{#if:{{{assignment|}}}|[[Category:Assignment {{{assignment}}}]]}} | | {{#if:{{{assignment|}}}|[[Category:Assignment {{{assignment}}}]]}} |
| </includeonly> | | </includeonly> |
This template defines the table "Soldiers". View table.
This template stores one Camp Ritchie soldier, renders a Wikipedia-style infobox (Personal details and Military service), and writes the opening biography paragraph from those fields. Edit the soldier article to add a photo (|photo=Filename.jpg) or a longer Biography section.