Template:Infobox-chapter: Difference between revisions

m Add list_of_honor param: gold outline + caption + auto-category for List of Honor ships
m Fix class concat: space before #if so tf-cbox-loh is a separate class
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>}}