Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
m
m
Line 45: Line 45:
 
{{#if:{{{name|}}}|
 
{{#if:{{{name|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Name:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''Name'''
 
{{!}} class="playerinfobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
 
{{!}} class="playerinfobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}}
 
|}}<!--
 
|}}<!--
Line 54: Line 54:
 
{{#if:{{{birth_year|}}}|
 
{{#if:{{{birth_year|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Born:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''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="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|}}} }}
 
|}}<!--
 
|}}<!--
Line 63: Line 63:
 
{{#if:{{{death_year|}}}|
 
{{#if:{{{death_year|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Died:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''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="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|}}} }}
 
|}}<!--
 
|}}<!--
Line 72: Line 72:
 
{{#if:{{{nationality|}}}|
 
{{#if:{{{nationality|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Nationalit{{#if:{{{nationality2|}}}|ies|y}}:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''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="playerinfobox-body" {{!}} {{flag | {{{nationality}}} }} [[:Category:{{localisation | {{{nationality|}}} }}_Players | {{{nationality|}}}]] {{#if: {{{nationality2|}}} | <br>{{flag | {{{nationality2}}} }} [[:Category:{{localisation | {{{nationality2|}}} }}_Players | {{{nationality2|}}} ]] |}}
 
|}}<!--
 
|}}<!--
Line 80: Line 80:
 
-->
 
-->
 
|- class="playerinfobox-info"
 
|- class="playerinfobox-info"
| class="playerinfobox-subheader" | '''Status:'''
+
| class="playerinfobox-subheader" | '''Status'''
 
| class="playerinfobox-body" | {{#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|}}}) }}<!--
  
Line 88: Line 88:
 
{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
 
{{#if: {{{format|}}} | {{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=|#default=
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Format:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''Format'''
 
{{!}} class="playerinfobox-body" {{!}} [[{{{format|}}}]]
 
{{!}} class="playerinfobox-body" {{!}} [[{{{format|}}}]]
 
}}
 
}}
Line 97: Line 97:
 
-->
 
-->
 
|- class="playerinfobox-info"
 
|- class="playerinfobox-info"
| class="playerinfobox-subheader" | '''Team:'''
+
| class="playerinfobox-subheader" | '''Team'''
 
| class="playerinfobox-body" | [[File:{{{team|}}} Icon.png|x19px|link={{{team|}}}]] [[{{{team|}}}]]<!--
 
| class="playerinfobox-body" | [[File:{{{team|}}} Icon.png|x19px|link={{{team|}}}]] [[{{{team|}}}]]<!--
  
Line 104: Line 104:
 
-->
 
-->
 
|- class="playerinfobox-info"
 
|- class="playerinfobox-info"
| class="playerinfobox-subheader" | '''Role{{#if:{{{role2|}}}|s|}}:'''
+
| class="playerinfobox-subheader" | '''Role{{#if:{{{role2|}}}|s|}}'''
 
| class="playerinfobox-body" |{{#switch: {{lc: {{{role|}}} }}
 
| class="playerinfobox-body" |{{#switch: {{lc: {{{role|}}} }}
 
   | scout =  {{Icon | scout | | Scout}} [[:Category:Scouts|Scout]]
 
   | scout =  {{Icon | scout | | Scout}} [[:Category:Scouts|Scout]]
Line 144: Line 144:
 
{{#if:{{{career_winnings|}}}|
 
{{#if:{{{career_winnings|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Total Winnings:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''Total 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}}}}}}}} {{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.)
 
|}}<!--
 
|}}<!--
Line 153: Line 153:
 
{{#if:{{{other_aliases|}}}|
 
{{#if:{{{other_aliases|}}}|
 
{{!}}- class="playerinfobox-info"
 
{{!}}- class="playerinfobox-info"
{{!}} class="playerinfobox-subheader" {{!}} '''Other Aliases:'''
+
{{!}} class="playerinfobox-subheader" {{!}} '''Other Aliases'''
 
{{!}} class="playerinfobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
 
{{!}} class="playerinfobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}}
 
|}}<!--
 
|}}<!--

Revision as of 01:18, 11 December 2019