Template:Infobox-chapter: Difference between revisions

m Add list_of_honor param: gold outline + caption + auto-category for List of Honor ships
m Branch-aware default crest (GSN/RMMC/RMA/RHN/IAN) when no ship crest provided
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Infobox-chapter/styles.css" />
<includeonly><templatestyles src="Infobox-chapter/styles.css" />
{| class="sidebar tf-cbox{{#if:{{{list_of_honor|}}}| tf-cbox-loh}}"
{| class="sidebar tf-cbox {{#if:{{{list_of_honor|}}}|tf-cbox-loh}}"
|-  
|-  
| class="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''{{#if:{{{hcn|}}}|<br/><span class="tf-cbox-hcn">{{{hcn}}}</span>}}
| class="tf-cbox-name tf-b-{{lc:{{{branch|default}}}}}" colspan="2" | '''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''{{#if:{{{hcn|}}}|<br/><span class="tf-cbox-hcn">{{{hcn}}}</span>}}
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|&#9733; List of Honor]]}}
{{!}} class="tf-cbox-loh-cap" colspan="2" {{!}} [[List of Honor|&#9733; List of Honor ({{#ifeq:{{lc:{{{branch|}}}}}|gsn|GSN|RMN}}) &#9733;]]}}
|}
|}
[[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>