User:Crashaholic/ActionTemplate: Difference between revisions
Jump to navigation
Jump to search
Crashaholic (talk | contribs) (WIP) Tags: Mobile edit Mobile web edit |
Crashaholic (talk | contribs) (beeg chenge) |
||
Line 21: | Line 21: | ||
}}}} | }}}} | ||
{{trim|{{#if: {{{concentration|}}} | * {{Concentration}} | {{blank}}}}}} | {{trim|{{#if: {{{concentration|}}} | * {{Concentration}} | {{blank}}}}}} | ||
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} | {{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} | {{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} | {{trim|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} | {{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} | {{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{save|}}} | * {{SmallIcon|Save Throw Icons.png}}{{{save}}}| {{blank}}}}}} | {{trim|{{#if: {{{save|}}} | * {{SmallIcon|Save Throw Icons.png}}{{{save}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | {{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}} | ||
{{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | {{#if: {{{higherlevels|}}} | == At Higher Levels ==}} | ||
{{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}} }}}} | {{trim|{{#if: {{{higherlevels|}}} | {{{higherlevels}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{#if: {{{learns|}}} | == How to Learn ==}} | {{#if: {{{learns|}}} | == How to Learn ==}} | ||
{{trim|{{#if: {{{learns|}}} | {{{learns|}}}}}}} | {{trim|{{#if: {{{learns|}}} | {{{learns|}}}}}}} <!-- TODO: make this a bit smarter --> | ||
{{clear}} | {{clear}} | ||
Line 61: | Line 61: | ||
}} | }} | ||
</pre> | </pre> | ||
The following is a table to further explain what each parameter takes, and how to use them. | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
| Parameter Name | |||
| Description | |||
| Usage | |||
|- | |||
| {{C|description}} | |||
| The in-game description of the action. This description is NOT for SEO 'See: summary'. | |||
| <code>description = Lorem ipsum</code> | |||
|- | |||
| {{C|image}} | |||
| The image that will be used in the page's SEO and be the page's main image. | |||
| <code>image = Wiki_Link_To_Image_Here</code> | |||
|- | |||
| {{C|summary}} | |||
| The summary of the action. This will be used as the wiki's description as well as the SEO text. | |||
| <code>summary = Lorem Ipsum</code> | |||
|- | |||
| {{C|cost}} | |||
| The resource cost of the action. You can use the same parameters as with <code><nowiki>{{action}}</nowiki></code>, but you can add an additional resource to it as well. | |||
For example: | |||
* If a skill takes a <code><nowiki>{{action|bonus}}</nowiki></code> and a [[Battle Master|Superiority Die]] (D8): <code><nowiki>| cost = bonus,[[File:Superiority_Die_d8_Icon.png|25px]]</nowiki></code> | |||
** Result: <code>{{action|bonus}} + [[File:Superiority_Die_d8_Icon.png|25px]]</code> | |||
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code> | |||
** Result: <code>{{action}}</code> | |||
* If a skill takes just a class resource like 2{{User:Crashaholic/KiShort}}s: <code><nowiki>| cost = ,2{{User:Crashaholic/KiShort}}s</nowiki></code> | |||
** Result: <code>2{{User:Crashaholic/KiShort}}s</code> | |||
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/> | |||
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/> | |||
<code>cost = , (text)</code> | |||
|- | |||
| {{C|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. | |||
| <code>concentration = This action is a concentration!</code> | |||
<code>concentration=</code> | |||
|} | |||
=Example= | =Example= | ||
{{User:Crashaholic/ActionTemplate | {{User:Crashaholic/ActionTemplate |
Revision as of 12:20, 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 = }}
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. | 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:
Ki Points:
|
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
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