Difference between revisions of "Template:Prizepool2on2noprize"
From QWiki
m (Fixing columns) |
m (Fixed so |number=8 works as intended) |
||
Line 127: | Line 127: | ||
|8= | |8= | ||
{{ #ifeq: true|{{{bronzematch}}}| | {{ #ifeq: true|{{{bronzematch}}}| | ||
− | {{{!}} class="table table-bordered | + | {{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}} |
!width=80px{{!}}Place | !width=80px{{!}}Place | ||
!style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winners | !style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winners | ||
{{!}}-style="background-color:{{MedalColour|1}};" | {{!}}-style="background-color:{{MedalColour|1}};" | ||
{{!}}align="center"{{!}}{{medal|1}} '''1st''' | {{!}}align="center"{{!}}{{medal|1}} '''1st''' | ||
− | |||
− | |||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1a}}}|{{{p1a}}}}}''' & '''{{player|flag={{{f1b}}}|{{{p1b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1a}}}|{{{p1a}}}}}''' & '''{{player|flag={{{f1b}}}|{{{p1b}}}}}''' | ||
{{!}}-style="background-color:{{MedalColour|2}};" | {{!}}-style="background-color:{{MedalColour|2}};" | ||
{{!}}align="center"{{!}}{{medal|2}} '''2nd''' | {{!}}align="center"{{!}}{{medal|2}} '''2nd''' | ||
− | |||
− | |||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2a}}}|{{{p2a}}}}}''' & '''{{player|flag={{{f2b}}}|{{{p2b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2a}}}|{{{p2a}}}}}''' & '''{{player|flag={{{f2b}}}|{{{p2b}}}}}''' | ||
{{!}}-style="background-color:{{MedalColour|3}};" | {{!}}-style="background-color:{{MedalColour|3}};" | ||
{{!}}align="center"{{!}}{{medal|3}} '''3rd''' | {{!}}align="center"{{!}}{{medal|3}} '''3rd''' | ||
− | |||
− | |||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3a}}}|{{{p3a}}}}}''' & '''{{player|flag={{{f3b}}}|{{{p3b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3a}}}|{{{p3a}}}}}''' & '''{{player|flag={{{f3b}}}|{{{p3b}}}}}''' | ||
{{!}}-style="background-color:{{MedalColour|4}};" | {{!}}-style="background-color:{{MedalColour|4}};" | ||
{{!}}align="center"{{!}}{{medal|4}} '''4th''' | {{!}}align="center"{{!}}{{medal|4}} '''4th''' | ||
− | |||
− | |||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4a}}}|{{{p4a}}}}}''' & '''{{player|flag={{{f4b}}}|{{{p4b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4a}}}|{{{p4a}}}}}''' & '''{{player|flag={{{f4b}}}|{{{p4b}}}}}''' | ||
{{!}}- | {{!}}- | ||
{{!}} rowspan="2" align="center"{{!}} '''5th-6th''' | {{!}} rowspan="2" align="center"{{!}} '''5th-6th''' | ||
− | |||
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c5}}}}} | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c5}}}}} | ||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f5a}}}|{{{p5a}}}}}''' & '''{{player|flag={{{f5b}}}|{{{p5b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f5a}}}|{{{p5a}}}}}''' & '''{{player|flag={{{f5b}}}|{{{p5b}}}}}''' | ||
Line 160: | Line 151: | ||
{{!}}- | {{!}}- | ||
{{!}} rowspan="2" align="center"{{!}} '''7th-8th''' | {{!}} rowspan="2" align="center"{{!}} '''7th-8th''' | ||
− | {{!}} rowspan="2" align="center"{{!}}{{{ | + | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c7}}}}} |
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f7a}}}|{{{p7a}}}}}''' & '''{{player|flag={{{f7b}}}|{{{p7b}}}}}''' | ||
+ | {{!}}- | ||
+ | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c8}}}}} | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f8a}}}|{{{p8a}}}}}''' & '''{{player|flag={{{f8b}}}|{{{p8b}}}}}''' | ||
+ | {{!}}} | ||
+ | | | ||
+ | {{{!}} class="table table-bordered" style="text-align:center;" data-cutafter="{{{cutafter|4}}}" {{#if:{{{tablestyle|}}}|style="{{{tablestyle|}}}"}} | ||
+ | !width=80px{{!}}Place | ||
+ | !style="text-align:left;" width={{{playerwidth|200px}}}{{!}}Winners | ||
+ | {{!}}-style="background-color:{{MedalColour|1}};" | ||
+ | {{!}}align="center"{{!}}{{medal|1}} '''1st''' | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f1a}}}|{{{p1a}}}}}''' & '''{{player|flag={{{f1b}}}|{{{p1b}}}}}''' | ||
+ | {{!}}-style="background-color:{{MedalColour|2}};" | ||
+ | {{!}}align="center"{{!}}{{medal|2}} '''2nd''' | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f2a}}}|{{{p2a}}}}}''' & '''{{player|flag={{{f2b}}}|{{{p2b}}}}}''' | ||
+ | {{!}}-style="background-color:{{MedalColour|3}};" | ||
+ | {{!}}rowspan="2" align="center"{{!}}{{medal|sf}}'''3rd/4th''' | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f3a}}}|{{{p3a}}}}}''' & '''{{player|flag={{{f3b}}}|{{{p3b}}}}}''' | ||
+ | {{!}}-style="background-color:{{MedalColor|3}};" | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f4a}}}|{{{p4a}}}}}''' & '''{{player|flag={{{f4b}}}|{{{p4b}}}}}''' | ||
+ | {{!}}- | ||
+ | {{!}} rowspan="2" align="center"{{!}} '''5th-6th''' | ||
+ | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c5}}}}} | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f5a}}}|{{{p5a}}}}}''' & '''{{player|flag={{{f5b}}}|{{{p5b}}}}}''' | ||
+ | {{!}}- | ||
+ | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c6}}}}} | ||
+ | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f6a}}}|{{{p6a}}}}}''' & '''{{player|flag={{{f6b}}}|{{{p6b}}}}}''' | ||
+ | {{!}}- | ||
+ | {{!}} rowspan="2" align="center"{{!}} '''7th-8th''' | ||
{{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c7}}}}} | {{#if:{{{currency2|}}}|{{!}}align="left"{{!}}{{{symbol2}}}{{{c7}}}}} | ||
{{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f7a}}}|{{{p7a}}}}}''' & '''{{player|flag={{{f7b}}}|{{{p7b}}}}}''' | {{!}} style="text-align:left;"{{!}}'''{{player|flag={{{f7a}}}|{{{p7a}}}}}''' & '''{{player|flag={{{f7b}}}|{{{p7b}}}}}''' |
Latest revision as of 10:04, 30 October 2024
Documentation (view - edit)
Template for a prizepool table for tournaments. See also {{PrizepoolSEnoprize}} and {{PrizepoolSEnoprizeNolink}}.
Example
The code:
{{Prizepool2on2noprize |number=8 |width= |playerwidth=200 |bronzematch=true |symbol= |currency= |p1a=reppie |f1a=nl |p1b=razor |f1b=se |p2a=Delitel |f2a=ru |p2b=Tyrannos |f2b=ru |p3a=Bloody |f3a=ru |p3b=XN |f3b=ru |p4a=Unknown |f4a=ru |p4b=DooM|f4b=ru |p5a=Dao |f5a=ru |p5b=yog |f5b=ru |p6a=TaPaKaH |f6a=ru |p6b=makc |f6b=ru |p7a=.koval |f7a=ua |p7b=mouse |f7b=ua |p8a=doomah|f8a=ru |p8b=tikhon|f8b=ru }}
Gives us:
Place | Winners |
---|---|
1st | reppie & razor |
2nd | Delitel & Tyrannos |
3rd | Bloody & XN |
4th | Unknown & DooM |
5th-6th | Dao & yog |
TaPaKaH & makc | |
7th-8th | .koval & mouse |
doomah & tikhon |
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.
- |pXa=
- Name of the Xth player in team A. Leave empty for TBD.
- |fXa=
- Flag of the Xth player in team A. Leave empty for default flag .
- |pXb=
- Name of the Xth player in team B. Leave empty for TBD.
- |fXb=
- Flag of the Xth player in team B. Leave empty for default flag .
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.
Copy/Paste
{{Prizepool2on2noprize |number=8 |width= |playerwidth=200 |bronzematch=true |symbol= |currency= |p1a= |f1a= |p1b= |f1b= |p2a= |f2a= |p2b= |f2b= |p3a= |f3a= |p3b= |f3b= |p4a= |f4a= |p4b= |f4b= |p5a= |f5a= |p5b= |f5b= |p6a= |f6a= |p6b= |f6b= |p7a= |f7a= |p7b= |f7b= |p8a= |f8a= |p8b= |f8b= }}
Adapted from Liquipedia