User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) m (minor) |
Crashaholic (talk | contribs) (made two params smarter...-ish) |
||
Line 23: | Line 23: | ||
{{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|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} | {{trim| | ||
{{#if: {{{duration|}}} | |||
|{{#ifeq:{{{duration|}}}| LR | |||
|* {{Duration|Until Long Rest}} | |||
|{{#ifeq: {{{duration|}}} |Perm | |||
|* {{Duration|Permanent}} | |||
|* {{Duration|{{{duration}}}}} | |||
}} | |||
}} | |||
|{{blank}} | |||
}} | |||
}} | |||
{{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|{{#if: {{{save|}}} | * {{SmallIcon| | {{trim| | ||
{{#if: {{{save|}}} | |||
| * {{SmallIcon|Saving Throw Icons.png}} {{#switch: {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}} | |||
| strength | Strength | str | STR = [[Saving Throw|STR Save]] | |||
| dexterity | Dexterity | dex | DEX = [[Saving Throw|DEX Save]] | |||
| constitution | Constitution | con | CON = [[Saving Throw|CON Save]] | |||
| intelligence | Intelligence | int | INT = [[Saving Throw|INT Save]] | |||
| wisdom | Wisdom | wis | WIS = [[Saving Throw|WIS Save]] | |||
| charisma | Charisma | cha | CHA = [[Saving Throw|CHA Save]] | |||
| #default = *[[Saving Throw]] | |||
}}{{#if: {{#pos:{{{save|}}}|,}} | |||
| (On Save: {{#explode:{{{save|}}}|,|1}}) | |||
}}| {{blank}} | |||
}} | |||
}} | |||
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | {{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | ||
Line 67: | Line 92: | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
|- | |- | ||
! Parameter Name | |||
! Description | |||
! Usage | |||
|- | |- | ||
| {{C|description}} | | {{C|description}} | ||
Line 90: | Line 115: | ||
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code> | * If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code> | ||
** Result: <code>{{action}}</code> | ** Result: <code>{{action}}</code> | ||
* If a skill takes just a class resource like 2{{User: | * If a skill takes just a class resource like 2{{User:Tc/Ki}}s: <code><nowiki>| cost = ,2{{User:Tc/Ki}}s</nowiki></code> | ||
** Result: <code>2{{User: | ** Result: <code>2{{User:Tc/Ki}}s</code> | ||
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/> | | <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/> | ||
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/> | <code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/> | ||
Line 103: | Line 128: | ||
=Example= | =Example= | ||
<pre>{{User:Crashaholic/ActionTemplate | |||
| description = abc | |||
| image = Fly Icon.png | |||
| summary = fly you fools | |||
| cost = action, 2{{User:Tc/Ki}}s | |||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | |||
| recharge = {{Recharge|Long Rest}} | |||
| duration = LR | |||
| save = DEX | |||
| additional = * abcd | |||
| higherlevels = go far | |||
| notes = bar | |||
| learns = {{class|Monk}} 3 | |||
}} | |||
</pre> | |||
{{User:Crashaholic/ActionTemplate | {{User:Crashaholic/ActionTemplate | ||
| description = abc | | description = abc | ||
Line 110: | Line 150: | ||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | | damage = {{DamageInfo|1d4+1|Bludgeoning}} | ||
| recharge = {{Recharge|Long Rest}} | | recharge = {{Recharge|Long Rest}} | ||
| duration = | | duration = LR | ||
| save = DEX | | save = DEX | ||
| additional = * abcd | | additional = * abcd |
Revision as of 15:07, 14 August 2023
This is a page to transclude to generate action pages. It is generally for pages that do not fit the {{SpellPage}} Template
If this is too egregious, do reach out to me on Discord and tell me if there are alternatives instead of using transclusion (which I'm trying to use for custom templates).
Usage
{{User:Crashaholic/ActionTemplate | description = | image = | summary = | cost = | concentration = | damage = | recharge = | duration = | range = | aoe = | save = | additional = | higherlevels = | learns = | notes = }}
The following is a table to further explain what each parameter takes, and how to use them.
Parameter Name | Description | Usage |
---|---|---|
description
|
The in-game description of the action. This description is NOT for SEO 'See: summary'. | description = Lorem ipsum
|
image
|
The image that will be used in the page's SEO and be the page's main image. IF THIS IS LEFT EMPTY, WILL BE USED INSTEAD! |
image = Wiki_Link_To_Image_Here
|
summary
|
The summary of the action. This will be used as the wiki's description as well as the SEO text. | summary = Lorem Ipsum
|
cost
|
The resource cost of the action. You can use the same parameters as with {{action}} , but you can add an additional resource to it as well.
For example:
|
cost = ({{action}} parameters), (text)
|
concentration
|
If this skill is a concentration, type something here. Can be any value you want. Otherwise, leave it blank or delete the field entirely. | concentration = This action is a concentration!
|
Example
{{User:Crashaholic/ActionTemplate | description = abc | image = Fly Icon.png | summary = fly you fools | cost = action, 2{{User:Tc/Ki}}s | damage = {{DamageInfo|1d4+1|Bludgeoning}} | recharge = {{Recharge|Long Rest}} | duration = LR | save = DEX | additional = * abcd | higherlevels = go far | notes = bar | learns = {{class|Monk}} 3 }}
fly you fools
Description
abc
Properties
Action + 2Ki Points
- 1d4 + 1 (2~5) Bludgeoning
- Recharge: Long rest
- Duration: Until Long rest
- abcd
At Higher Levels
go far
How to Learn
3
Notes
bar