Template:Soldier: Difference between revisions
Transclude Source confidence cue |
Touch template so soldier pages reparse without State/Certificate infobox rows |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 24: | Line 24: | ||
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. | 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 32: | 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 45: | Line 45: | ||
|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}} | |||
{{#ifeq:{{{lede_on_page|}}}|1||{{#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 [[ | |||
{{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}} | |||
</includeonly> | </includeonly> | ||