Editing Template:InfoboxPlayer
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.
Latest revision | Your text | ||
Line 11: | Line 11: | ||
− | -->! class="comptf-infobox-title" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}} | + | -->! class="comptf-infobox-title" style="padding-left:40px" colspan=2 | {{#if: {{{nationality|}}} | {{#if: {{{nationality2|}}} | | {{flag | {{{nationality|}}} }} }} |}} {{{alias}}}<div class="comptf-controls" style="vertical-align:top; float:right; margin:2px; width:40px">{{VDE|Template:Infobox Player||{{FULLPAGENAME}}}}</div> |
|- | |- | ||
<!-- | <!-- | ||
Line 25: | Line 25: | ||
CAPTION | CAPTION | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{image|}}}| |
{{!}} colspan="2" style="font-size:11px; line-height:1.3; text-align:center" {{!}} {{{caption}}} | {{!}} colspan="2" style="font-size:11px; line-height:1.3; text-align:center" {{!}} {{{caption}}} | ||
{{!}}- | {{!}}- | ||
Line 47: | Line 47: | ||
-->{{#if:{{{name|}}}| | -->{{#if:{{{name|}}}| | ||
{{!}} class="comptf-infobox-header" {{!}} '''Name''' | {{!}} class="comptf-infobox-header" {{!}} '''Name''' | ||
− | {{!}} class="comptf-infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}} | + | {{!}} class="comptf-infobox-body" {{!}} {{{name}}}{{#if:{{{romanized_name|}}}<br>{{{romanized_name|}}}|}} |
{{!}}- class="comptf-infobox-info" | {{!}}- class="comptf-infobox-info" | ||
− | |}} | + | |}}<!-- |
− | <!-- | ||
BORN | BORN | ||
Line 82: | Line 81: | ||
-->| class="comptf-infobox-header" | '''Status''' | -->| class="comptf-infobox-header" | '''Status''' | ||
− | | class="comptf-infobox-body" | + | | 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-info" | |- class="comptf-infobox-info" | ||
<!-- | <!-- | ||
Line 102: | Line 97: | ||
TEAM | TEAM | ||
− | --> | + | -->| class="comptf-infobox-header" | '''Team''' |
− | + | | class="comptf-infobox-body" | [[File:{{{team|}}} Icon.png|x18px|link={{{team|}}}]] [[{{{team|}}}]] | |
− | + | |- class="comptf-infobox-info" | |
− | |||
− | |||
<!-- | <!-- | ||
CLASS | CLASS | ||
− | -->| class="comptf-infobox-header" | ''' | + | -->| class="comptf-infobox-header" | '''Class''' |
| class="comptf-infobox-body" |{{#switch: {{lc: {{{class|}}} }} | | class="comptf-infobox-body" |{{#switch: {{lc: {{{class|}}} }} | ||
| scout = {{Icon | scout | | Scout | x18px}} [[Scout]] | | scout = {{Icon | scout | | Scout | x18px}} [[Scout]] | ||
| pocket | | pocket | ||
− | | pocket soldier = {{Icon | pocket | | Pocket Soldier | x18px}} [[Pocket | + | | pocket soldier = {{Icon | pocket | | Pocket Soldier | x18px}} [[Pocket Solider]] |
| roamer | | roamer | ||
| roaming soldier = {{Icon | roamer | | Roaming Soldier | x18px}} [[Roaming Soldier]] | | roaming soldier = {{Icon | roamer | | Roaming Soldier | x18px}} [[Roaming Soldier]] | ||
+ | | soldier ={{Icon | soldier | | Soldier | x18px}} [[Soldier]] | ||
| pyro = {{Icon | pyro | | Pyro | x18px}} [[Pyro]] | | pyro = {{Icon | pyro | | Pyro | x18px}} [[Pyro]] | ||
| demo | | demo | ||
Line 129: | Line 123: | ||
| sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]] | | sniper = {{Icon | sniper | | Sniper | x18px}} [[Sniper]] | ||
| spy = {{Icon | spy | | Spy | x18px}} [[Spy]] | | spy = {{Icon | spy | | Spy | x18px}} [[Spy]] | ||
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- {{#if:{{{other_main1|}}}{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}} | |- {{#if:{{{other_main1|}}}{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}} | ||
<!-- | <!-- | ||
Line 186: | Line 129: | ||
OTHER MAINS | OTHER MAINS | ||
− | --> | + | -->{{#if:{{{other_main1|}}}| |
{{!}} class="comptf-infobox-header" {{!}} '''Other Mains''' | {{!}} class="comptf-infobox-header" {{!}} '''Other Mains''' | ||
{{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }} | {{!}} class="comptf-infobox-body" {{!}}{{#switch: {{lc: {{{other_main1|}}} }} | ||
Line 194: | Line 137: | ||
| roamer | | roamer | ||
| roaming soldier = [[Roamer]] | | roaming soldier = [[Roamer]] | ||
+ | | soldier = [[Soldier]] | ||
| pyro = [[Pyro]] | | pyro = [[Pyro]] | ||
| demo | | demo | ||
Line 211: | Line 155: | ||
| roamer | | roamer | ||
| roaming soldier = [[Roamer]] | | roaming soldier = [[Roamer]] | ||
+ | | soldier = [[Soldier]] | ||
| pyro = [[Pyro]] | | pyro = [[Pyro]] | ||
| demo | | demo | ||
Line 228: | Line 173: | ||
| roamer | | roamer | ||
| roaming soldier = [[Roamer]] | | roaming soldier = [[Roamer]] | ||
+ | | soldier = [[Soldier]] | ||
| pyro = [[Pyro]] | | pyro = [[Pyro]] | ||
| demo | | demo | ||
Line 241: | Line 187: | ||
}}|}} | }}|}} | ||
{{!}}- {{#if:{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}} | {{!}}- {{#if:{{{career_winnings|}}}{{{other_aliases|}}}|class="comptf-infobox-info"}} | ||
− | + | |}} | |
<!-- | <!-- | ||
Line 249: | Line 195: | ||
{{!}} class="comptf-infobox-header" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}''' | {{!}} class="comptf-infobox-header" {{!}} '''{{abbr|Career Winnings|Approx. total career winnings (USD)}}''' | ||
{{!}} 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}}}}}}}} | {{!}} 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}}}}}}}} | ||
− | {{!}}- {{#if:{{{ | + | {{!}}- {{#if:{{{other_aliases|}}}|class="comptf-infobox-info"}} |
|}} | |}} | ||
<!-- | <!-- | ||
Line 255: | Line 201: | ||
OTHER ALIASES | OTHER ALIASES | ||
− | -->{{#if:{{{ | + | -->{{#if:{{{other_aliases|}}}| |
{{!}} class="comptf-infobox-header" {{!}} '''Other Aliases''' | {{!}} class="comptf-infobox-header" {{!}} '''Other Aliases''' | ||
{{!}} class="comptf-infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}} | {{!}} class="comptf-infobox-body" {{!}} ''{{{other_alias|}}}''{{#if: {{{other_alias2|}}} |, ''{{{other_alias2|}}}'' |}} | ||
Line 309: | Line 255: | ||
{{!}}- | {{!}}- | ||
{{!}} class="comptf-infobox-icons" colspan="2" style="text-align:center; height:36px" {{!}}<!-- | {{!}} class="comptf-infobox-icons" colspan="2" style="text-align:center; height:36px" {{!}}<!-- | ||
− | --> {{#if:{{{ | + | -->{{#if:{{{tftv|}}}|[[Image:TeamfortressTV icon2.png|x24px|teamfortress.tv User Page|link=http://www.teamfortress.tv/user/{{{tftv}}}]]}}<!-- |
− | --> {{#if:{{{ | + | --> {{#if:{{{logs|}}}|[[Image:Logs.tf Icon.png|x24px|Logs.tf Page|link=http://logs.tf/profile/{{{logs|}}}]]}}<!-- |
--> {{#if:{{{rgl|}}}|[[Image:RGL Icon.png|x24px|RGL Player Page|link=https://rgl.gg/Public/PlayerProfile.aspx?p={{{rgl|}}}]]}}<!-- | --> {{#if:{{{rgl|}}}|[[Image:RGL Icon.png|x24px|RGL Player Page|link=https://rgl.gg/Public/PlayerProfile.aspx?p={{{rgl|}}}]]}}<!-- | ||
--> {{#if:{{{etf2l|}}}|[[Image:ETF2L-Icon.png|x24px|ETF2L Player Page|link=http://etf2l.org/forum/user/{{{etf2l}}}]]}}<!-- | --> {{#if:{{{etf2l|}}}|[[Image:ETF2L-Icon.png|x24px|ETF2L Player Page|link=http://etf2l.org/forum/user/{{{etf2l}}}]]}}<!-- | ||
Line 316: | Line 262: | ||
--> {{#if:{{{oldozf|}}}|[[Image:Ozfortress_icon.png|x24px|ozfortress Player Page|link=http://ozfortress.com/member.php?u={{{oldozf}}}]]}}<!-- | --> {{#if:{{{oldozf|}}}|[[Image:Ozfortress_icon.png|x24px|ozfortress Player Page|link=http://ozfortress.com/member.php?u={{{oldozf}}}]]}}<!-- | ||
--> {{#if:{{{ugc|}}}|[[Image:UGC-Icon2.png.png|x24px|UGC Player Page|link=https://www.ugcleague.com/players_page.cfm?player_id={{{ugc|}}}]]}}<!-- | --> {{#if:{{{ugc|}}}|[[Image:UGC-Icon2.png.png|x24px|UGC Player Page|link=https://www.ugcleague.com/players_page.cfm?player_id={{{ugc|}}}]]}}<!-- | ||
− | |||
--> {{#if:{{{site|}}}|[[Image:Website Icon.png|x24px|Website|link={{{site}}}]]}}<!-- | --> {{#if:{{{site|}}}|[[Image:Website Icon.png|x24px|Website|link={{{site}}}]]}}<!-- | ||
+ | --> {{#if:{{{steam|}}}|[[Image:Steam Logo.png|x24px|Steam Profile|link=http://steamcommunity.com/profiles/{{{steam}}}]]}}<!-- | ||
--> {{#if:{{{twitch|}}}|[[Image:Twitch Logo.png|x24px|Twitch Stream|link=http://www.twitch.tv/{{{twitch}}}]]}}<!-- | --> {{#if:{{{twitch|}}}|[[Image:Twitch Logo.png|x24px|Twitch Stream|link=http://www.twitch.tv/{{{twitch}}}]]}}<!-- | ||
--> {{#if:{{{youtube|}}}|[[Image:Youtube_Logo.png|24px|YouTube Channel|link=http://www.youtube.com/{{{youtube}}}]]}}<!-- | --> {{#if:{{{youtube|}}}|[[Image:Youtube_Logo.png|24px|YouTube Channel|link=http://www.youtube.com/{{{youtube}}}]]}}<!-- | ||
Line 340: | Line 286: | ||
-->{{#if:{{{birth_year|}}}||[[Category:People with an unknown birth date]]}}<!-- | -->{{#if:{{{birth_year|}}}||[[Category:People with an unknown birth date]]}}<!-- | ||
-->{{#if:{{{death_year|}}}|[[Category:Deceased players]]}}<!-- | -->{{#if:{{{death_year|}}}|[[Category:Deceased players]]}}<!-- | ||
− | -->{{# | + | -->{{#if:{{{format|}}}{{#switch:{{lc:{{{format|}}}}}|6|6s|6v6|sixes=false}}|{{#ifeq:{{#switch:{{lc:{{{fomat|}}}}}|9|9s|9v9|highlander=highlander}}|highlander|<!-- HIGHLANDER/OTHER |
− | |[[Category:Unrecognised Country{{!}}{{{ | + | -->{{#ifeq:{{localisation|{{{country}}}}}|error |
− | |[[Category:{{localisation|{{{ | + | |[[Category:Unrecognised Country{{!}}{{{country}}}]] |
− | + | |[[Category:{{localisation|{{{country}}}}} Highlander Players]]|}}}}<!-- | |
− | -->{{#if:{{{ | + | -->{{#if:{{{country2|}}}|{{#ifeq:{{localisation|{{{country2}}}}}|error |
− | |[[Category:Unrecognised Country{{!}}{{{ | + | |[[Category:Unrecognised Country{{!}}{{{country2}}}]] |
− | |[[Category:{{localisation|{{{ | + | |[[Category:{{localisation|{{{country2}}}}} Highlander Players]]|}}}}<!-- |
− | + | -->{{#if:{{{active_endyear|}}}|[[Category:Inactive Highlander Players]]|[[Category:Active Highlander Players]]}}<!-- | |
− | -->{{#if:{{{ | + | -->[[Category:Highlander Players]]<!-- |
− | | | + | -->{{#if:{{{class|}}}|{{#switch:{{lc: {{{class|}}} }} |
− | | | + | | scout = [[Category:Highlander Scouts]] |
− | | | + | | soldier = [[Category:Highlander Soldiers]] |
− | | | + | | pyro = [[Category:Highlander Pyros]] |
− | | | + | | demo |
− | -->{{# | + | | demoman = [[Category:Highlander Demomen]] |
− | + | | heavy | |
− | -->{{#if:{{{ | + | | heavyweapons = [[Category:Highlander Heavies]] |
+ | | engi | ||
+ | | engie | ||
+ | | engineer = [[Category:Highlander Engineers]] | ||
+ | | medic = [[Category:Highlander Medics]] | ||
+ | | sniper = [[Category:Highlander Snipers]] | ||
+ | | spy = [[Category:Highlander Spies]] | ||
+ | }}}}}}<!-- SIXES | ||
+ | -->|{{#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]]}}<!-- | ||
+ | -->[[6v6 Players]]<!-- | ||
-->{{#if:{{{class|}}}|{{#switch:{{lc: {{{class|}}} }} | -->{{#if:{{{class|}}}|{{#switch:{{lc: {{{class|}}} }} | ||
| scout = [[Category:Scouts]] | | scout = [[Category:Scouts]] | ||
− | |||
| pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]] | | pocket = [[Category:Pocket Soldiers]][[Category:Soldiers]] | ||
− | |||
| roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]] | | roamer = [[Category:Roaming Soldiers]][[Category:Soldiers]] | ||
+ | | soldier = [[Category:Soldiers]] | ||
| pyro = [[Category:Pyros]] | | pyro = [[Category:Pyros]] | ||
| demo | | demo | ||
Line 390: | Line 350: | ||
-->{{#set: | -->{{#set: | ||
|has id={{{alias|{{PAGENAME}}}}} | |has id={{{alias|{{PAGENAME}}}}} | ||
− | |has | + | |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 caption={{{caption|}}}--> | <!--|has image caption={{{caption|}}}--> | ||
|has nationality={{{nationality|}}} | |has nationality={{{nationality|}}} | ||
− | |has | + | |has -nationality=-{{{nationality|}}} |
|has team={{{teamlink|{{{team|}}}}}} | |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 class={{{class|}}} | |has class={{{class|}}} | ||
− | + | |has other_main1={{{other_main1|}}} | |
− | + | |has other_main2={{{other_main2|}}} | |
− | + | |has other_main3={{{other_main3|}}} | |
|has status={{{status|}}} | |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 | |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}} |
− | |# | + | }}<!-- |
− | }}</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> |