Template:InfoboxPlayer: Difference between revisions

From comp.tf
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{alias|{{PAGENAME}}}}}}}}}
<includeonly>{{#ifeq:{{NAMESPACENUMBER}}|0|{{DISPLAYTITLE:{{{alias|{{PAGENAME}}}}}}}}}
{| class="comptf-infobox" cellpadding="2"<!--
{| class="comptf-infobox" cellpadding="2"
<!--




Line 10: Line 11:




-->
-->! class="comptf-infobox-title" style="padding-left:40px" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<div class="comptf-controls" style="vertical-align:top; float:right; margin:2px; width:40px">{{VDE|Template:Infobox Player||{{FULLPAGENAME}}}}</div>
! class="comptf-infobox-title" style="padding-left:40px" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<div class="comptf-controls" style="vertical-align:top; float:right; margin:2px; width:40px">{{VDE|Template:Infobox Player||{{FULLPAGENAME}}}}</div><!--
|-
<!--


IMAGE
IMAGE


-->
-->{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} style="padding:0" colspan="2" {{!}} [[File: {{{image}}} | 294px | center ]]
{{!}}-
{{!}}-
{{!}} style="padding:0" colspan="2" {{!}} [[File: {{{image}}} | 294px | center ]]
|}}
|}}<!--
<!--


CAPTION
CAPTION


-->
-->{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} colspan="2" style="font-size:11px; line-height:1.3; text-align:center" {{!}} {{{caption}}}
{{!}}-
{{!}}-
{{!}} colspan="2" style="font-size:11px; line-height:1.3; text-align:center" {{!}} {{{caption}}}
|}}
|}}<!--
<!--




Line 37: Line 39:




-->
-->! class="comptf-infobox-subtitle" colspan="2" | Player Information
|-
|- class="comptf-infobox-info"
! class="comptf-infobox-subtitle" colspan="2" | Player Information<!---
<!---


NAME
NAME


-->
-->{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Name'''
{{!}} class="comptf-infobox-header" {{!}} '''Name'''
{{!}} class="comptf-infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
{{!}} class="comptf-infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
{{!}}- class="comptf-infobox-info"
|}}<!--
|}}<!--


BORN
BORN


-->
-->{{#if:{{{birth_year|}}}|
{{#if:{{{birth_year|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Born'''
{{!}} class="comptf-infobox-header" {{!}} '''Born'''
{{!}} 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|}}} }}
{{!}} 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|}}} }}
|}}<!--
{{!}}- class="comptf-infobox-info"
|}}
<!--


DIED
DIED


-->
-->{{#if:{{{death_year|}}}|
{{#if:{{{death_year|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Died'''
{{!}} class="comptf-infobox-header" {{!}} '''Died'''
{{!}} 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|}}} }}
{{!}} 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|}}} }}
|}}<!--
{{!}}- class="comptf-infobox-info"
|}}
<!--


NATIONALITY
NATIONALITY


-->
-->{{#if:{{{nationality|}}}|
{{#if:{{{nationality|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}'''
{{!}} class="comptf-infobox-header" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}'''
{{!}} class="comptf-infobox-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|}}} ]] |}}
|}}<!--
{{!}}- class="comptf-infobox-info"
|}}
<!--


STATUS
STATUS


-->
-->| class="comptf-infobox-header" | '''Status'''
| class="comptf-infobox-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}
|- class="comptf-infobox-info"
|- class="comptf-infobox-info"
| class="comptf-infobox-header" | '''Status'''
<!--
| class="comptf-infobox-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--


FORMAT
FORMAT


-->
-->{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Format'''
{{!}} class="comptf-infobox-header" {{!}} '''Format'''
{{!}} class="comptf-infobox-body" {{!}} [[{{{format|}}}]]
{{!}} class="comptf-infobox-body" {{!}} [[{{{format|}}}]]
{{!}}- class="comptf-infobox-info"
}}
}}
|}}<!--
|}}
<!--


TEAM
TEAM


-->
-->| class="comptf-infobox-header" | '''Team'''
| class="comptf-infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]
|- class="comptf-infobox-info"
|- class="comptf-infobox-info"
| class="comptf-infobox-header" | '''Team'''
<!--
| class="comptf-infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!--


CLASS
CLASS


-->
-->| class="comptf-infobox-header" | '''Class'''
|- class="comptf-infobox-info"
| class="comptf-infobox-header" | '''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 124: Line 123:
   | 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:{{{other_main1|}}}{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
<!--


OTHER MAINS
OTHER MAINS


-->
-->{{#if:{{{other_main1|}}}|
{{#if:{{{other_main1|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} 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 187: Line 186:
   | spy = [[Spy]]
   | spy = [[Spy]]
}}|}}
}}|}}
|}}<!--
{{!}}- {{#if:{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}}
|}}
<!--


CAREER WINNINGS
CAREER WINNINGS


-->
-->{{#if:{{{career_winnings|}}}|
{{#if:{{{career_winnings|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}'''
{{!}} class="comptf-infobox-header" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}'''
{{!}} 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}}}}}}}}
{{!}} 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}}}}}}}}
|}}<!--
{{!}}- {{#if:{{{other_aliases|}}}|class="comptf-infobox-info"}}
|}}
<!--


OTHER ALIASES
OTHER ALIASES


-->
-->{{#if:{{{other_aliases|}}}|
{{#if:{{{other_aliases|}}}|
{{!}}- class="comptf-infobox-info"
{{!}} class="comptf-infobox-header" {{!}} '''Other Aliases'''
{{!}} class="comptf-infobox-header" {{!}} '''Other Aliases'''
{{!}} class="comptf-infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
{{!}} class="comptf-infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
|}}<!--
{{!}}-
|}}
<!--




Line 215: Line 216:




-->
-->{{#if:{{{achievements|}}}|
{{#if:{{{achievements|}}}|
{{!}}-
! class="comptf-infobox-subtitle" colspan="2" style="position:relative" {{!}} Achievements<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[#Tournament_history|[see all]]]</span><!--
! class="comptf-infobox-subtitle" colspan="2" style="position:relative" {{!}} Achievements<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[#Tournament_history|[see all]]]</span><!--
{{!}}- style="background-color:#fff"
{{!}}- style="background-color:#fff"
Line 223: Line 222:
{{!}}-
{{!}}-
{{!}} colspan="2" {{!}} {{{achievements|}}}
{{!}} colspan="2" {{!}} {{{achievements|}}}
|}}<!--
{{!}}-
|}}
<!--




Line 234: Line 235:




-->
-->{{#if:{{{team_history|}}}|
{{#if:{{{team_history|}}}|
{{!}}-
! class="comptf-infobox-subtitle" colspan="2" <!--style="position:relative" -->{{!}} Team History<!--<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[#Team history|[see all]]]</span>-->
! class="comptf-infobox-subtitle" colspan="2" <!--style="position:relative" -->{{!}} Team History<!--<span style="font-size:10px;position:absolute;right:3px;top:3px;line-height:1;font-weight:300">[[#Team history|[see all]]]</span>-->
{{!}}-
{{!}}-
{{!}} colspan="2" {{!}} {{{team_history|}}}
{{!}} colspan="2" {{!}} {{{team_history|}}}
|}}<!--
{{!}}-
|}}
<!--




Line 250: Line 251:




-->
-->{{#if: {{{tftv|}}}{{{logs|}}}{{{rgl|}}}{{{esea|}}}{{{etf2l|}}}{{{ozf|}}}{{{ozfold|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}{{{misc_links|}}}|
{{#if: {{{tftv|}}}{{{logs|}}}{{{rgl|}}}{{{esea|}}}{{{etf2l|}}}{{{ozf|}}}{{{ozfold|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}{{{misc_links|}}}|
{{!}}-
! class="comptf-infobox-subtitle" colspan="2" {{!}} Links
! class="comptf-infobox-subtitle" colspan="2" {{!}} Links
{{!}}-
{{!}}-

Revision as of 12:50, 15 December 2019