Template:AP: Difference between revisions
added documentation |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
{{#if:{{{cost|}}}|{{#ifeq:{{{cost}}}|0|{{#if:{{{length|}}}||[[File:AP empty.png|link=AP|16px | -->{{#if:{{{cost|}}}|{{#ifeq:{{{cost}}}|0|{{#if:{{{length|}}}||[[File:AP empty.png|link=AP|16px]]}}|{{#ifeq:{{{archangel}}}|yes|{{#invoke:String|rep|[[File:AP archangel.png|link=AP|16px]]|{{{cost}}}}}|{{#invoke:String|rep|[[File:AP.png|link=AP|16px]]|{{{cost}}}}}}}}}|{{#if:{{{length|}}}||{{#ifeq:{{{archangel}}}|yes|[[File:AP archangel.png|link=AP|16px]]|[[File:AP.png|link=AP|16px]]}}}}}}<!-- | ||
-->{{#if:{{{length|}}}|{{#invoke:String|rep|[[File:AP empty.png|link=AP|16px | -->{{#if:{{{length|}}}|{{#invoke:String|rep|[[File:AP empty.png|link=AP|16px]]|{{#if:{{{cost|}}}|{{#expr: {{{length}}} - {{{cost}}}}}|{{{length}}}|}}|}}}}</includeonly><noinclude> | ||
Creates a bar of {{AP}} Action Points. | Creates a bar of {{AP}} Action Points. | ||
<br><br> | <br><br> | ||
Latest revision as of 12:39, 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}}
