Difference between revisions of "Template:InfoboxPlayer"
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=" | + | <includeonly>{| class="comptf_infobox" cellpadding="2"<!-- |
− | + | TITLE | |
Line 10: | Line 10: | ||
--> | --> | ||
− | ! class=" | + | ! class="comptf_infobox-title" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<!-- |
IMAGE | IMAGE | ||
Line 38: | Line 38: | ||
--> | --> | ||
|- | |- | ||
− | ! class=" | + | ! class="comptf_infobox-subtitle" colspan="2" | Player Information<!--- |
NAME | NAME | ||
Line 44: | Line 44: | ||
--> | --> | ||
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
− | {{!}}- class=" | + | {{!}}- class="compt-finfobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Name''' |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}} |
|}}<!-- | |}}<!-- | ||
Line 53: | Line 53: | ||
--> | --> | ||
{{#if:{{{birth_year|}}}| | {{#if:{{{birth_year|}}}| | ||
− | {{!}}- class=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Born''' |
− | {{!}} class=" | + | {{!}} 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=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Died''' |
− | {{!}} class=" | + | {{!}} 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=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}''' |
− | {{!}} class=" | + | {{!}} 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=" | + | |- class="comptf_infobox-info" |
− | | class=" | + | | class="comptf_infobox-header" | '''Status''' |
− | | class=" | + | | 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=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Format''' |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-body" {{!}} [[{{{format|}}}]] |
}} | }} | ||
|}}<!-- | |}}<!-- | ||
Line 96: | Line 96: | ||
--> | --> | ||
− | |- class=" | + | |- class="comptf_infobox-info" |
− | | class=" | + | | class="comptf_infobox-header" | '''Team''' |
− | | class=" | + | | class="comptf_infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!-- |
ROLE | ROLE | ||
--> | --> | ||
− | |- class=" | + | |- class="comptf_infobox-info" |
− | | class=" | + | | class="comptf_infobox-header" | '''Role{{#if:{{{role2|}}}|s|}}''' |
− | | class=" | + | | 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=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Career Winnings''' |
− | {{!}} class=" | + | {{!}} 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=" | + | {{!}}- class="comptf_infobox-info" |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-header" {{!}} '''Other Aliases''' |
− | {{!}} class=" | + | {{!}} class="comptf_infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}} |
|}}<!-- | |}}<!-- | ||
Line 168: | Line 168: | ||
{{#if:{{{major_honors|}}}| | {{#if:{{{major_honors|}}}| | ||
{{!}}- | {{!}}- | ||
− | ! class=" | + | ! 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=" | + | ! 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=" | + | ! class="comptf_infobox-subtitle" colspan="2" {{!}} Links |
{{!}}- | {{!}}- | ||
− | {{!}} class=" | + | {{!}} 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|}}}]]}}<!-- |