Difference between revisions of "Template:DrakePowers"
Jump to navigation
Jump to search
(Created page with "<includeonly>Major Powers:{{#expr:{{#if: {{{Year}}} | floor((((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0}})) + 1)/2) - ({{{Major}}} + ceil({{{Minor}}}/2)) | 0 }} }} or Minor Powers:{{#expr:{{#if: {{{Year}}} | ((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 ye...") |
|||
Line 1: | Line 1: | ||
<includeonly>Major Powers:{{#expr:{{#if: {{{Year}}} | floor((((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0}}) | <includeonly>Major Powers:{{#expr:{{#if: {{{Year}}} | floor((((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0}})) - (({{{Major}}} * 2) + {{{Minor}}}) + 2)/2) | 0 }} }} or Minor Powers:{{#expr:{{#if: {{{Year}}} | {{#ifexpr: {{{Major}}}>0 | (((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0}})) - (({{{Major}}} * 2) + {{{Minor}}}) + 2) | (((({{#time:Y |now + 61 years}} * 12) + {{#time:m |now + 61 years}}) - (({{{Year}}} * 12) + {{{Month|1}}}) - ({{#ifexpr:{{#time:d |now + 61 years}} < {{{Day|1}}} | 1 | 0}})) - (({{{Major}}} * 2) + {{{Minor}}}) + 1) }} | 0 }} }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Line 15: | Line 15: | ||
<pre> | <pre> | ||
{{DrakePowers| | {{DrakePowers| | ||
|Month= | |Month=12 | ||
|Day=16 | |Day=16 | ||
|Year=2082 | |Year=2082 | ||
Line 24: | Line 24: | ||
The template will return the number of drake optional powers that the character qualifies for. {{DrakePowers| | The template will return the number of drake optional powers that the character qualifies for. {{DrakePowers| | ||
|Month= | |Month=10 | ||
|Day= | |Day=10 | ||
|Year= | |Year=2083 | ||
|Major=1 | |Major=1 | ||
|Minor= | |Minor=1 | ||
|}} | |}} | ||
Revision as of 23:47, 11 January 2023
UsageThis template allows you enter the date of the first run after a character's Dracomorphosis and will calculate the number of drake optional powers that the character qualifies to buy. Entering the number of major or minor drake powers currently owned will adjust the amount you qualify for. A Major power is any optional power with a karma cost of 5 or more. A minor power is any with a cost less than 5.
So, if you enter this: {{DrakePowers| |Month=12 |Day=16 |Year=2082 |Major=1 |Minor=1 |}} The template will return the number of drake optional powers that the character qualifies for. Major Powers:12 or Minor Powers:24
|