Template:Infobox service record and Template:Infobox service record/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Added {{being deleted}} per Wikipedia:Templates for discussion/Log/2022 April 30#Template:Infobox ship begin (XFDcloser) |
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) |
|||
| 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> |
|||
⚫ | |||
}}{{#if:{{{victories|}}}|<tr><td>Victories:</td><td> |
|||
{{#invoke:WPSHIPS utilities|unbulleted_list|{{{victories}}}}}</td></tr> |
|||
| label4 = Operations |
|||
}}{{#if:{{{awards|}}}|<tr><td>Awards:</td><td> |
|||
⚫ | |||
{{#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> |
|||
⚫ | |||
</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> |
|||
⚫ | |||
⚫ | |||
}}{{#if:{{{operations|}}}|<tr><th style="padding-right: 1em;">Operations</th><td> |
|||
⚫ | |||
}}{{#if:{{{victories|}}}|<tr><th style="padding-right: 1em;">Victories</th><td> |
|||
⚫ | |||
}}{{#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> |
|||
⚫ | |||
{{convert to use Infobox}} |
{{convert to use Infobox}} |
||
{{documentation}} |
{{documentation}} |