Template:Infobox service record: Difference between revisions
Add dark mode infobox styles |
Add Era field to infobox template |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Infobox service record/styles.css" /> | <templatestyles src="Template:Infobox service record/styles.css" /> | ||
<includeonly>{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}| | <includeonly>{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}| | ||
|00 = <table {{WPMILHIST Infobox style|main_box}}><!-- standalone --> | |00 = <table {{WPMILHIST Infobox style|main_box}}><!-- standalone --> | ||
| Line 34: | Line 33: | ||
}}{{#if:{{{awards|}}}|<tr><th style="padding-right: 1em;">Awards</th><td> | }}{{#if:{{{awards|}}}|<tr><th style="padding-right: 1em;">Awards</th><td> | ||
{{{awards}}}</td></tr> | {{{awards}}}</td></tr> | ||
}}}}{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}| | }}}}{{#if:{{{era|}}}|<tr><th style="padding-right: 1em;">Era</th><td>{{{era}}}</td></tr> | ||
{{#switch:{{#ifeq:{{{is_ship|}}}|yes|1|0}}{{#ifeq:{{{is_multi|}}}|yes|1|0}}| | |||
|00 = </table> | |00 = </table> | ||
|#default = }}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox service record with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox service record]] with unknown parameter "_VALUE_"|ignoreblank=y| awards | codes | commanders | is_multi | is_ship | label | operations | partof | victories }}<noinclude> | |#default = }}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox service record with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox service record]] with unknown parameter "_VALUE_"|ignoreblank=y| awards | codes | commanders | is_multi | is_ship | label | operations | partof | victories | era }}<noinclude> | ||
{{convert to use Infobox}} | {{convert to use Infobox}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||