Difference between revisions of "Template:BracketMatchTeams"
Jump to navigation
Jump to search
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly><div class="header"> |
− | |||
<div class="left">{{#if:{{{team1|}}}|{{Team2/{{{team1}}}}}|{{#if:{{{team1tf|}}}|<span style="vertical-align:-1px;">{{{team1tf}}}</span>{{Team2/tf}}|{{#if:{{{team1literal|}}}|{{{team1literal}}}|TBD}}}}}}</div> | <div class="left">{{#if:{{{team1|}}}|{{Team2/{{{team1}}}}}|{{#if:{{{team1tf|}}}|<span style="vertical-align:-1px;">{{{team1tf}}}</span>{{Team2/tf}}|{{#if:{{{team1literal|}}}|{{{team1literal}}}|TBD}}}}}}</div> | ||
<div class="right">{{#if:{{{team2|}}}|{{Team1/{{{team2}}}}}|{{#if:{{{team2tf|}}}|{{Team1/tf}}<span style="vertical-align:-1px;">{{{team2tf}}}</span>|{{#if:{{{team2literal|}}}|{{{team2literal}}}|TBD}}}}}}</div> | <div class="right">{{#if:{{{team2|}}}|{{Team1/{{{team2}}}}}|{{#if:{{{team2tf|}}}|{{Team1/tf}}<span style="vertical-align:-1px;">{{{team2tf}}}</span>|{{#if:{{{team2literal|}}}|{{{team2literal}}}|TBD}}}}}}</div> | ||
Line 7: | Line 6: | ||
Variables transformations | Variables transformations | ||
− | -->{{#vardefine:team1|{{# | + | -->{{#vardefine:team1|{{#if:{{{team1tf|}}}|{{{team1tf|}}}|{{#ifeq:{{{team1|}}}||TBD|{{#ifeq:{{{team1|}}}| |TBD|{{#ifexist:Template:Team/{{{team1|}}}|{{#explode:{{#explode:{{Team/{{{team1|}}}}}|link=|1}}|]]|0}}|{{{team1|}}}}} }}}}}}}}<!-- |
− | -->{{#vardefine:team2|{{# | + | -->{{#vardefine:team2|{{#if:{{{team2tf|}}}|{{{team2tf|}}}|{{#ifeq:{{{team2|}}}||TBD|{{#ifeq:{{{team2|}}}| |TBD|{{#ifexist:Template:Team/{{{team2|}}}|{{#explode:{{#explode:{{Team/{{{team2|}}}}}|link=|1}}|]]|0}}|{{{team2|}}}}} }}}}}}}}<!-- |
SMW storage | SMW storage | ||
− | -->{{#subobject:{{#var:team1 | + | -->{{#subobject:{{#var:team1|TBD}}_vs_{{#var:team2|TBD}}_at_{{#var:Raw_Match_date|TBD}}{{#var:timezone|}}_in_Match_{{#var:match_number|TBD}} |
− | |has team left={{#var:team1 | + | |is map number=1 |
− | |has team right={{#var:team2 | + | |has team left={{#var:team1|TBD}} |
+ | |has team right={{#var:team2|TBD}} | ||
|has team left template name={{{team1|}}} | |has team left template name={{{team1|}}} | ||
|has team right template name={{{team2|}}} | |has team right template name={{{team2|}}} | ||
+ | |Has sub={{#var:sub1}} | ||
+ | |Has sub={{#var:sub2}} | ||
+ | |Has sub={{#var:sub3}} | ||
+ | |Has sub={{#var:sub4}} | ||
+ | |Has sub={{#var:sub5}} | ||
+ | |Has replaced={{#var:replaced1|}} | ||
+ | |Has replaced={{#var:replaced2|}} | ||
+ | |Has replaced={{#var:replaced3|}} | ||
+ | |Has replaced={{#var:replaced4|}} | ||
+ | |Has replaced={{#var:replaced5|}} | ||
|Has map date={{#var:Match_date}}{{#var:timezone}} | |Has map date={{#var:Match_date}}{{#var:timezone}} | ||
|Has tournament={{FULLPAGENAME}} | |Has tournament={{FULLPAGENAME}} | ||
Line 30: | Line 40: | ||
|Has match vodgame9={{#var:vodgame9|}} | |Has match vodgame9={{#var:vodgame9|}} | ||
-->|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}} | -->|Has tournament name={{#var:tournament_ticker_name|{{#var:tournament_name|{{FULLPAGENAME}}}}}} | ||
+ | |Is part of series={{#var:tournament_series|}} | ||
|Has tournament icon={{#var:tournament_icon|}} | |Has tournament icon={{#var:tournament_icon|}} | ||
|Is finished={{#ifeq:{{#var:finished|}}|true|true|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}} | |Is finished={{#ifeq:{{#var:finished|}}|true|true|{{#if:{{#var:Match_date|}}|{{#ifexpr:({{#time:U}}-{{#time:U|{{#var:Match_date}}{{#var:timezone}}}}) > 30800|true|false}}|false}}}} | ||
|Has team left score={{#var:team1wins|0}} | |Has team left score={{#var:team1wins|0}} | ||
|Has team right score={{#var:team2wins|0}} | |Has team right score={{#var:team2wins|0}} | ||
+ | |Has default={{{default|}}} | ||
|has exact time={{#if:{{#var:timezone|}}|true|false}} | |has exact time={{#if:{{#var:timezone|}}|true|false}} | ||
− | }}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}} | + | }}{{#vardefine:team1wins|0}}{{#vardefine:team2wins|0}}{{#vardefine:finished|false}}</includeonly><noinclude>{{documentation}}</noinclude> |