Difference between revisions of "Template:Prize pool row"

From QWiki
m
m
Line 1: Line 1:
<includeonly>{{#vardefine:team|{{#ifeq:{{#vardefineecho:teamtest|{{#ifeq:{{{1|}}}||{{{literal|TBD}}}|{{#explode:{{#explode:{{#explode:{{Player|{{{1|}}}}}|flag=|1}}|]]|0}}|{{!}}|0}}}}}} ||{{{1|}}}|{{#var:teamtest|}}}}}}<!--
+
<includeonly>{{#vardefine:team|{{#ifeq:{{#vardefineecho:teamtest|{{#ifeq:{{{1|}}}||{{{literal|TBD}}}|{{#explode:{{#explode:{{#explode:{{Team/{{{1|}}}}}|link=|1}}|]]|0}}|{{!}}|0}}}}}} ||{{{1|}}}|{{#var:teamtest|}}}}}}<!--
 
  ----- SEMANTIC SUBOBJECTS -----
 
  ----- SEMANTIC SUBOBJECTS -----
  
 
-->{{#ifeq:{{NAMESPACE}}||<!--
 
-->{{#ifeq:{{NAMESPACE}}||<!--
 +
 +
-->{{#subobject:ranking_{{lc:{{#var:team|TBD}}}}
 +
|has tournament page={{PAGENAME}}
 +
|has game={{#var:tournament_game}}
 +
|has date={{#if:{{{date|}}}|{{{date}}}|{{#var:tournament_date}}}}
 +
|is tier={{#var:tournament_tier}}
 +
|is valve premier={{#var:tournament_valve_premier}}
 +
|has placement={{{place|}}}
 +
|has team page={{#if:{{{storefor|}}}|{{{storefor}}}|{{#var:team|TBD}}}}
 +
|has prizemoney={{{usdprize|}}}
 +
|has last opponent={{#if:{{{lastvs|}}}|{{#explode:{{#explode:{{#explode:{{Team/{{{lastvs|}}}}}|link=|1}}|]]|0}}|{{!}}|0}}}}
 +
|has last opponent={{#if:{{{walkoverto|}}}|{{#explode:{{#explode:{{#explode:{{Team/{{{walkoverto|}}}}}|link=|1}}|]]|0}}|{{!}}|0}}}}
 +
|has last opponent={{#if:{{{walkoverfrom|}}}|{{#explode:{{#explode:{{#explode:{{Team/{{{walkoverfrom|}}}}}|link=|1}}|]]|0}}|{{!}}|0}}}}
 +
|has last score={{{lastscore|}}}
 +
|has last opponent score={{{lastvsscore|}}}
 +
|has last wdl={{{wdl|}}}
 +
|has walkover to={{{walkoverto|}}}
 +
|has walkover from={{{walkoverfrom|}}}
 +
|is part of series={{#var:tournament_series}}
 +
|has weight={{Weight|{{{usdprize|0}}}|{{#var:tournament_tier|default}}|{{{place}}}}}
 +
|qualified={{#ifeq:{{{pointprize|}}}|q|True}}
 +
}}<!--
 +
 +
----- SEMANTIC DEFINITIONS -----
 +
-->{{#ifeq:{{{place|}}}|dq||{{#vardefine:a|{{#explode:{{{place|}}}|-|0}}}}<!--
 +
-->{{#set:
 +
|has {{OrdinalWritten/{{#var:a}}}}{{{number|}}} place page={{#var:team|TBD}}
 +
}}}}<!--
  
 
-->}}<!--
 
-->}}<!--
 
--></includeonly><noinclude>[[Category:Prize pool templates]]</noinclude>
 
--></includeonly><noinclude>[[Category:Prize pool templates]]</noinclude>

Revision as of 20:58, 20 May 2017