Difference between revisions of "Template:Infobox service record/sandbox"
Jump to navigation
Jump to search
imported>Trappist the monk |
imported>ProcrastinatingReader (sync) |
||
| Line 6: | Line 6: | ||
</tr> | </tr> | ||
{{#if:{{{partof|}}}|<tr><td>Part of:</td><td> | {{#if:{{{partof|}}}|<tr><td>Part of:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{partof}}}}}</td></tr> |
}}{{#if:{{{codes|}}}|<tr><td>Identification codes:</td><td> | }}{{#if:{{{codes|}}}|<tr><td>Identification codes:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{codes}}}}}</td></tr> |
}}{{#if:{{{commanders|}}}|<tr><td>Commanders:</td><td> | }}{{#if:{{{commanders|}}}|<tr><td>Commanders:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{commanders}}}}}</td></tr> |
}}{{#if:{{{operations|}}}|<tr><td>Operations:</td><td> | }}{{#if:{{{operations|}}}|<tr><td>Operations:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{operations}}}}}</td></tr> |
}}{{#if:{{{victories|}}}|<tr><td>Victories:</td><td> | }}{{#if:{{{victories|}}}|<tr><td>Victories:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{victories}}}}}</td></tr> |
}}{{#if:{{{awards|}}}|<tr><td>Awards:</td><td> | }}{{#if:{{{awards|}}}|<tr><td>Awards:</td><td> | ||
| − | {{#invoke:WPSHIPS utilities | + | {{#invoke:WPSHIPS utilities|unbulleted_list|{{{awards}}}}}</td></tr> |
}}|<tr><!-- here for non-ship --> | }}|<tr><!-- here for non-ship --> | ||
<th colspan="2" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th> | <th colspan="2" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th> | ||
| Line 35: | Line 35: | ||
|00 = </table> | |00 = </table> | ||
|#default = }}</includeonly><noinclude> | |#default = }}</includeonly><noinclude> | ||
| + | {{convert to use Infobox}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 23:05, 31 July 2020
| This template may be suitable for conversion to use {{Infobox}} as a base. |
| This is the template sandbox page for Template:Infobox service record (diff). See also the companion subpage for test cases. |
Usage
Infobox service record
| Combat service | |
|---|---|
| Part of | 7. Unterseebootsflottille (1938–41) |
| Identification codes | M 18 837 (feldpost) |
| Commanders | Günther Prien (1938–41) |
| Operations | 10 patrols |
| Victories |
30 ships (162,769 GRT) sunk, 1 warship (29,150 tons) sunk, 8 ships (62,751 GRT) damaged |
A service record box may be used to summarize information about an individual military unit's or ship's service history; it should generally be used in conjunction with the appropriate primary infobox. If needed, multiple boxes may be used to separate the service record for different periods; for example, a unit that fought in several wars may have separate boxes for each.
The box should be added using the {{Infobox service record}} template, as shown below:
{{Infobox service record
| is_ship =
| is_multi =
| label =
| partof =
| codes =
| commanders =
| operations =
| victories =
| awards =
}}
Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none". All subjective or qualitative judgements and numerical quantities or statistics must be cited to a reliable source (see WP:MILMOS#CITE).
- is_ship – optional – "yes" if the box is being used inside a compound ship infobox.
- is_multi – optional – "yes" if multiple instances of the box are being used inside a single compound ship infobox.
- label – optional – the label to use for the box; this defaults to "Service record" if left blank.
- partof – optional – the unit or formation of which the subject unit or ship was a part; multiple units may be listed with the corresponding dates.
- codes – optional – the identification codes carried by the unit or ship; these should generally be labeled according to what the code indicates.
- commanders – optional – the notable commanding officers for the period covered.
- operations – optional – the operations (such as battles, wars, campaigns, patrols, cruises, etc.) in which the subject unit or ship participated; these may be given as a list, or described in a more condensed form.
- victories – optional – the victories or successes in the subject's service history. For units, this may be battles won; for submarines or merchant raiders, the ships and tonnage sunk; and so forth.
- awards – optional – the awards, decorations, or other honors received by the subject unit or ship.
| The above documentation is transcluded from Template:Infobox service record/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |