Template:PrizeRow

Template page
Revision as of 11:24, 29 September 2023 by Couchor (talk | contribs) (Created page with "<noinclude> {{#cargo_declare: _table = Prizes |placement=String |prize=Int |localPrize=Int |currency=String |teams=List (,) of Page |players=List (,) of Page }}</noinclude><includeonly>{{#invoke:Json|fromArgs}}</includeonly><noinclude>{{Documentation}}Category:Templates</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template defines the table "Prizes". View table.

Documentation (view - edit)

PrizePool parameters:

Parameter Description
percent % of prize to be allocated to this placement. Will automatically calculate prize based on the prize parameter value in the Template:PrizePool call
prize Amount won by this placement. Will override percent calculation if both are present, but you shouldn't add prize to a row manually if percent added.
bg If you want to add a background color to the row. Top 3 get it automatically. Currently acceptable values are gold, silver and bronze
place Placement or range of placements. If not present then it will just increment each row by 1. For range just do start-end, so 9-12
participants List of teams or players, separated by commas. Can use full names or shorthands
columns List of values separated by comma. Use same order as the columns parameter in the Template:PrizePool call.

Example

==Prize pool ==
{{PrizePool|percent=y|prize=3142933|currency=EUR|rate=1.0719050831921992|columns=First,Second
|{{PrizeRow|percent=45|columns=1st prize,1st val|participants=spirit}}
|{{PrizeRow|percent=12|columns=2nd prize,2nd val|prize=20000|participants=gaimin}} 
|{{PrizeRow|percent=8|columns=3rd prize,3rd val|participants=lgd}}
|{{PrizeRow|percent=5.5|columns=4th prize,4th val|participants=azure}}
|{{PrizeRow|place=5-6|columns=5-6 prize,5-6 val|percent=3.25|participants=liquid,betboom|bg=gold}}
|{{PrizeRow|place=7-8|columns=7-8 prize,7-8 val|percent=2.5|participants=nouns,vp}}
}}

Will look like this:

PrizePool example.png