User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (changed how the cost can take an additional optional parameter) |
Crashaholic (talk | contribs) (WIP) Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{PageSeo | ||
{{PageSeo | |||
| description = {{{name|{{PAGENAME}}}}} {{{summary}}} | | description = {{{name|{{PAGENAME}}}}} {{{summary}}} | ||
| image = {{{image}}} | | image = {{{image}}} | ||
Line 6: | Line 5: | ||
__NOTOC__ | __NOTOC__ | ||
[[File:{{{image}}}|frameless|right]] | [[File:{{{image}}}|frameless|right]] | ||
{{{summary}}} | |||
== Description == | == Description == | ||
Line 13: | Line 12: | ||
== Properties == | == Properties == | ||
{{trim|{{#if: {{{cost|}}} | {{trim|{{#if: {{{cost|}}} | ||
|{{#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}}}}}} | ||
Line 24: | Line 23: | ||
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} | {{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} | ||
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} | {{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} | ||
{{trim|{{#if: {{{duration|}}} | * {{{duration}}}| {{blank}}}}}} | {{trim|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} | ||
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} | {{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} | ||
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} | {{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} | ||
Line 32: | Line 31: | ||
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | {{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | ||
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}} }}}} | {{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}} }}}} | ||
{{#if: {{{learns|}}} | == How to Learn ==}} | |||
{{trim|{{#if: {{{learns|}}} | {{{learns|}}}}}}} | |||
{{clear}} | {{clear}} | ||
{{#if: {{{notes|}}} | == Notes == }} | {{#if: {{{notes|}}} | == Notes == }} | ||
{{trim|{{#if: {{{notes|}}} | {{{notes}}}| {{blank}}}}}}</includeonly><noinclude> | {{trim|{{#if: {{{notes|}}} | {{{notes}}}| {{blank}}}}}}</includeonly><noinclude>This is a page to transclude to generate action pages. It is generally for pages that do not fit the [[Template:SpellPage | <pre>{{SpellPage}} Template</pre>]] | ||
This is a page to transclude to generate action pages. It is for pages that do not fit the [[Template:SpellPage | < | |||
If this is too egregious, do reach out to me on Discord and tell me if there are alternatives instead of using transclusion (which | 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). | ||
<!-- im just lazy and tired of copy pasting from other page sources, i just want to lazily type out something PLEASE--> | <!-- im just lazy and tired of copy pasting from other page sources, i just want to lazily type out something PLEASE--> | ||
Usage | =Usage= | ||
<pre> | <pre> | ||
{{User:Crashaholic/ActionTemplate | {{User:Crashaholic/ActionTemplate | ||
Line 55: | Line 55: | ||
| range = use {{Distance}} where possible, leave blank if none | | range = use {{Distance}} where possible, leave blank if none | ||
| aoe = use {{AOE}} where possible, leave blank if none | | aoe = use {{AOE}} where possible, leave blank if none | ||
| save = | | save = | ||
| additional = | | additional = | ||
| higherlevels = | | higherlevels = | ||
| notes = | | notes = | ||
}} | }} | ||
</pre> | </pre> | ||
=Example= | |||
{{User:Crashaholic/ActionTemplate | {{User:Crashaholic/ActionTemplate | ||
| description = abc | | description = abc | ||
Line 69: | Line 69: | ||
| damage = {{DamageInfo|1d4+1|Bludgeoning}} | | damage = {{DamageInfo|1d4+1|Bludgeoning}} | ||
| recharge = {{Recharge|Long Rest}} | | recharge = {{Recharge|Long Rest}} | ||
| duration = | | duration = Until Long Rest | ||
| save = DEX | | save = DEX | ||
| additional = * abcd | | additional = * abcd | ||
| higherlevels = go far | | higherlevels = go far | ||
| notes = bar | | notes = bar | ||
| learns = {{class|Monk}} 3 | |||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 01:58, 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 = action's in-game description here | image = file name here | summary = summary here (skill is foo that bar) | cost = cost of skill here (use {{action}} where possible, or otherwise whichever class-based resource is needed to use this action), leave blank if none | concentration = is concentration? put something here if it is, otherwise, leave blank | damage = {{DamageInfo}} for this info pls, leave blank if none | recharge = use {{Recharge}} where possible, leave blank if none | duration = use {{Duration}} where possible, leave blank if none | range = use {{Distance}} where possible, leave blank if none | aoe = use {{AOE}} where possible, leave blank if none | save = | additional = | higherlevels = | notes = }}
Example
fly you fools
Description
abc
Properties
Action + 2Use instead
s
- 1d4 + 1 (2~5) Bludgeoning
- Recharge: Long rest
- Duration: Until Long rest
- DEX
- abcd
At Higher Levels
go far
How to Learn
3
Notes
bar