Difference between revisions of "Template:Infobox service record/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>ProcrastinatingReader
(sync)
imported>ProcrastinatingReader
(quick v)
Line 1: Line 1:
<includeonly>{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}|
+
<includeonly>
|00 = <table {{WPMILHIST Infobox style|main_box}}><!-- standalone -->
+
 
|#default = }}<!-- not standalone (in a primary infobox) -->
+
{{Infobox
{{#ifeq:{{{is_ship|}}}|yes|<tr><!-- here for ship -->
+
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
<th colspan="2" height="30" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th>
+
| headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}}
</tr>
+
| title = {{#ifeq:{{{embed|}}}|yes|<div style="font-weight:bold; text-align:center;">{{{label|Service record}}}</div>}}
{{#if:{{{partof|}}}|<tr><td>Part of:</td><td>
+
 
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{partof}}}}}</td></tr>
+
| label1 = Part of
}}{{#if:{{{codes|}}}|<tr><td>Identification codes:</td><td>
+
| data1 = {{{partof|}}}
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{codes}}}}}</td></tr>
+
 
}}{{#if:{{{commanders|}}}|<tr><td>Commanders:</td><td>
+
| label2 = Identification codes
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{commanders}}}}}</td></tr>
+
| data2 = {{{codes|}}}
}}{{#if:{{{operations|}}}|<tr><td>Operations:</td><td>
+
 
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{operations}}}}}</td></tr>
+
| label3 = Commanders
}}{{#if:{{{victories|}}}|<tr><td>Victories:</td><td>
+
| data3 = {{{commanders|}}}
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{victories}}}}}</td></tr>
+
 
}}{{#if:{{{awards|}}}|<tr><td>Awards:</td><td>
+
| label4 = Operations
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{awards}}}}}</td></tr>
+
| data4 = {{{operations|}}}
}}|<tr><!-- here for non-ship -->
+
 
<th colspan="2" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th>
+
| label5 = Victories
</tr>
+
| data5 = {{{victories|}}}
{{#if:{{{partof|}}}|<tr><th style="padding-right: 1em;">Part of</th><td>
+
 
{{{partof}}}</td></tr>
+
| label6 = Awards
}}{{#if:{{{codes|}}}|<tr><th style="padding-right: 1em;">Identification codes</th><td>
+
| data6 = {{{awards|}}}}
{{{codes}}}</td></tr>
+
}}
}}{{#if:{{{commanders|}}}|<tr><th style="padding-right: 1em;">Commanders</th><td>
+
 
{{{commanders}}}</td></tr>
+
</includeonly><noinclude>
}}{{#if:{{{operations|}}}|<tr><th style="padding-right: 1em;">Operations</th><td>
 
{{{operations}}}</td></tr>
 
}}{{#if:{{{victories|}}}|<tr><th style="padding-right: 1em;">Victories</th><td>
 
{{{victories}}}</td></tr>
 
}}{{#if:{{{awards|}}}|<tr><th style="padding-right: 1em;">Awards</th><td>
 
{{{awards}}}</td></tr>
 
}}}}{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}|
 
|00 = </table>
 
|#default = }}</includeonly><noinclude>
 
 
{{convert to use Infobox}}
 
{{convert to use Infobox}}
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 23:21, 31 July 2020

Template documentation[view] [edit] [history] [purge]

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_shipoptional – "yes" if the box is being used inside a compound ship infobox.
  • is_multioptional – "yes" if multiple instances of the box are being used inside a single compound ship infobox.
  • labeloptional – the label to use for the box; this defaults to "Service record" if left blank.
  • partofoptional – the unit or formation of which the subject unit or ship was a part; multiple units may be listed with the corresponding dates.
  • codesoptional – the identification codes carried by the unit or ship; these should generally be labeled according to what the code indicates.
  • commandersoptional – the notable commanding officers for the period covered.
  • operationsoptional – 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.
  • victoriesoptional – 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.
  • awardsoptional – the awards, decorations, or other honors received by the subject unit or ship.