Template:AP: Difference between revisions
Created page with "<includeonly> {{#if:{{{cost|}}}|{{#ifeq:{{{archangel}}}|yes|{{#invoke:String|rep|link=AP|16px|class=inline-icon|{{{cost}}}}}|{{#invoke:String|rep|F..." |
added documentation |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if:{{{cost|}}}|{{#ifeq:{{{archangel}}}|yes|{{#invoke:String|rep|[[File:AP archangel.png|link=AP|16px|class=inline-icon]]|{{{cost}}}}}|{{#invoke:String|rep|[[File:AP.png|link=AP|16px|class=inline-icon]]|{{{cost}}}}}}}|{{#if:{{{length|}}}||{{#ifeq:{{{archangel}}}|yes|[[File:AP archangel.png|link=AP|16px|class=inline-icon]]|[[File:AP.png|link=AP|16px|class=inline-icon]]}}}}}}<!-- | {{#if:{{{cost|}}}|{{#ifeq:{{{cost}}}|0|{{#if:{{{length|}}}||[[File:AP empty.png|link=AP|16px|class=inline-icon]]}}|{{#ifeq:{{{archangel}}}|yes|{{#invoke:String|rep|[[File:AP archangel.png|link=AP|16px|class=inline-icon]]|{{{cost}}}}}|{{#invoke:String|rep|[[File:AP.png|link=AP|16px|class=inline-icon]]|{{{cost}}}}}}}}}|{{#if:{{{length|}}}||{{#ifeq:{{{archangel}}}|yes|[[File:AP archangel.png|link=AP|16px|class=inline-icon]]|[[File:AP.png|link=AP|16px|class=inline-icon]]}}}}}}<!-- | ||
-->{{#if:{{{length|}}}|{{#invoke:String|rep|[[File:AP empty.png|link=AP|16px|class=inline-icon]]|{{#if:{{{cost|}}}|{{#expr: {{{length}}} - {{{cost}}}}}|{{{length}}}|}}|}}}} | |||
</ | -->{{#if:{{{length|}}}|{{#invoke:String|rep|[[File:AP empty.png|link=AP|16px|class=inline-icon]]|{{#if:{{{cost|}}}|{{#expr: {{{length}}} - {{{cost}}}}}|{{{length}}}|}}|}}}}</includeonly><noinclude> | ||
Creates a bar of {{AP}} Action Points. | |||
<br><br> | |||
Has the parameters <code>cost</code>, <code>length</code>, and <code>archangel</code>. | |||
<br><code>cost</code> and <code>length</code> are expected as integers. If neither are specified, one full AP will be displayed.<br> | |||
<code><nowiki>{{AP}}</nowiki></code> {{AP}}<br><br> | |||
If only <code>cost</code> is defined, that many full AP will be displayed.<br> | |||
<code><nowiki>{{AP|cost=3}}</nowiki></code> {{AP|cost=3}}<br> | |||
If it is defined as 0, it will instead show one empty AP.<br> | |||
<code><nowiki>{{AP|cost=0}}</nowiki></code> {{AP|cost=0}}<br> | |||
If only <code>length</code> is defined, that many empty AP will be displayed.<br> | |||
<code><nowiki>{{AP|length=5}}</nowiki></code> {{AP|length=5}}<br> | |||
If both <code>cost</code> and <code>length</code> are defined, then <code>cost</code> amount of full AP and <code>length</code> - <code>cost</code> amount of empty AP will be shown.<br> | |||
<code><nowiki>{{AP|cost=4|length=10}}</nowiki></code> {{AP|cost=4|length=10}}<br><br> | |||
<code>archangel</code> turns any full AP purple if it is equal to <code>yes</code>.<br> | |||
<code><nowiki>{{AP|archangel=yes}}</nowiki></code> {{AP|archangel=yes}} | |||
</noinclude> | |||
Revision as of 03:02, 5 September 2026
Creates a bar of
Action Points.
Has the parameters cost, length, and archangel.
cost and length are expected as integers. If neither are specified, one full AP will be displayed.
{{AP}}
If only cost is defined, that many full AP will be displayed.
{{AP|cost=3}}
If it is defined as 0, it will instead show one empty AP.
{{AP|cost=0}}
If only length is defined, that many empty AP will be displayed.
{{AP|length=5}}
If both cost and length are defined, then cost amount of full AP and length - cost amount of empty AP will be shown.
{{AP|cost=4|length=10}}
archangel turns any full AP purple if it is equal to yes.
{{AP|archangel=yes}}
