Template:Soldier: Difference between revisions
Link MII/IPW team codes in research notes. |
Touch template so soldier pages reparse without State/Certificate infobox rows |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
|Enlistment_place=String | |Enlistment_place=String | ||
|State=String | |State=String | ||
|IPW_German=String | |IPW_German=String | ||
|IPW_Italian=String | |IPW_Italian=String | ||
| Line 23: | Line 22: | ||
|Match_confidence=String | |Match_confidence=String | ||
}} | }} | ||
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 | 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 33: | 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 42: | Line 41: | ||
|Enlistment_place={{{enlistment_place|}}} | |Enlistment_place={{{enlistment_place|}}} | ||
|State={{{state|}}} | |State={{{state|}}} | ||
|IPW_German={{{ipw_ge|}}} | |IPW_German={{{ipw_ge|}}} | ||
|IPW_Italian={{{ipw_it|}}} | |IPW_Italian={{{ipw_it|}}} | ||
|Rank_final={{{rank_final|}}} | |Rank_final={{{rank_final|}}} | ||
|Match_confidence={{{confidence|}}} | |Match_confidence={{{confidence|}}} | ||
}}{{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}} | }}{{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|| | ||
{{#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}} | |||
{{#invoke:Soldier|lead}} | |||
<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 [[ | |||
[[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}} | |||
</includeonly> | </includeonly> | ||