434
editsAd placeholder
User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Save improved, added bullet points
Crashaholic (talk | contribs) m (NoSeo feels redundant i think, cant think of a situation where its needed.) Tags: Mobile edit Mobile web edit |
Crashaholic (talk | contribs) (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|}}} | ||
{{#vardefine: saveicon | }} {{#vardefine: savetext | }} | |||
{{#vardefine: savetype | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}}} | |||
| strength | {{#vardefine: saverslt | {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|1}} | ""}}}} | ||
| dexterity | | {{#switch: {{lc:{{#var: savetype}}}} | ||
| constitution | | strength | str = {{#vardefine: saveicon | Strength}} {{#vardefine: savetext | STR}} | ||
| intelligence | | dexterity | dex = {{#vardefine: saveicon | Dexterity}} {{#vardefine: savetext | DEX}} | ||
| wisdom | | constitution | con | = {{#vardefine: saveicon | Constitution}} {{#vardefine: savetext | CON}} | ||
| charisma | Charisma | | | intelligence | int | = {{#vardefine: saveicon | Intelligence}} {{#vardefine: savetext | INT}} | ||
| wisdom | wis = {{#vardefine: saveicon | Wisdom}} {{#vardefine: savetext | WIS}} | |||
| charisma | cha = {{#vardefine: saveicon | Charisma}} {{#vardefine: savetext | CHA}} | |||
| | | #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}} | ||
}} | }} |