Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
Line 107: Line 107:
 
CLASS
 
CLASS
  
-->| class="comptf-infobox-header" | '''Class'''
+
-->| class="comptf-infobox-header" | '''{{#if:{{{active_endyear|}}}|Main{{#if:{{{other_main1|}}}|s|}}|Class}}'''
 
| class="comptf-infobox-body" |{{#switch: {{lc: {{{class|}}} }}
 
| class="comptf-infobox-body" |{{#switch: {{lc: {{{class|}}} }}
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
 
   | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
Line 126: Line 126:
 
   | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]]
 
   | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]]
 
   | spy = {{Icon | spy | | Spy | x18px}} [[Spy]]
 
   | spy = {{Icon | spy | | Spy | x18px}} [[Spy]]
}}
+
}}{{#if:{{{active_endyear|}}}|{{#if:{{{other_main1|}}}|<br>{{#switch: {{lc: {{{other_main1|}}} }}
 +
  | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
 +
  | pocket
 +
  | pocket soldier = {{Icon | pocket | | Pocket Soldier | x18px}} [[Pocket Soldier]]
 +
  | roamer
 +
  | roaming soldier = {{Icon | roamer | | Roaming Soldier | x18px}} [[Roaming Soldier]]
 +
  | soldier ={{Icon | soldier | | Soldier | x18px}}  [[Soldier]]
 +
  | pyro = {{Icon | pyro | | Pyro | x18px}} [[Pyro]]
 +
  | demo
 +
  | demoman = {{Icon | demoman | | Demoman | x18px}} [[Demoman]]
 +
  | heavy
 +
  | heavyweapons = {{Icon | heavy | | Heavy | x18px}} [[Heavy]]
 +
  | engi
 +
  | engie
 +
  | engineer = {{Icon | engineer | | Engineer | x18px}} [[Engineer]]
 +
  | medic = {{Icon | medic | | Medic | x18px}} [[Medic]]
 +
  | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]]
 +
  | spy = {{Icon | spy | | Spy | x18px}} [[Spy]]
 +
}}}}{{#if:{{{other_main2|}}}|<br>{{#switch: {{lc: {{{other_main1|}}} }}
 +
  | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
 +
  | pocket
 +
  | pocket soldier = {{Icon | pocket | | Pocket Soldier | x18px}} [[Pocket Soldier]]
 +
  | roamer
 +
  | roaming soldier = {{Icon | roamer | | Roaming Soldier | x18px}} [[Roaming Soldier]]
 +
  | soldier ={{Icon | soldier | | Soldier | x18px}}  [[Soldier]]
 +
  | pyro = {{Icon | pyro | | Pyro | x18px}} [[Pyro]]
 +
  | demo
 +
  | demoman = {{Icon | demoman | | Demoman | x18px}} [[Demoman]]
 +
  | heavy
 +
  | heavyweapons = {{Icon | heavy | | Heavy | x18px}} [[Heavy]]
 +
  | engi
 +
  | engie
 +
  | engineer = {{Icon | engineer | | Engineer | x18px}} [[Engineer]]
 +
  | medic = {{Icon | medic | | Medic | x18px}} [[Medic]]
 +
  | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]]
 +
  | spy = {{Icon | spy | | Spy | x18px}} [[Spy]]
 +
}}}}{{#if:{{{other_main3|}}}|<br>{{#switch: {{lc: {{{other_main1|}}} }}
 +
  | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
 +
  | pocket
 +
  | pocket soldier = {{Icon | pocket | | Pocket Soldier | x18px}} [[Pocket Soldier]]
 +
  | roamer
 +
  | roaming soldier = {{Icon | roamer | | Roaming Soldier | x18px}} [[Roaming Soldier]]
 +
  | soldier ={{Icon | soldier | | Soldier | x18px}}  [[Soldier]]
 +
  | pyro = {{Icon | pyro | | Pyro | x18px}} [[Pyro]]
 +
  | demo
 +
  | demoman = {{Icon | demoman | | Demoman | x18px}} [[Demoman]]
 +
  | heavy
 +
  | heavyweapons = {{Icon | heavy | | Heavy | x18px}} [[Heavy]]
 +
  | engi
 +
  | engie
 +
  | engineer = {{Icon | engineer | | Engineer | x18px}} [[Engineer]]
 +
  | medic = {{Icon | medic | | Medic | x18px}} [[Medic]]
 +
  | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]]
 +
  | spy = {{Icon | spy | | Spy | x18px}} [[Spy]]
 +
}}}}}}
 
|- {{#if:{{{other_main1|}}}{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
 
|- {{#if:{{{other_main1|}}}{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
 
<!--
 
<!--
Line 132: Line 186:
 
OTHER MAINS
 
OTHER MAINS
  
-->{{#if:{{{other_main1|}}}|
+
-->{{#if:{{{active_endyear|}}}||{{#if:{{{other_main1|}}}|
 
{{!}} class="comptf-infobox-header" {{!}} '''Other Mains'''
 
{{!}} class="comptf-infobox-header" {{!}} '''Other Mains'''
 
{{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }}
 
{{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }}
Line 190: Line 244:
 
}}|}}
 
}}|}}
 
{{!}}- {{#if:{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
 
{{!}}- {{#if:{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
|}}
+
}}}}
 
<!--
 
<!--
  

Revision as of 12:06, 18 December 2019