Difference between revisions of "Template:Event points table row"
(6 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
* event: The name of the event. This is used to extract information about charges from the event's data template. | * event: The name of the event. This is used to extract information about charges from the event's data template. | ||
* charges: The number of charges for which to generate a row of the table. | * charges: The number of charges for which to generate a row of the table. | ||
− | * start_hour: The hour (0-23) on which event starts, in | + | * start_hour: The hour (0-23) on which event starts, in UTC |
* total_hours: The total number of hours from the start time to the end time. For events with unpredictable end times, like boss health events, this controls how many rows of the table to show, and does not indicate the actual end time. | * total_hours: The total number of hours from the start time to the end time. For events with unpredictable end times, like boss health events, this controls how many rows of the table to show, and does not indicate the actual end time. | ||
* base_1: The number of base points scorable on the first round of sub-nodes. | * base_1: The number of base points scorable on the first round of sub-nodes. | ||
Line 53: | Line 53: | ||
-->{{#ifeq:{{{charges}}}|{{Event data: {{{event}}}|8}}| <small>'''''(Initial charges)'''''</small>}}<!-- | -->{{#ifeq:{{{charges}}}|{{Event data: {{{event}}}|8}}| <small>'''''(Initial charges)'''''</small>}}<!-- | ||
-->{{#ifeq:{{{charges}}}|{{Event data: {{{event}}}|9}}| <small>'''''(Max charges reached)'''''</small>*}}<!-- | -->{{#ifeq:{{{charges}}}|{{Event data: {{{event}}}|9}}| <small>'''''(Max charges reached)'''''</small>*}}<!-- | ||
− | -->{{#ifexpr:({{{charges}}} - 1) * {{#explode:{{Event data: {{{event}}}|10}}|h|0}} > {{{total_hours}}}|<sup>§</sup>}} | + | -->{{#ifexpr:({{{charges}}} - {{Event data: {{{event}}}|8}} + 1) * {{#explode:{{Event data: {{{event}}}|10}}|h|0}} > {{{total_hours}}}|<sup>§</sup>}} |
| <!-- Base points: | | <!-- Base points: | ||
floor((subnodes - 1 + charges) / subnodes) * base_1 | floor((subnodes - 1 + charges) / subnodes) * base_1 | ||
Line 63: | Line 63: | ||
+ floor(({{Event data: {{{event}}}|7}} - 2 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) * {{{base_2}}}}} | + floor(({{Event data: {{{event}}}|7}} - 2 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) * {{{base_2}}}}} | ||
{{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | {{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | ||
− | + floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) * {{{base_3}}}}} | + | + floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) * {{{base_3}}}}} |
}} | }} | ||
| <!-- Bonus points: | | <!-- Bonus points: | ||
Line 77: | Line 77: | ||
{{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | {{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | ||
+ floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) | + floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) | ||
− | * {{{bonus_3}}}}} | + | * {{{bonus_3}}}}} |
}} | }} | ||
| <!-- Total points: | | <!-- Total points: | ||
Line 91: | Line 91: | ||
{{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | {{#ifexpr: {{Event data: {{{event}}}|7}} > 2| | ||
+ floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) | + floor(({{Event data: {{{event}}}|7}} - 3 + {{{charges}}}) / {{Event data: {{{event}}}|7}}) | ||
− | * ({{{base_3}}} + {{{bonus_3}}})}} | + | * ({{{base_3}}} + {{{bonus_3}}})}} |
}} | }} | ||
| <!-- Hours elapsed: (charges - charges_initial) * recharge_time | | <!-- Hours elapsed: (charges - charges_initial) * recharge_time | ||
Line 98: | Line 98: | ||
}} Hrs}} | }} Hrs}} | ||
| <!-- Time PDT: (start_hour + recharge_time * (charges - charges_initial)) % 24 | | <!-- Time PDT: (start_hour + recharge_time * (charges - charges_initial)) % 24 | ||
− | -->{{#expr: | + | -->{{Hours_formatted|{{#expr: |
− | + | {{{start_hour}}} + {{#explode:{{Event data: {{{event}}}|10}}|h|0}} | |
* ({{{charges}}} - {{Event data: {{{event}}}|8}}) | * ({{{charges}}} - {{Event data: {{{event}}}|8}}) | ||
− | + | }}}}</includeonly> |
Latest revision as of 03:36, 27 October 2019
Usage
Generates a row of a Template:Event points table.
Parameters are:
- event: The name of the event. This is used to extract information about charges from the event's data template.
- charges: The number of charges for which to generate a row of the table.
- start_hour: The hour (0-23) on which event starts, in UTC
- total_hours: The total number of hours from the start time to the end time. For events with unpredictable end times, like boss health events, this controls how many rows of the table to show, and does not indicate the actual end time.
- base_1: The number of base points scorable on the first round of sub-nodes.
- bonus_1: The number of bonus points scorable on the first round of sub-nodes.
- base_2: The number of base points scorable on the second round of sub-nodes. Must be present if there are at least 2 sub-nodes.
- bonus_2: The number of bonus points scorable on the second round of sub-nodes. Must be present if there are at least 2 sub-nodes.
- base_3: The number of base points scorable on the third round of sub-nodes. Must be present if there are at least 3 sub-nodes.
- bonus_3: The number of bonus points scorable on the third round of sub-nodes. Must be present if there are at least 3 sub-nodes.
Example
The following shorthand:
{{Event points table row |event=A World Reborn |charges=3 |start_hour=13 |total_hours=70 |base_1=15 |bonus_1=10 |base_2=15 |bonus_2=10 |base_3=15 |bonus_3=10 }}
Produces:
|- | 3 | 45 | 30 | 75 | +8 Hrs | 9:00 PM