Difference between revisions of "Template:PrizepoolSE"

From QWiki
m (Major overhaul (special thanks to cara for feedback) with modern toggle, better player->TBD fallback, and other cleanups. Still legacy code forcing you to use |bronzematch=true or all breaks :))
m (Fixed so currency is non-optional for all number of winners)
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 22: Line 22:
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 44: Line 44:
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 66: Line 66:
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3}}}|race={{{r3}}}|{{{p3}}}}}'''
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3}}}|race={{{r3}}}|{{{p3}}}}}'''
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t3}}}}}}}
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t3}}}}}}}
 +
{{!}}}
 +
|
 +
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 +
!width=80px{{!}}Place
 +
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 +
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 +
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 +
{{ #ifeq: true|{{{withteams}}}|!width=190px{{!}}Team}}
 +
{{!}}-style="background-color:{{MedalColour|1}};"
 +
{{!}}align="center"{{!}}{{medal|1}} '''1st'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m1}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c1}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1}}}|race={{{r1}}}|{{{p1}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t1}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|2}};"
 +
{{!}}align="center"{{!}}{{medal|2}} '''2nd'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m2}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c2}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2}}}|race={{{r2}}}|{{{p2}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t2}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|3}};"
 +
{{!}}rowspan="2" align="center"{{!}}{{medal|sf}}'''3rd/4th'''
 +
{{!}}rowspan="2" align="center"{{!}}{{{symbol}}}{{{m3}}}
 +
{{#if:{{{currency2|}}}|{{!}}rowspan="2" align="center"{{!}}{{{symbol2}}}{{{c3}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3}}}|race={{{r3}}}|{{{p3}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t3}}}}}}}
 +
{{!}}-style="background-color:{{MedalColor|3}};"
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
Line 72: Line 101:
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 104: Line 133:
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 136: Line 165:
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 181: Line 210:
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 207: Line 236:
 
{{!}}align="center"{{!}}{{{symbol}}}{{{m4}}}
 
{{!}}align="center"{{!}}{{{symbol}}}{{{m4}}}
 
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c4}}}}}
 
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c4}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} '''5th-6th'''
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m5}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c5}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f5}}}|race={{{r5}}}|{{{p5}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t5}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c6}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f6}}}|race={{{r6}}}|{{{p6}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t6}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} '''7th-8th'''
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m7}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c7}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f7}}}|race={{{r7}}}|{{{p7}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t7}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c8}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f8}}}|race={{{r8}}}|{{{p8}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t8}}}}}}}
 +
{{!}}}
 +
|
 +
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 +
!width=80px{{!}}Place
 +
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 +
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 +
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 +
{{ #ifeq: true|{{{withteams}}}|!width=190px{{!}}Team}}
 +
{{!}}-style="background-color:{{MedalColour|1}};"
 +
{{!}}align="center"{{!}}{{medal|1}} '''1st'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m1}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c1}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1}}}|race={{{r1}}}|{{{p1}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t1}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|2}};"
 +
{{!}}align="center"{{!}}{{medal|2}} '''2nd'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m2}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c2}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2}}}|race={{{r2}}}|{{{p2}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t2}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|3}};"
 +
{{!}}rowspan="2" align="center"{{!}}{{medal|sf}}'''3rd/4th'''
 +
{{!}}rowspan="2" align="center"{{!}}{{{symbol}}}{{{m3}}}
 +
{{#if:{{{currency2|}}}|{{!}}rowspan="2" align="center"{{!}}{{{symbol2}}}{{{c3}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3}}}|race={{{r3}}}|{{{p3}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t3}}}}}}}
 +
{{!}}-style="background-color:{{MedalColor|3}};"
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
Line 242: Line 320:
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 
!width=80px{{!}}Place
 
!width=80px{{!}}Place
!width={{{width|85px}}}{{!}}Prize ({{{currency}}})
+
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}| ({{{currency}}})| }}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize ({{{currency2}}})*}}
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
Line 268: Line 346:
 
{{!}}align="center"{{!}}{{{symbol}}}{{{m4}}}
 
{{!}}align="center"{{!}}{{{symbol}}}{{{m4}}}
 
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c4}}}}}
 
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c4}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} '''5th-6th'''
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m5}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c5}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f5}}}|race={{{r5}}}|{{{p5}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t5}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c6}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f6}}}|race={{{r6}}}|{{{p6}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t6}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} '''7th-8th'''
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m7}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c7}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f7}}}|race={{{r7}}}|{{{p7}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t7}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c8}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f8}}}|race={{{r8}}}|{{{p8}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t8}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} <small>'''9th-10th'''</small>
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m9}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c9}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f9}}}|race={{{r9}}}|{{{p9}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t9}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c10}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f10}}}|race={{{r10}}}|{{{p10}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t10}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} <small>'''11th-12th'''</small>
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m11}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c11}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f11}}}|race={{{r11}}}|{{{p11}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t11}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c12}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f12}}}|race={{{r12}}}|{{{p12}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t12}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} <small>'''13th-14th'''</small>
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m13}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c13}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f13}}}|race={{{r13}}}|{{{p13}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t13}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c14}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f14}}}|race={{{r14}}}|{{{p14}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t14}}}}}}}
 +
{{!}}-
 +
{{!}} rowspan="2" align="center"{{!}} <small>'''15th-16th'''</small>
 +
{{!}} rowspan="2" align="center"{{!}}{{{symbol}}}{{{m13}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c15}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f15}}}|race={{{r15}}}|{{{p15}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t15}}}}}}}
 +
{{!}}-
 +
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c16}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f16}}}|race={{{r16}}}|{{{p16}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t16}}}}}}}
 +
{{!}}}
 +
|
 +
{{{!}} class="table table-bordered prizepooltable collapsed" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}}
 +
!width=80px{{!}}Place
 +
!width={{{width|85px}}}{{!}}Prize{{#if:{{{currency}}}|&nbsp;({{{currency}}})| }}
 +
{{#if:{{{currency2|}}}|!width=95px {{!}}~Prize&nbsp;({{{currency2}}})*}}
 +
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winner
 +
{{ #ifeq: true|{{{withteams}}}|!width=190px{{!}}Team}}
 +
{{!}}-style="background-color:{{MedalColour|1}};"
 +
{{!}}align="center"{{!}}{{medal|1}} '''1st'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m1}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c1}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1}}}|race={{{r1}}}|{{{p1}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t1}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|2}};"
 +
{{!}}align="center"{{!}}{{medal|2}} '''2nd'''
 +
{{!}}align="center"{{!}}{{{symbol}}}{{{m2}}}
 +
{{#if:{{{currency2|}}}|{{!}}align="center"{{!}}{{{symbol2}}}{{{c2}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2}}}|race={{{r2}}}|{{{p2}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t2}}}}}}}
 +
{{!}}-style="background-color:{{MedalColour|3}};"
 +
{{!}}rowspan="2" align="center"{{!}}{{medal|sf}}'''3rd/4th'''
 +
{{!}}rowspan="2" align="center"{{!}}{{{symbol}}}{{{m3}}}
 +
{{#if:{{{currency2|}}}|{{!}}rowspan="2" align="center"{{!}}{{{symbol2}}}{{{c3}}}}}
 +
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3}}}|race={{{r3}}}|{{{p3}}}}}'''
 +
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t3}}}}}}}
 +
{{!}}-style="background-color:{{MedalColor|3}};"
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4}}}|race={{{r4}}}|{{{p4}}}}}'''
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}
 
{{ #ifeq: true|{{{withteams}}}|{{!}}{{Team|{{{t4}}}}}}}

Latest revision as of 10:37, 6 December 2022

Documentation (view - edit)

Template for a prizepool table for tournaments. See also {{PrizepoolSEnoprize}} and {{PrizepoolSEnoprizeNolink}}.


Example

The code:

{{PrizepoolSE
|number=8
|width=
|playerwidth=200
|bronzematch=true
|symbol=
|currency=USD
|p1=Zepp |f1=ru |m1=$3,000
|p2=Lordlame |f2=ie |m2=$1,500
|p3=Avenger |f3=pl |m3=$1,000
|p4=Blixem |f4=nl |m4=$500
|p5=carapace |f5=se |m5=$350
|p6=Rock |f6=fi |m6=$250
|p7=Milton |f7=fi |m7=$200
|p8=blAze |f8=fi |m8=
}}

Gives us:


Parameters

|number=
Sets number of players. Allowed inputs are 1,2,3,4,6,8,16.
|cutafter=
Caps when the toggle appears (default 4).
|bronzematch=
Must be set to "true" in all cases except number=4.
|currency=
Currency of the prizes. Is displayed in the title line.
|symbol=
Ignore this, and manually add symbol for each value.
|pX=
Name of the Xth player. Leave empty for TBD.
|fX=
Flag of the Xth player. Leave empty for default flag TBD.
|tX=
Team of the Xth player. Probably shouldn't use this.
|mX=
Amount of prizemoney for the Xth player.

Optional

|tablestyle=
This declares additional table CSS styling.
|withteams=
Parameter "true" enables the 'Team' column. Shall this parameter be missing or assigned a value other than "true", the column 'Team' will not appear in the table.
|width=
Sets a different width for the first prize column. Default value is 85px.
|playerwidth=
Sets a different width for the player column. Default value is 200px.
|currency2=
2nd currency, in which prizes are converted for simpler reading. Most likely "USD".
|symbol2=
Symbol of the converted currency. Most likely "$".
|cX=
Amount of the converted prize for the Xth player.

Copy/Paste

{{PrizepoolSE
|number=
|bronzematch=
|withteams=
|symbol=
|symbol2=
|currency=
|currency2=
|p1= |f1=|m1=|t1=|c1=
|p2= |f2=|m2=|t2=|c2=
|p3= |f3=|m3=|t3=|c3=
|p4= |f4=|m4=|t4=|c4=
|p5= |f5=|m5=|t5=|c5=
|p6= |f6=|m6=|t6=|c6=
|p7= |f7=|m7=|t7=|c7=
|p8= |f8=|m8=|t8=|c8=
|p9= |f9=|m9=|t9=|c9=
|p10= |f10=|m10=|t10=|c10=
|p11= |f11=|m11=|t11=|c11=
|p12= |f12=|m12=|t12=|c12=
|p13= |f13=|m13=|t13=|c13=
|p14= |f14=|m14=|t14=|c14=
|p15= |f15=|m15=|t15=|c15=
|p16= |f16=|m16=|t16=|c16=
}}


Adapted from Liquipedia