Difference between revisions of "Template:InfoboxPlayer"

From comp.tf
Jump to navigation Jump to search
Line 82: Line 82:
  
 
-->| class="comptf-infobox-header" | '''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-body" | {{#switch:{{lc:{{{status|}}}}}|active=[[:Category:Active Players|Active]]|inactive|retired=[[:Category:Inactive Players|Inactive]]|#default={{{status|}}}}}{{#if:{{#len:{{{years_active|}}}}}>11|<br>}}(''{{{years_active|}}}'')
 
|- class="comptf-infobox-info"
 
|- class="comptf-infobox-info"
 
<!--
 
<!--
Line 347: Line 347:
 
|[[Category:Unrecognised Country{{!}}{{{nationality}}}]]
 
|[[Category:Unrecognised Country{{!}}{{{nationality}}}]]
 
|[[Category:{{localisation|{{{nationality}}}}} Players]]|}}}}<!--
 
|[[Category:{{localisation|{{{nationality}}}}} Players]]|}}}}<!--
 +
 
-->{{#if:{{{nationality2|}}}|{{#ifeq:{{localisation|{{{nationality2}}}}}|error
 
-->{{#if:{{{nationality2|}}}|{{#ifeq:{{localisation|{{{nationality2}}}}}|error
 
|[[Category:Unrecognised Country{{!}}{{{nationality2}}}]]
 
|[[Category:Unrecognised Country{{!}}{{{nationality2}}}]]
 
|[[Category:{{localisation|{{{nationality2}}}}} Players]]|}}}}<!--
 
|[[Category:{{localisation|{{{nationality2}}}}} Players]]|}}}}<!--
 +
 +
-->{{#switch:{{lc:{{{nationality|}}}}}|abkhazia|aland|albania|alderney|andorra|austria|denmark|georgia|germany|gibraltar|greece|greenland|guernsey|jersey|macedonia|malta|moldova|monaco|montenegro|poland|portugal|sark|scotland|serbia|slovakia|slovenia|south ossetia|spain|sweden|switzerland|vatican city|belarus|belgium|bosnia and herzegovina|bulgaria|england|estonia|europe|herm|hungary|kosovo|netherlands|northern cyprus|northern ireland|norway|turkey|wales|croatia|cyrenaica|czech republic|faroe islands|finland|france|iceland|ireland|isle of man|italy|latvia|liechtenstein|lithuania|luxembourg|romania|ukraine|united kingdom|san marino|russia|israel=[[Category:European Players]]
 +
|antigua and barbuda|dominica|dominican republic|grenada|guam|guatemala|jamaica|mexico|montserrat|panama|puerto rico|saint kitts and nevis|saint lucia|saint martin|saint vincent and the grenadines|sao tome and principe|sint maarten|british virgin islands|united states virgin islands|cape verde|canada|cayman islands|costa rica|cuba|united states|north america=[[Category:North American Players]]
 +
|argentina||bolivia|brazil|chile|colombia|ecuador|guyana|paraguay|peru|suriname|urguguay|venezuela=[[Category:South American Players]]
 +
|australia|new zealand=[[Category:Oceania Players]]
 +
|singapore|japan|south korea|china|india|macau|hong kong|malaysia|philippines|bangladesh|pakistan|kazakhstan|iran|mongolia|vietnam|indonesia=[[Category:Asian Players]]
 +
|#default=[[Category:Unknown Continent]]}}
 
-->{{#if:{{{active_endyear|}}}|[[Category:Inactive Players]]|[[Category:Active Players]]}}<!--
 
-->{{#if:{{{active_endyear|}}}|[[Category:Inactive Players]]|[[Category:Active Players]]}}<!--
 +
 
-->{{#if:{{{format|}}}|{{#switch:{{lc:{{{format|}}}}}|6|6s|6v6|sixes=[[Category:6v6 Players]]|#default=[[Category:{{{format|}}} Players]]}}|[[Category:6v6 Players]]}}<!--
 
-->{{#if:{{{format|}}}|{{#switch:{{lc:{{{format|}}}}}|6|6s|6v6|sixes=[[Category:6v6 Players]]|#default=[[Category:{{{format|}}} Players]]}}|[[Category:6v6 Players]]}}<!--
 
-->{{#if:{{{class|}}}|{{#switch:{{lc: {{{class|}}} }}
 
-->{{#if:{{{class|}}}|{{#switch:{{lc: {{{class|}}} }}
 
   | scout = [[Category:Scouts]]
 
   | scout = [[Category:Scouts]]
 +
  | pocket soldier
 
   | pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]]
 
   | pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]]
 +
  | roaming soldier
 
   | roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]]
 
   | roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]]
 
   | soldier = [[Category:Soldiers]]
 
   | soldier = [[Category:Soldiers]]
Line 386: Line 397:
 
|has )id=){{{alias|{{PAGENAME}}}}}
 
|has )id=){{{alias|{{PAGENAME}}}}}
 
|has name={{#if:{{{romanized_name|}}}|{{{romanized_name|}}}|{{{name|}}}}}
 
|has name={{#if:{{{romanized_name|}}}|{{{romanized_name|}}}|{{{name|}}}}}
|has image={{#if:{{{image|}}}|File:{{{image}}}}}
+
<!--|has image={{#if:{{{image|}}}|File:{{{image}}}}}-->
 
<!--|has image caption={{{caption|}}}-->
 
<!--|has image caption={{{caption|}}}-->
 
|has nationality={{{nationality|}}}
 
|has nationality={{{nationality|}}}
Line 393: Line 404:
 
|has team={{{teamlink|{{{team|}}}}}}
 
|has team={{{teamlink|{{{team|}}}}}}
  
|has site={{{site|}}}
+
<!--|has site={{{site|}}}-->
|has stream={{{stream|}}}
+
<!--|has stream={{{stream|}}}-->
  
|has twitch stream={{#if:{{{twitch|}}}|http://www.twitch.tv/{{{twitch}}} }}
+
<!--|has twitch stream={{#if:{{{twitch|}}}|http://www.twitch.tv/{{{twitch}}} }}-->
|has youtube channel={{#if:{{{youtube|}}}|http://www.youtube.com/{{{youtube}}}}}
+
<!--|has youtube channel={{#if:{{{youtube|}}}|http://www.youtube.com/{{{youtube}}}}}-->
|has twitter={{#if:{{{twitter|}}}|http://twitter.com/{{{twitter}}}}}
+
<!--|has twitter={{#if:{{{twitter|}}}|http://twitter.com/{{{twitter}}}}}-->
  
|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}
+
<!--|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}-->
|has dual-citizenship={{#if:{{{nationality2|}}}|{{#if:{{{nationality|}}}|true|false}}|}}
+
<!--|has dual-citizenship={{#if:{{{nationality2|}}}|{{#if:{{{nationality|}}}|true|false}}|}}-->
|has second nationality={{{nationality2|}}}
+
<!--|has second nationality={{{nationality2|}}}-->
  
 
|has class={{{class|}}}
 
|has class={{{class|}}}
|has other_main1={{{other_main1|}}}
+
<!--|has other_main1={{{other_main1|}}}-->
|has other_main2={{{other_main2|}}}
+
<!--|has other_main2={{{other_main2|}}}-->
|has other_main3={{{other_main3|}}}
+
<!--|has other_main3={{{other_main3|}}}-->
 
|has status={{{status|}}}
 
|has status={{{status|}}}
|has format={{{format|}}}
+
<!--|has format={{{format|}}}-->
 
|has continent={{#switch:{{lc:{{{nationality|}}}}}|abkhazia|aland|albania|alderney|andorra|austria|denmark|georgia|germany|gibraltar|greece|greenland|guernsey|jersey|macedonia|malta|moldova|monaco|montenegro|poland|portugal|sark|scotland|serbia|slovakia|slovenia|south ossetia|spain|sweden|switzerland|vatican city|belarus|belgium|bosnia and herzegovina|bulgaria|england|estonia|europe|herm|hungary|kosovo|netherlands|northern cyprus|northern ireland|norway|turkey|wales|croatia|cyrenaica|czech republic|faroe islands|finland|france|iceland|ireland|isle of man|italy|latvia|liechtenstein|lithuania|luxembourg|romania|ukraine|united kingdom|san marino|russia|israel=Europe
 
|has continent={{#switch:{{lc:{{{nationality|}}}}}|abkhazia|aland|albania|alderney|andorra|austria|denmark|georgia|germany|gibraltar|greece|greenland|guernsey|jersey|macedonia|malta|moldova|monaco|montenegro|poland|portugal|sark|scotland|serbia|slovakia|slovenia|south ossetia|spain|sweden|switzerland|vatican city|belarus|belgium|bosnia and herzegovina|bulgaria|england|estonia|europe|herm|hungary|kosovo|netherlands|northern cyprus|northern ireland|norway|turkey|wales|croatia|cyrenaica|czech republic|faroe islands|finland|france|iceland|ireland|isle of man|italy|latvia|liechtenstein|lithuania|luxembourg|romania|ukraine|united kingdom|san marino|russia|israel=Europe
 
|antigua and barbuda|dominica|dominican republic|grenada|guam|guatemala|jamaica|mexico|montserrat|panama|puerto rico|saint kitts and nevis|saint lucia|saint martin|saint vincent and the grenadines|sao tome and principe|sint maarten|british virgin islands|united states virgin islands|cape verde|canada|cayman islands|costa rica|cuba|united states|north america=North America
 
|antigua and barbuda|dominica|dominican republic|grenada|guam|guatemala|jamaica|mexico|montserrat|panama|puerto rico|saint kitts and nevis|saint lucia|saint martin|saint vincent and the grenadines|sao tome and principe|sint maarten|british virgin islands|united states virgin islands|cape verde|canada|cayman islands|costa rica|cuba|united states|north america=North America
 
|argentina||bolivia|brazil|chile|colombia|ecuador|guyana|paraguay|peru|suriname|urguguay|venezuela=South America
 
|argentina||bolivia|brazil|chile|colombia|ecuador|guyana|paraguay|peru|suriname|urguguay|venezuela=South America
 
|australia|new zealand=Oceania
 
|australia|new zealand=Oceania
|singapore|japan|south korea|china|india|macau|hong kong|malaysia|philippines|bangladesh|pakistan|kazakhstan|iran|mongolia|vietnam|indonesia=Asia}}
+
|singapore|japan|south korea|china|india|macau|hong kong|malaysia|philippines|bangladesh|pakistan|kazakhstan|iran|mongolia|vietnam|indonesia=Asia
}}<!--
+
|#default=Unknown Continent}}
 
+
}}</includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
Variable
 
 
 
 
 
{{#vardefine:id|{{{id|{{PAGENAME}}}}}}}
 
 
 
 
 
{{#ifeq:{{NAMESPACE}}||{{#vardefine:birthday|{{#show: {{PAGENAME}}|?has birth day  }}}}
 
{{#if:{{#var:birthday|}}|
 
{{#set_recurring_event: Birthday
 
|property=Has yearly birthday
 
|start={{#var:birthday}}
 
|end={{{death_date|}}}
 
|unit=month
 
|period=12
 
|has original birthday={{#var:birthday|}}
 
|has player={{{id|{{PAGENAME}}}}}
 
|has flag={{lc:{{{nationality|}}}}}
 
}} }} }}
 
}}
 
 
 
--></includeonly><noinclude>[[Category:Infoboxes]] {{documentation}}</noinclude>
 

Revision as of 15:59, 12 April 2020