|
|
| (19 intermediate revisions by the same user not shown) |
| Line 17: |
Line 17: |
| |Enlistment_place=String | | |Enlistment_place=String |
| |State=String | | |State=String |
| |Assignment=String
| |
| |IPW_German=String | | |IPW_German=String |
| |IPW_Italian=String | | |IPW_Italian=String |
| |Overseas=String
| |
| |Rank_final=String | | |Rank_final=String |
| |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: upload a file named like <code>Firstname surname.jpg</code> and the infobox will use it automatically, or set <code>|photo=Filename.jpg</code> explicitly. |
| [[Category:Templates]] | | [[Category:Templates]] |
| </noinclude><includeonly>{{#cargo_store:_table=Soldiers | | </noinclude><includeonly><!-- infobox trim: no State/Certificate display (Module:Soldier) -->{{#cargo_store:_table=Soldiers |
| |ASN={{{asn|}}} | | |ASN={{{asn|}}} |
| |Surname={{{surname|}}} | | |Surname={{{surname|}}} |
| Line 34: |
Line 32: |
| |Alias={{{alias|}}} | | |Alias={{{alias|}}} |
| |Class_number={{{class_number|}}} | | |Class_number={{{class_number|}}} |
| |Class_section={{{class_section|}}} | | |Class_section={{uc:{{{class_section|}}}}} |
| |Class_rank={{{class_rank|}}} | | |Class_rank={{{class_rank|}}} |
| |Class_branch={{{class_branch|}}} | | |Class_branch={{{class_branch|}}} |
| Line 43: |
Line 41: |
| |Enlistment_place={{{enlistment_place|}}} | | |Enlistment_place={{{enlistment_place|}}} |
| |State={{{state|}}} | | |State={{{state|}}} |
| |Assignment={{{assignment|}}}
| |
| |IPW_German={{{ipw_ge|}}} | | |IPW_German={{{ipw_ge|}}} |
| |IPW_Italian={{{ipw_it|}}} | | |IPW_Italian={{{ipw_it|}}} |
| |Overseas={{{overseas|}}}
| |
| |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}}{{#ifeq:{{{lede_on_page|}}}|1|| |
| {| class="infobox vcard soldier-infobox"
| | {{#invoke:Soldier|lead}}}}{{#invoke:Soldier|storyCue}}{{#invoke:Soldier|mediaCue}}{{#invoke:Soldier|awardsSection}}{{#invoke:Soldier|relatedSoldiers}}<div class="hatnote research-notes-disclaimer">''Research notes'' on this page are compiled from the source file and later edits. They may be unverified, incomplete, or incorrect, and should not be treated as established fact. Please [[Contribute|correct the article]] or add sources on the [[{{TALKPAGENAME}}|talk page]]. For class-roster terms, see [[About the data]].</div>{{Source confidence}}[[Category:Soldiers]]{{#invoke:SplitCats|letterCategory}}{{#invoke:SplitCats|categories|{{{class_number|}}}|Class }}{{#if:{{{nativity|}}}|[[Category:Nativity {{{nativity}}}]]}}{{#invoke:SplitCats|categories|{{{ipw_ge|}}}|Team IPW }}{{#invoke:SplitCats|categories|{{{ipw_it|}}}|Team IPW Italian }}{{#invoke:Soldier|noteTeamCategories}} |
| |-
| |
| ! 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}}
| |
| | |
| [[Category:Soldiers]]
| |
| {{#invoke:SplitCats|categories|{{{class_number|}}}|Class }} | |
| {{#if:{{{nativity|}}}|[[Category:Nativity {{{nativity}}}]]}} | |
| {{#if:{{{assignment|}}}|[[Category:Assignment {{{assignment}}}]]}}
| |
| </includeonly> | | </includeonly> |