Template:Splatfest result: Difference between revisions
From Inkipedia, the Splatoon wiki
(Made it even simpler.) |
mNo edit summary |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>| {{ink|{{{col1}}}}} '''{{{opt1}}}''' | ||
| {{ink|{{{col2}}}}} '''{{{opt2}}}''' | |||
| {{# | | {{#dateformat: {{#time: Y-m-d | {{{time}}} }} }} {{#time: H:i e | {{{time}}} }} | ||
| '''{{#ifeq:{{{winner}}}|1|{{{opt1}}}|{{{opt2}}}}}''' | | '''{{#ifeq:{{{winner}}}|1|{{{opt1}}}|{{{opt2}}}}}''' | ||
| '''{{#expr:{{{wpop}}} + {{{wwin}}} * | | '''{{#expr:{{{wpop}}} + {{{wwin}}} * {{#switch:{{{format}}}|v220 = 6|old = 2|4}}}}''' | ||
| style="font-size: 80%" | {{#ifexpr:{{{wpop}}}>=50|'''}}{{{wpop}}}%{{#ifexpr:{{{wpop}}}>=50|'''}} | | style="font-size: 80%" | {{#ifexpr:{{{wpop}}}>=50|'''}}{{{wpop}}}%{{#ifexpr:{{{wpop}}}>=50|'''}} | ||
| style="font-size: 80%" | {{#ifexpr:{{{wwin}}}>=50|'''}}{{{wwin}}}%{{#ifexpr:{{{wwin}}}>=50|'''}} | | style="font-size: 80%" | {{#ifexpr:{{{wwin}}}>=50|'''}}{{{wwin}}}%{{#ifexpr:{{{wwin}}}>=50|'''}} | ||
| {{#ifeq:{{{winner}}}|1|{{{opt2}}}|{{{opt1}}}}} | | {{#ifeq:{{{winner}}}|1|{{{opt2}}}|{{{opt1}}}}} | ||
| {{#expr:(100 - {{{wpop}}}) + (100 - {{{wwin}}}) * | | {{#expr:(100 - {{{wpop}}}) + (100 - {{{wwin}}}) * {{#switch:{{{format}}}|v220 = 6|old = 2|4}}}} | ||
| style="font-size: 80%" | {{#ifexpr:{{{wpop}}}<50|'''}}{{{ | | style="font-size: 80%" | {{#ifexpr:{{{wpop}}}<50|'''}}{{#expr:100-{{{wpop}}}}}%{{#ifexpr:{{{wpop}}}<50|'''}} | ||
| style="font-size: 80%" | {{#ifexpr:{{{wwin}}}<50|'''}}{{{ | | style="font-size: 80%" | {{#ifexpr:{{{wwin}}}<50|'''}}{{#expr:100-{{{wwin}}}}}%{{#ifexpr:{{{wwin}}}<50|'''}} | ||
|-</includeonly><noinclude> | |-</includeonly><noinclude> | ||
Use this template to create a row on the list of completed Splatfest events on the [[Splatfest]] page. Fields: | Use this template to create a row on the list of completed Splatfest events on the [[Splatfest]] page. Fields: | ||
*Colors: Color of each option. These are the value you'd pass onto the [[:Template: | *Colors: Color of each option. These are the value you'd pass onto the [[:Template:ink|ink template]]. | ||
**'''col1''': Color of the first (Callie's) option. | **'''col1''': Color of the first (Callie's) option. | ||
**'''col2''': Color of the second (Marie's) option. | **'''col2''': Color of the second (Marie's) option. | ||
Line 20: | Line 20: | ||
**'''opt1''': First (Callie's) option. | **'''opt1''': First (Callie's) option. | ||
**'''opt2''': Second (Marie's) option. | **'''opt2''': Second (Marie's) option. | ||
* | *'''time''': The start time of the event. The format must be <code>yyyy-mm-dd hh-mm UTC</code>. Replace UTC with the abbreviation for the timezone being used. | ||
*'''winner''': Number of the winning option, so either "1" or "2". | |||
*Winner percentages: Percentage number for the winner's popularity and win amount. Don't write the "%" sign. | *Winner percentages: Percentage number for the winner's popularity and win amount. Don't write the "%" sign. | ||
**'''wpop''': Winner's popularity percentage. | **'''wpop''': Winner's popularity percentage. | ||
**'''wwin''': Winner's win percentage. | **'''wwin''': Winner's win percentage. | ||
*Format: | *Format: | ||
**'''format''': If the formula for the final score is the pre-[[ | **'''format''': If the formula for the final score is the pre-[[Version 2.0.0 (Splatoon)|Version 2.0.0]] one, write "old" for this field. If the formula for the final score is the post-[[Version 2.2.0 (Splatoon)|Version 2.2.0]] one, write "v220" for this field. Otherwise, leave it alone. | ||
</noinclude> | </noinclude> |
Latest revision as of 04:17, 22 August 2018
Use this template to create a row on the list of completed Splatfest events on the Splatfest page. Fields:
- Colors: Color of each option. These are the value you'd pass onto the ink template.
- col1: Color of the first (Callie's) option.
- col2: Color of the second (Marie's) option.
- Options: Name of the options.
- opt1: First (Callie's) option.
- opt2: Second (Marie's) option.
- time: The start time of the event. The format must be
yyyy-mm-dd hh-mm UTC
. Replace UTC with the abbreviation for the timezone being used. - winner: Number of the winning option, so either "1" or "2".
- Winner percentages: Percentage number for the winner's popularity and win amount. Don't write the "%" sign.
- wpop: Winner's popularity percentage.
- wwin: Winner's win percentage.
- Format:
- format: If the formula for the final score is the pre-Version 2.0.0 one, write "old" for this field. If the formula for the final score is the post-Version 2.2.0 one, write "v220" for this field. Otherwise, leave it alone.