Template:InfoboxPlayer: Difference between revisions

From comp.tf
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 77: Line 77:
! Status
! Status
|{{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
|{{#if: {{{active_endyear|}}} | [[:Category:Inactive_Players | Inactive]] ({{{active_startyear|}}} - {{{active_endyear|}}}) | [[:Category:Active_Players | Active]] (since {{{active_startyear|}}}) }}<!--
FORMAT
-->
|- style="{{#switch: {{lc: {{{format|}}} }} |6 |6s |6v6 |sixes=display:none}}"
! Format
| [[{{{format|}}}]]<!--


TEAM
TEAM
Line 178: Line 185:
--> {{#if:{{{twitter|}}}|[[Image:File:Twitter logo.png|32px|Twitter|link=http://twitter.com/{{{twitter}}}]]}}<!--
--> {{#if:{{{twitter|}}}|[[Image:File:Twitter logo.png|32px|Twitter|link=http://twitter.com/{{{twitter}}}]]}}<!--
-->{{#if:{{{misc_links|}}}|{{{misc_links|}}}|}}
-->{{#if:{{{misc_links|}}}|{{{misc_links|}}}|}}
|}
|}<!--
 
 
 
 
CATEGORIES
 
 
 
 
-->{{#ifeq:{{NAMESPACE}}||
{{#if:{{{image|}}}||[[Category:Players with no infobox picture]]}}<!--
-->{{#if:{{{caption|}}}||[[Category:Players with no infobox picture caption]]}}<!--
-->{{#if:{{{name|}}}||[[Category:Players with unknown name]]}}<!--
-->{{#if:{{{birth_year|}}}||[[Category:People with an unknown birth date]]}}<!--
-->{{#if:{{{death_year|}}}||[[Category:Deceased players]]}}<!--
-->{{#if:{{{country|}}}|{{#ifeq:{{localisation|{{{country}}}}}|error
|[[Category:Unrecognised Country{{!}}{{{country}}}]]
|[[Category:{{localisation|{{{country}}}}} Players]]}}|}}
-->{{#if:{{{country2|}}}|{{#ifeq:{{localisation|{{{country2}}}}}|error
|[[Category:Unrecognised Country{{!}}{{{country2}}}]]
|[[Category:{{localisation|{{{country2}}}}} Players]]}}}}<!--
-->{{#if:{{{active_endyear|}}}|[[Category:Inactive Players]]|[[Category:Active Players]]}}<!--
-->{{#if:{{{role|}}}|{{#switch:{{lc: {{{role|}}} }}
  | scout = [[Category:Scouts]]
  | pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]]
  | roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]]
  | soldier = [[Category:Soldiers]]
  | pyro  = [[Category:Pyros]]
  | demo
  | demoman = [[Category:Demomen]]
  | heavy
  | heavyweapons = [[Category:Heavies]]
  | engi
  | engie
  | engineer = [[Category:Engineers]]
  | medic = [[Category:Medics]]
  | sniper = [[Category:Snipers]]
  | spy = [[Category:Spies]]
}}
<!--
-->{{#if:{{{role2|}}}|{{#switch:{{lc: {{{role2|}}} }}
  | scout = [[Category:Scouts]]
  | pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]]
  | roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]]
  | soldier = [[Category:Soldiers]]
  | pyro  = [[Category:Pyros]]
  | demo
  | demoman = [[Category:Demomen]]
  | heavy
  | heavyweapons = [[Category:Heavies]]
  | engi
  | engie
  | engineer = [[Category:Engineers]]
  | medic = [[Category:Medics]]
  | sniper = [[Category:Snipers]]
  | spy = [[Category:Spies]]
}}<!--
-->{{#if:{{{career_winnings|}}}||[[Category:Players with unknown career winnings]]}}<!--
-->{{#if:{{{team_history|}}}||[[Category:Players with no team histories]]}}<!--
-->{{#if:{{{tftv|}}}{{{rgl|}}}{{{etf2l|}}}{{{ozf|}}}{{{site|}}}{{{steam|}}}{{{twitch|}}}{{{youtube|}}}{{{twitter|}}}||[[Category:Players with no links]]}}<!--
-->}}[[Category:Players]]<!--
 
 
 
 
SMW
 
 
 
 
-->{{#set:
|has id={{{alias|{{PAGENAME}}}}}
|has name={{#if:{{{romanized_name|}}}|{{{romanized_name|}}}|{{{name|}}}}}
|has image={{#if:{{{image|}}}|File:{{{image}}}}}
<!--|has image caption={{{caption|}}}-->
|has nationality={{{nationality|}}}
 
|has team={{{teamlink|{{{team|}}}}}}
 
|has site={{{site|}}}
|has stream={{{stream|}}}
 
|has twitch stream={{#if:{{{twitch|}}}|http://www.twitch.tv/{{{twitch}}} }}
|has youtube channel={{#if:{{{youtube|}}}|http://www.youtube.com/{{{youtube}}}}}
|has twitter={{#if:{{{twitter|}}}|http://twitter.com/{{{twitter}}}}}
 
|has non-romanized name={{#if:{{{romanized_name|}}}|{{{name|}}}|}}
|has dual-citizenship={{#if:{{{nationality2|}}}|{{#if:{{{nationality|}}}|true|false}}|}}
|has second nationality={{{nationality2|}}}
 
|has role={{{role|}}}
|has status={{{status|}}}
|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
|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
|australia|new zealand=Oceania
|singapore|japan|south korea|china|india|macau|hong kong|malaysia|philippines|bangladesh|pakistan|kazakhstan|iran|mongolia|vietnam|indonesia=Asia}}
}}<!--
 
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 11:36, 10 December 2019

{{{alias}}}
[[File: {{{image}}} | 300px | center ]]
{{{caption}}}
Player Information
Name {{{name}}}
Romanized Name
Born
Died
Nationality {{Flag/{{{nationality}}}}}
Status Active (since )
Format [[]]
Team Template:Team/
Role
Total Winnings $nd ,ope,rat,or.,</s,tro,ng> USD (approx.)
Other Aliases '
Major Honors
Team History
Year
Team
Winnings
Links

{{#ifeq:Template|| -->{{#if:|</includeonly>

(view - edit) Documentation

Template:InfoboxPlayer/doc