Template:Infobox-chapter: Difference between revisions

m Fix class concat: space before #if so tf-cbox-loh is a separate class
m Branch-aware default crest (GSN/RMMC/RMA/RHN/IAN) when no ship crest provided
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
| class="tf-cbox-img" colspan="2" | {{#if: {{{crest|}}}
| class="tf-cbox-img" colspan="2" | {{#if: {{{crest|}}}
| {{sidebar image|{{{crest}}}}}
| {{sidebar image|{{{crest}}}}}
| [[File:RMNFlash.png|250px]]
| {{#switch:{{lc:{{{branch|}}}}}|gsn=[[File:Gsn_logo.png|250px]]|rmmc=[[File:RMMCFlash.png|250px]]|rma=[[File:Flag Royal Manticoran Army.png|250px]]|rhn=[[File:Rhnflash.png|250px]]|ian=[[File:IAN-logo.png|250px]]|#default=[[File:RMNFlash.png|250px]]}}
}}
}}
|- valign="top"
|- valign="top"
Line 60: Line 60:
|- valign="top"
|- valign="top"
{{#if: {{{list_of_honor|}}}|
{{#if: {{{list_of_honor|}}}|
{{!}} class="tf-cbox-loh-cap" colspan="2" {{!}} [[List of Honor|★ List of Honor]]}}
{{!}} class="tf-cbox-loh-cap" colspan="2" {{!}} [[List of Honor|★ List of Honor ({{#ifeq:{{lc:{{{branch|}}}}}|gsn|GSN|RMN}}) ★]]}}
|}
|}
[[Category:Chapters|{{{name}}}]]{{#if:{{{list_of_honor|}}}|[[Category:List of Honor|{{{name}}}]]}}</includeonly><noinclude>
[[Category:Chapters|{{{name}}}]]{{#if:{{{list_of_honor|}}}|[[Category:List of Honor|{{{name}}}]]}}</includeonly><noinclude>