Template:InfoboxPlayer: Difference between revisions

From comp.tf
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 46: Line 46:
{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''Name'''
{{!}} class="comptf-infobox-header" {{!}} '''Name'''
{{!}} style="width:61.8%" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
{{!}} class="comptf-infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
|}}<!--
|}}<!--


Line 55: Line 55:
{{#if:{{{birth_year|}}}|
{{#if:{{{birth_year|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''Born'''
{{!}} class="comptf-infobox-header" {{!}} '''Born'''
{{!}} style="width:61.8%" {{!}} {{#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 64: Line 64:
{{#if:{{{death_year|}}}|
{{#if:{{{death_year|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''Died'''
{{!}} class="comptf-infobox-header" {{!}} '''Died'''
{{!}} style="width:61.8%" {{!}} {{#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 73: Line 73:
{{#if:{{{nationality|}}}|
{{#if:{{{nationality|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:61.8%" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}'''
{{!}} class="comptf-infobox-body" {{!}} '''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|}}} ]] |}}
|}}<!--
|}}<!--
Line 81: Line 81:
-->
-->
|- class="comptf-infobox-info"
|- class="comptf-infobox-info"
| style="width:61.8%" | '''Status'''
| class="comptf-infobox-body" | '''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-body" | {{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--


Line 89: Line 89:
{{#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-info"
{{!}} style="width:38.2%" {{!}} '''Format'''
{{!}} class="comptf-infobox-header" {{!}} '''Format'''
{{!}} style="width:61.8%" {{!}} [[{{{format|}}}]]
{{!}} class="comptf-infobox-body" {{!}} [[{{{format|}}}]]
}}
}}
|}}<!--
|}}<!--
Line 98: Line 98:
-->
-->
|- class="comptf-infobox-info"
|- class="comptf-infobox-info"
| style="width:38.2%" | '''Team'''
| class="comptf-infobox-header" | '''Team'''
| style="width:61.8%" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!--
| class="comptf-infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]]<!--


CLASS
CLASS
Line 105: Line 105:
-->
-->
|- class="comptf-infobox-info"
|- class="comptf-infobox-info"
| style="width:38.2%" | '''Class'''
| class="comptf-infobox-header" | '''Class'''
| style="width:61.8%" |{{#switch: {{lc: {{{class|}}} }}
| class="comptf-infobox-body" |{{#switch: {{lc: {{{class|}}} }}
   | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
   | scout =  {{Icon | scout | | Scout | x18px}} [[Scout]]
   | pocket  
   | pocket  
Line 131: Line 131:
{{#if:{{{other_main1|}}}|
{{#if:{{{other_main1|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''Other Mains'''
{{!}} class="comptf-infobox-header" {{!}} '''Other Mains'''
{{!}} style="width:61.8%" {{!}}{{#switch: {{lc: {{{other_main1|}}} }}
{{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }}
   | scout =  [[Scout]]
   | scout =  [[Scout]]
   | pocket
   | pocket
Line 194: Line 194:
{{#if:{{{career_winnings|}}}|
{{#if:{{{career_winnings|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}'''
{{!}} class="comptf-infobox-header" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}'''
{{!}} style="width:61.8%" {{!}} ${{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 203: Line 203:
{{#if:{{{other_aliases|}}}|
{{#if:{{{other_aliases|}}}|
{{!}}- class="comptf-infobox-info"
{{!}}- class="comptf-infobox-info"
{{!}} style="width:38.2%" {{!}} '''Other Aliases'''
{{!}} class="comptf-infobox-header" {{!}} '''Other Aliases'''
{{!}} style="width:61.8%" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
{{!}} class="comptf-infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
|}}<!--
|}}<!--



Revision as of 14:34, 13 December 2019