Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
m (Garlic moved page Template:InfoboxPlayer to Template:Infobox Player without leaving a redirect)
m
Line 1: Line 1:
<includeonly>{| class="playerinfobox" cellpadding="2"<!--
+
<includeonly>{| class="comptf_infobox" cellpadding="2"<!--
  
  
  
  
HEADER
+
TITLE
  
  
Line 10: Line 10:
  
 
-->
 
-->
! class="playerinfobox-title" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<!--
+
! class="comptf_infobox-title" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<!--
  
 
IMAGE
 
IMAGE
Line 38: Line 38:
 
-->
 
-->
 
|-
 
|-
! class="playerinfobox-header" colspan="2" | Player Information<!---
+
! class="comptf_infobox-subtitle" colspan="2" | Player Information<!---
  
 
NAME
 
NAME
Line 44: Line 44:
 
-->
 
-->
 
{{#if:{{{name|}}}|
 
{{#if:{{{name|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="compt-finfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Name'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Name'''
{{!}} class="playerinfobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
+
{{!}} class="comptf_infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
 
|}}<!--
 
|}}<!--
  
Line 53: Line 53:
 
-->
 
-->
 
{{#if:{{{birth_year|}}}|
 
{{#if:{{{birth_year|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Born'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Born'''
{{!}} class="playerinfobox-body" {{!}} {{#if: {{{birth_month|}}} | {{#if: {{{birth_day|}}} | {{#if: {{{death_year|}}} | {{birth_date | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} | {{#if: {{{death_year|}}} | {{birth_date | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} | {{birth_date_and_age | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} }} |}} |}} | {{{birth_year|}}} }}
+
{{!}} class="comptf_infobox-body" {{!}} {{#if: {{{birth_month|}}} | {{#if: {{{birth_day|}}} | {{#if: {{{death_year|}}} | {{birth_date | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} | {{#if: {{{death_year|}}} | {{birth_date | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} | {{birth_date_and_age | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} }} }} |}} |}} | {{{birth_year|}}} }}
 
|}}<!--
 
|}}<!--
  
Line 62: Line 62:
 
-->
 
-->
 
{{#if:{{{death_year|}}}|
 
{{#if:{{{death_year|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Died'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Died'''
{{!}} class="playerinfobox-body" {{!}} {{#if: {{{death_month|}}} | {{#if: {{{death_day|}}} | {{#if: {{{death_day|}}} | {{death_date_and_age | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} | {{{death_year|}}} | {{{death_month|}}} | {{{death_day|}}} }} | {{death_date | {{{death_year|}}} | {{{death_month|}}} | {{{death_day|}}} }} }} |}} | {{{death_year|}}} }}
+
{{!}} class="comptf_infobox-body" {{!}} {{#if: {{{death_month|}}} | {{#if: {{{death_day|}}} | {{#if: {{{death_day|}}} | {{death_date_and_age | {{{birth_year|}}} | {{{birth_month|}}} | {{{birth_day|}}} | {{{death_year|}}} | {{{death_month|}}} | {{{death_day|}}} }} | {{death_date | {{{death_year|}}} | {{{death_month|}}} | {{{death_day|}}} }} }} |}} | {{{death_year|}}} }}
 
|}}<!--
 
|}}<!--
  
Line 71: Line 71:
 
-->
 
-->
 
{{#if:{{{nationality|}}}|
 
{{#if:{{{nationality|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}'''
{{!}} class="playerinfobox-body" {{!}} {{flag | {{{nationality}}} }} [[:Category:{{localisation | {{{nationality|}}} }}_Players | {{{nationality|}}}]] {{#if: {{{nationality2|}}} | <br>{{flag | {{{nationality2}}} }} [[:Category:{{localisation | {{{nationality2|}}} }}_Players | {{{nationality2|}}} ]] |}}
+
{{!}} class="comptf_infobox-body" {{!}} {{flag | {{{nationality}}} }} [[:Category:{{localisation | {{{nationality|}}} }}_Players | {{{nationality|}}}]] {{#if: {{{nationality2|}}} | <br>{{flag | {{{nationality2}}} }} [[:Category:{{localisation | {{{nationality2|}}} }}_Players | {{{nationality2|}}} ]] |}}
 
|}}<!--
 
|}}<!--
  
Line 79: Line 79:
  
 
-->
 
-->
|- class="playerinfobox-info"
+
|- class="comptf_infobox-info"
| class="playerinfobox-subheader" | '''Status'''
+
| class="comptf_infobox-header" | '''Status'''
| class="playerinfobox-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
+
| class="comptf_infobox-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
  
 
FORMAT
 
FORMAT
Line 87: Line 87:
 
-->
 
-->
 
{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
 
{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Format'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Format'''
{{!}} class="playerinfobox-body" {{!}} [[{{{format|}}}]]
+
{{!}} class="comptf_infobox-body" {{!}} [[{{{format|}}}]]
 
}}
 
}}
 
|}}<!--
 
|}}<!--
Line 96: Line 96:
  
 
-->
 
-->
|- class="playerinfobox-info"
+
|- class="comptf_infobox-info"
| class="playerinfobox-subheader" | '''Team'''
+
| class="comptf_infobox-header" | '''Team'''
| class="playerinfobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!--
+
| class="comptf_infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!--
  
 
ROLE
 
ROLE
  
 
-->
 
-->
|- class="playerinfobox-info"
+
|- class="comptf_infobox-info"
| class="playerinfobox-subheader" | '''Role{{#if:{{{role2|}}}|s|}}'''
+
| class="comptf_infobox-header" | '''Role{{#if:{{{role2|}}}|s|}}'''
| class="playerinfobox-body" |{{#switch: {{lc: {{{role|}}} }}
+
| class="comptf_infobox-body" |{{#switch: {{lc: {{{role|}}} }}
 
   | 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 143: Line 143:
 
-->
 
-->
 
{{#if:{{{career_winnings|}}}|
 
{{#if:{{{career_winnings|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Career Winnings'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Career Winnings'''
{{!}} class="playerinfobox-body" {{!}} ~${{Thousands_separator|{{#ifexpr:{{#len:{{{career_winnings|}}}}}>4|{{#expr:{{{career_winnings|}}} round -3}}|{{#ifeq:{{#len:{{{career_winnings|}}}}}|1|{{{career_winnings|}}}|{{#expr:{{{career_winnings|}}} round {{#len:{{{career_winnings|}}}}}*-1+2}}}}}}}}
+
{{!}} class="comptf_infobox-body" {{!}} ~${{Thousands_separator|{{#ifexpr:{{#len:{{{career_winnings|}}}}}>4|{{#expr:{{{career_winnings|}}} round -3}}|{{#ifeq:{{#len:{{{career_winnings|}}}}}|1|{{{career_winnings|}}}|{{#expr:{{{career_winnings|}}} round {{#len:{{{career_winnings|}}}}}*-1+2}}}}}}}}
 
|}}<!--
 
|}}<!--
  
Line 152: Line 152:
 
-->
 
-->
 
{{#if:{{{other_aliases|}}}|
 
{{#if:{{{other_aliases|}}}|
{{!}}- class="playerinfobox-info"
+
{{!}}- class="comptf_infobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Other Aliases'''
+
{{!}} class="comptf_infobox-header" {{!}} '''Other Aliases'''
{{!}} class="playerinfobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
+
{{!}} class="comptf_infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
 
|}}<!--
 
|}}<!--
  
Line 168: Line 168:
 
{{#if:{{{major_honors|}}}|
 
{{#if:{{{major_honors|}}}|
 
{{!}}-
 
{{!}}-
! class="playerinfobox-header" colspan="2" style="position:relative" {{!}} Honors<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[{{FULLPAGENAME}}#Honors|[see all]]]</span>
+
! class="comptf_infobox-subtitle" colspan="2" style="position:relative" {{!}} Honors<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[{{FULLPAGENAME}}#Honors|[see all]]]</span>
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}} {{{major_honors|}}}
 
{{!}} colspan="2" {{!}} {{{major_honors|}}}
Line 185: Line 185:
 
{{#if:{{{team_history|}}}|
 
{{#if:{{{team_history|}}}|
 
{{!}}-
 
{{!}}-
! class="playerinfobox-header" colspan="2" {{!}} Team History
+
! class="comptf_infobox-subtitle" colspan="2" {{!}} Team History
 
{{!}}- style="background-color:#f5f5f5"
 
{{!}}- style="background-color:#f5f5f5"
 
{{!}} colspan="2" {{!}} <div style="font-size:11px; overflow: hidden; padding:0 2px"><div style="float:left;width:25%;text-align:left">'''Years'''</div><div style="float:left;width:50%;text-align:center;">'''Team'''</div><div style="float:right;width:25%;text-align:right">'''Winnings'''</div></div>
 
{{!}} colspan="2" {{!}} <div style="font-size:11px; overflow: hidden; padding:0 2px"><div style="float:left;width:25%;text-align:left">'''Years'''</div><div style="float:left;width:50%;text-align:center;">'''Team'''</div><div style="float:right;width:25%;text-align:right">'''Winnings'''</div></div>
Line 203: Line 203:
 
{{#if: {{{tftv|}}}{{{rgl|}}}{{{etf2l|}}}{{{ozf|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}|
 
{{#if: {{{tftv|}}}{{{rgl|}}}{{{etf2l|}}}{{{ozf|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}|
 
{{!}}-
 
{{!}}-
! class="playerinfobox-header" colspan="2" {{!}} Links
+
! class="comptf_infobox-subtitle" colspan="2" {{!}} Links
 
{{!}}-
 
{{!}}-
{{!}} class="playerinfobox-icons" colspan="2" style="text-align:center" {{!}} {{#if:{{{tftv|}}}|[[Image:TeamfortressTV icon2.png|32px|teamfortress.tv User Page|link=http://www.teamfortress.tv/user/{{{tftv}}}]]}}<!--
+
{{!}} class="comptf_infobox-icons" colspan="2" style="text-align:center" {{!}} {{#if:{{{tftv|}}}|[[Image:TeamfortressTV icon2.png|32px|teamfortress.tv User Page|link=http://www.teamfortress.tv/user/{{{tftv}}}]]}}<!--
 
--> {{#if:{{{logs|}}}|[[Image:Logs.tf Icon.png|32px|Logs.tf Page|link=http://logs.tf/profile/{{{logs|}}}]]}}<!--
 
--> {{#if:{{{logs|}}}|[[Image:Logs.tf Icon.png|32px|Logs.tf Page|link=http://logs.tf/profile/{{{logs|}}}]]}}<!--
 
--> {{#if:{{{rgl|}}}|[[Image:RGL Icon.png|32px|RGL Player Page|link=https://rgl.gg/Public/PlayerProfile.aspx?p={{{rgl|}}}]]}}<!--
 
--> {{#if:{{{rgl|}}}|[[Image:RGL Icon.png|32px|RGL Player Page|link=https://rgl.gg/Public/PlayerProfile.aspx?p={{{rgl|}}}]]}}<!--

Revision as of 08:05, 11 December 2019