Ad placeholder

User:Crashaholic/ActionTemplate: Difference between revisions

Jump to navigation Jump to search
Save improved, added bullet points
m (NoSeo feels redundant i think, cant think of a situation where its needed.)
Tags: Mobile edit Mobile web edit
(Save improved, added bullet points)
Line 14: Line 14:
     |{{#if: {{#pos: {{{cost|}}}|,}}
     |{{#if: {{#pos: {{{cost|}}}|,}}
         |{{#if: {{trim|{{#explode: {{{cost|}}}|,|0}}}}
         |{{#if: {{trim|{{#explode: {{{cost|}}}|,|0}}}}
        | {{InfoBlob|{{action|{{#explode: {{{cost|}}}|,|0}}}} + {{#explode: {{{cost|}}}|,|1}}}}
        | *{{InfoBlob|{{action|{{#explode: {{{cost|}}}|,|0}}}} + {{#explode: {{{cost|}}}|,|1}}}}
| {{InfoBlob|{{#explode: {{{cost|}}}|,|1}}}}
| *{{InfoBlob|{{#explode: {{{cost|}}}|,|1}}}}
}}
}}
|{{InfoBlob|{{action|{{#explode: {{{cost}}}|,|0}}}}}}
|*{{InfoBlob|{{action|{{#explode: {{{cost}}}|,|0}}}}}}
     }}| {{blank}}
     }}| {{blank}}
}}}}
}}}}
{{trim|{{#if: {{{concentration|}}} | * {{Concentration}} | {{blank}}}}}}
{{trim|{{#if: {{{concentration|}}} |*{{Concentration}} | {{blank}}}}}}
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{damage|}}} |*{{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} |*{{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{trim|
{{#if: {{{duration|}}}
{{#if: {{{duration|}}}
|{{#ifeq:{{{duration|}}}| LR
|{{#ifeq:{{{duration|}}}| LR
|* {{Duration|Until Long Rest}}
|*{{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} |Perm
|{{#ifeq: {{{duration|}}} |Perm
|* {{Duration|Permanent}}
|*{{Duration|Permanent}}
|* {{Duration|{{{duration}}}}}
|*{{Duration|{{{duration}}}}}
}}
}}
}}
}}
Line 35: Line 35:
}}
}}
}}
}}
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{range|}}} |*{{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} |*{{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{trim|
{{#if: {{{save|}}}
{{#if: {{{save|}}}
| * {{SmallIcon|Saving Throw Icons.png}} {{#switch: {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}
        {{#vardefine: saveicon | }} {{#vardefine: savetext | }}
<!-- wait this copy pasted thing looks bad and can be improved -->
{{#vardefine: savetype | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}}}
| strength | Strength | str | STR = [[Saving Throw|STR Save]]
{{#vardefine: saverslt | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|1}} | ""}}}}
| dexterity | Dexterity | dex | DEX = [[Saving Throw|DEX Save]]
| {{#switch: {{lc:{{#var: savetype}}}}
| constitution | Constitution | con | CON = [[Saving Throw|CON Save]]
| strength | str =  {{#vardefine: saveicon | Strength}} {{#vardefine: savetext | STR}}
| intelligence | Intelligence | int | INT = [[Saving Throw|INT Save]]
| dexterity | dex = {{#vardefine: saveicon | Dexterity}} {{#vardefine: savetext | DEX}}
| wisdom | Wisdom | wis | WIS = [[Saving Throw|WIS Save]]
| constitution | con | = {{#vardefine: saveicon | Constitution}} {{#vardefine: savetext | CON}}
| charisma | Charisma | cha | CHA = [[Saving Throw|CHA Save]]  
| intelligence | int | = {{#vardefine: saveicon | Intelligence}} {{#vardefine: savetext | INT}}
| #default = *[[Saving Throw]]  
| wisdom | wis = {{#vardefine: saveicon | Wisdom}} {{#vardefine: savetext | WIS}}
}}{{#if: {{#pos:{{{save|}}}|,}}
| charisma | cha  = {{#vardefine: saveicon | Charisma}} {{#vardefine: savetext | CHA}}
|   (On Save: {{#explode:{{{save|}}}|,|1}})
| #default = {{#vardefine: saveicon |Alert}} {{#vardefine: savetext | EDITOR SHOULD CHECK TEMPLATE}}
}}*{{SmallIcon|Saving Throw Icons.png}} [[File:{{#var: saveicon}} icon.png|frameless|25px|{{#var: saveicon}}]][[{{#var: saveicon}}|{{#var: savetext}}]] [[Saving Throw|Save]] {{#if: {{#pos:{{{save|}}}|,}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
}}| {{blank}}
}}| {{blank}}
}}
}}

Navigation menu