Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>{| class="infobox"<!--
+
<includeonly>{| class="playerinfobox"<!--
  
  
Line 10: Line 10:
  
 
-->
 
-->
! colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<!--
+
! class="playerinfobox-header" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<!--
  
 
IMAGE
 
IMAGE
  
 
-->
 
-->
|- style="{{#if: {{{image|}}} | | display: none}}"
+
|- class="playerinfobox-header" style="{{#if: {{{image|}}} | | display: none}}"
 
| colspan="2" | [[File: {{{image}}} | 300px | center ]]<!--
 
| colspan="2" | [[File: {{{image}}} | 300px | center ]]<!--
  
Line 21: Line 21:
  
 
-->
 
-->
|- style="{{#if: {{{caption|}}} | | display: none}}"
+
|- class="playerinfobox-header" style="{{#if: {{{caption|}}} | | display: none}}"
 
| colspan="2" style="text-align: center" | {{{caption}}}<!--
 
| colspan="2" style="text-align: center" | {{{caption}}}<!--
  
Line 34: Line 34:
 
-->
 
-->
 
|-
 
|-
! colspan="2" | Player Information<!---
+
! class="playerinfobox-header" colspan="2" | Player Information<!---
  
 
NAME
 
NAME
Line 40: Line 40:
 
-->
 
-->
 
|- style="{{#if: {{{name|}}} | | display: none}}"
 
|- style="{{#if: {{{name|}}} | | display: none}}"
! Name
+
| class="playerinfobox-subheader" | Name
| {{{name}}}<!--
+
| class="playerinfobox-body" | {{{name}}}<!--
  
 
ROMANIZED NAME
 
ROMANIZED NAME
Line 47: Line 47:
 
-->
 
-->
 
|- style="{{#if: {{{romanized_name|}}} | | display: none}}"
 
|- style="{{#if: {{{romanized_name|}}} | | display: none}}"
! Romanized Name
+
| class="playerinfobox-subheader" | Romanized Name
| {{{romanized_name|}}}<!--
+
| class="playerinfobox-body" | {{{romanized_name|}}}<!--
  
 
BORN
 
BORN
Line 54: Line 54:
 
-->
 
-->
 
|- style="{{#if: {{{birth_year|}}} | | display: none}}"
 
|- style="{{#if: {{{birth_year|}}} | | display: none}}"
! Born
+
| class="playerinfobox-subheader" | Born
| {{#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="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|}}} }}<!--
  
 
DIED
 
DIED
Line 61: Line 61:
 
-->
 
-->
 
|- style="{{#if: {{{death_year|}}} | | display: none}}"
 
|- style="{{#if: {{{death_year|}}} | | display: none}}"
! Died
+
| class="playerinfobox-subheader" | Died
| {{#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="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|}}} }}<!--
  
 
NATIONALITY
 
NATIONALITY
Line 68: Line 68:
 
-->
 
-->
 
|- style="{{#if: {{{nationality|}}} | | display: none}}"
 
|- style="{{#if: {{{nationality|}}} | | display: none}}"
! Nationality
+
| class="playerinfobox-subheader" | Nationality
| {{flag | {{{nationality}}} }} [[:Category:{{localisation | {{{nationality|}}} }}_Players | {{{nationality|}}}]] {{#if: {{{nationality2|}}} | <br>{{flag | {{{nationality2}}} }} [[:Category:{{localisation | {{{nationality2|}}} }}_Players | {{{nationality2|}}} ]] |}}<!--
+
| class="playerinfobox-body" | {{flag | {{{nationality}}} }} [[:Category:{{localisation | {{{nationality|}}} }}_Players | {{{nationality|}}}]] {{#if: {{{nationality2|}}} | <br>{{flag | {{{nationality2}}} }} [[:Category:{{localisation | {{{nationality2|}}} }}_Players | {{{nationality2|}}} ]] |}}<!--
  
 
STATUS
 
STATUS
Line 75: Line 75:
 
-->
 
-->
 
|-
 
|-
! Status
+
| class="playerinfobox-subheader" | Status
|{{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
+
| class="playerinfobox-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
  
 
FORMAT
 
FORMAT
Line 82: Line 82:
 
-->
 
-->
 
|- style="{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=display:none}} | display:none}}"
 
|- style="{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=display:none}} | display:none}}"
! Format
+
| class="playerinfobox-subheader" | Format
| [[{{{format|}}}]]<!--
+
| class="playerinfobox-body" | [[{{{format|}}}]]<!--
  
 
TEAM
 
TEAM
Line 89: Line 89:
 
-->
 
-->
 
|-
 
|-
! Team
+
| class="playerinfobox-subheader" | Team
| {{Team/{{{team|}}} }}<!--
+
| class="playerinfobox-body" | {{Team/{{{team|}}} }}<!--
  
 
ROLE
 
ROLE
Line 96: Line 96:
 
-->
 
-->
 
|-
 
|-
! Role
+
| class="playerinfobox-subheader" | Role
|{{#switch: {{lc: {{{role|}}} }}
+
| class="playerinfobox-body" |{{#switch: {{lc: {{{role|}}} }}
 
   | scout =  {{Icon | scout | | Scout}} [[:Category:Scouts|Scout]]
 
   | scout =  {{Icon | scout | | Scout}} [[:Category:Scouts|Scout]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier}} [[:Category:Pocket Soldiers|Pocket]]
 
   | pocket = {{Icon | pocket | | Pocket Soldier}} [[:Category:Pocket Soldiers|Pocket]]
Line 119: Line 119:
 
-->
 
-->
 
|- style="{{#if: {{{career_winnings|}}} | | display: none}}"
 
|- style="{{#if: {{{career_winnings|}}} | | display: none}}"
! Total Winnings
+
| class="playerinfobox-subheader" | Total Winnings
| ${{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}}}}}}}} {{abbr|USD|United States Dollar}} (approx.)<!--
+
| 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}}}}}}}} {{abbr|USD|United States Dollar}} (approx.)<!--
  
 
OTHER ALIASES
 
OTHER ALIASES
Line 126: Line 126:
 
-->
 
-->
 
|- style="{{#if: {{{other_alias|}}} | | display: none}}"
 
|- style="{{#if: {{{other_alias|}}} | | display: none}}"
! Other Aliases
+
| class="playerinfobox-subheader" | Other Aliases
| ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}<!--
+
| class="playerinfobox-body" | ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}<!--
  
  
Line 139: Line 139:
 
-->
 
-->
 
|- style="{{#if: {{{major_honors|}}} | | display: none}}"
 
|- style="{{#if: {{{major_honors|}}} | | display: none}}"
! colspan="2" | Major Honors
+
! class="playerinfobox-header" colspan="2" | Major Honors
 
|- style="{{#if: {{{major_honors|}}} | | display: none}}"
 
|- style="{{#if: {{{major_honors|}}} | | display: none}}"
| colspan="2" | {{{major_honors|}}}<!--
+
| class="playerinfobox-header" colspan="2" | {{{major_honors|}}}<!--
  
  
Line 154: Line 154:
 
-->
 
-->
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
! colspan="2" | Team History
+
! class="playerinfobox-header" colspan="2" | Team History
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
| colspan="2" | <div style="font-size:100%; line-height:-10px; overflow: hidden;"><div style="float:left;width:25%;text-align:left;">Year</div><div style="float:left;width:50%;text-align:center;">Team</div><div style="float:right;width:25%;text-align:right;">Winnings</div></div>
+
| class="playerinfobox-header" colspan="2" | <div style="font-size:100%; line-height:-10px; overflow: hidden;"><div style="float:left;width:25%;text-align:left;">Year</div><div style="float:left;width:50%;text-align:center;">Team</div><div style="float:right;width:25%;text-align:right;">Winnings</div></div>
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
 
|- style="{{#if: {{{team_history|}}} | | display: none}}"
| colspan="2" | {{{team_history|}}}<!--
+
| class="playerinfobox-header"  colspan="2" | {{{team_history|}}}<!--
  
  
Line 170: Line 170:
 
-->
 
-->
 
|- style="{{#if: {{{tftv|}}}{{{rgl|}}}{{{etf2l|}}}{{{ozf|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}} | | display: none}}"
 
|- style="{{#if: {{{tftv|}}}{{{rgl|}}}{{{etf2l|}}}{{{ozf|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}} | | display: none}}"
! colspan="2" | Links
+
! class="playerinfobox-header" 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="playerinfobox-header 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}}}]]}}<!--
 
--> {{#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 12:20, 10 December 2019