Jump to content

Template:Infobox service record and Template:Infobox service record/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
 
m rm
 
Line 1: Line 1:
<includeonly>
<noinclude>{{Being deleted|2022 April 30|Template:Infobox ship begin|merge= Template:Infobox ship}}</noinclude><includeonly>{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}|

|00 = <table {{WPMILHIST Infobox style|main_box}}><!-- standalone -->
{{Infobox
|#default = }}<!-- not standalone (in a primary infobox)
-->{{#ifeq:{{{is_ship|}}}|yes|<tr><!-- here for ship -->
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
| headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}}
<th colspan="2" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th>
| title = {{#ifeq:{{{embed|}}}|yes|<div style="font-weight:bold; text-align:center;">{{{label|Service record}}}</div>}}
</tr>

{{#if:{{{partof|}}}|<tr><td>Part of:</td><td>
| label1 = Part of
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{partof}}}}}</td></tr>
| data1 = {{{partof|}}}
}}{{#if:{{{codes|}}}|<tr><td>Identification codes:</td><td>

{{#invoke:WPSHIPS utilities|unbulleted_list|{{{codes}}}}}</td></tr>
| label2 = Identification codes
}}{{#if:{{{commanders|}}}|<tr><td>Commanders:</td><td>
| data2 = {{{codes|}}}
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{commanders}}}}}</td></tr>

}}{{#if:{{{operations|}}}|<tr><td>Operations:</td><td>
| label3 = Commanders
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{operations}}}}}</td></tr>
| data3 = {{{commanders|}}}
}}{{#if:{{{victories|}}}|<tr><td>Victories:</td><td>

{{#invoke:WPSHIPS utilities|unbulleted_list|{{{victories}}}}}</td></tr>
| label4 = Operations
}}{{#if:{{{awards|}}}|<tr><td>Awards:</td><td>
| data4 = {{{operations|}}}
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{awards}}}}}</td></tr>

}}|<tr><!-- here for non-ship -->
| label5 = Victories
<th colspan="2" {{WPMILHIST Infobox style|header_bar}}>{{#if:{{{label|}}}|{{{label|}}}|Service record}}</th>
| data5 = {{{victories|}}}
</tr>

{{#if:{{{partof|}}}|<tr><th style="padding-right: 1em;">Part of</th><td>
| label6 = Awards
{{{partof}}}</td></tr>
| data6 = {{{awards|}}}
}}{{#if:{{{codes|}}}|<tr><th style="padding-right: 1em;">Identification codes</th><td>
}}
{{{codes}}}</td></tr>

}}{{#if:{{{commanders|}}}|<tr><th style="padding-right: 1em;">Commanders</th><td>
</includeonly><noinclude>
{{{commanders}}}</td></tr>
}}{{#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}}