Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
m
m
Line 130: Line 130:
 
{{!}}- class="comptf-infobox-info"
 
{{!}}- class="comptf-infobox-info"
 
{{!}} class="comptf-infobox-header" {{!}} '''Other Main{{#if:{{{other_mains}}}|s}}'''
 
{{!}} class="comptf-infobox-header" {{!}} '''Other Main{{#if:{{{other_mains}}}|s}}'''
| class="comptf-infobox-body" |{{#if:{{{other_main1|}}}|{{#switch: {{lc: {{{other_main1|}}} }}
+
{{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }}
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[:Category:Scouts|Scout]]
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[:Category:Scouts|Scout]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier | x18px}} [[:Category:Pocket Soldiers|Pocket]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier | x18px}} [[:Category:Pocket Soldiers|Pocket]]
Line 146: Line 146:
 
   | sniper = {{Icon | sniper | | Sniper | x18px}} [[:Category:Snipers|Sniper]]
 
   | sniper = {{Icon | sniper | | Sniper | x18px}} [[:Category:Snipers|Sniper]]
 
   | spy = {{Icon | spy | | Spy | x18px}} [[:Category:Spies|Spy]]
 
   | spy = {{Icon | spy | | Spy | x18px}} [[:Category:Spies|Spy]]
}}{{#if:{{{other_mains|}}}|{{#switch: {{lc: {{{other_mains|}}} }}
+
}}{{#if:{{{other_main2|}}}|<br>{{#switch: {{lc: {{{other_main2|}}} }}
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[:Category:Scouts|Scout]]
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[:Category:Scouts|Scout]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier | x18px}} [[:Category:Pocket Soldiers|Pocket]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier | x18px}} [[:Category:Pocket Soldiers|Pocket]]

Revision as of 13:23, 13 December 2019