More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{trigger|}}} | '''Trigger:''' {{{trigger}}}<br /> }}{{#if: {{{requirements|}}} | '''Requirements:''' {{{requirements}}}<br /> }}<br />{{{1}}}<br />{{#if: {{{crit success|}}} | <br />'''Critical Success:''' {{{crit success}}} }}{{#if: {{{success|}}} | <br />'''Success:''' {{{success}}} }}{{#if: {{{fail|}}} | <br />'''Failure:''' {{{fail}}} }}{{#if: {{{crit fail|}}} | <br />'''Critical Failure:''' {{{crit fail}}} }} |
<includeonly>{{#if: {{{trigger|}}} | '''Trigger:''' {{{trigger}}}[[Category:Triggered Actions]]<br /> }}{{#if: {{{requirements|}}} | '''Requirements:''' {{{requirements}}}[[Category:Actions with Requirements]]<br /> }}<br />{{{1}}}<br />{{#if: {{{crit success|}}} | <br />'''Critical Success:''' {{{crit success}}} }}{{#if: {{{success|}}} | <br />'''Success:''' {{{success}}} }}{{#if: {{{fail|}}} | <br />'''Failure:''' {{{fail}}} }}{{#if: {{{crit fail|}}} | <br />'''Critical Failure:''' {{{crit fail}}} }} |
||
{{#if: {{{special|}}} | [[Category:Specialty Actions]] | [[Category:Basic Actions]] }} |
{{#if: {{{special|}}} | [[Category:Specialty Actions]] | [[Category:Basic Actions]] }} |
||
{{#if: {{{move|}}} | [[Category:Movement Actions]] }} |
{{#if: {{{move|}}} | [[Category:Movement Actions]] }} |
||
Line 6: | Line 6: | ||
{{#if: {{{concentrate|}}} | [[Category:Concentration Actions]] }} |
{{#if: {{{concentrate|}}} | [[Category:Concentration Actions]] }} |
||
{{#if: {{{secret|}}} | [[Category:Secret Actions]] }} |
{{#if: {{{secret|}}} | [[Category:Secret Actions]] }} |
||
{{#if: {{{re|}}} | [[Category:Reactions]] | [[Category:Normal Actions]] }} |
|||
{{#switch: {{{num|1}}} |
{{#switch: {{{num|1}}} |
||
| 0 = [[Category:Free Actions]] |
| 0 = {{#if: {{{re|}}} | [[Category:Free Reactions]] | [[Category:Free Actions]] }} |
||
| 1 = [[Category:Single Actions]] |
| 1 = {{#if: {{{re|}}} | [[Category:Non-free Reactions]] | [[Category:Single Actions]][[Category:Non-free Actions]] }} |
||
| 2 = [[Category:Double Actions]] |
| 2 = {{#if: {{{re|}}} | [[Category:Non-free Reactions]] | [[Category:Double Actions]][[Category:Non-free Actions]] }} |
||
| 3 = [[Category:Triple Actions]] |
| 3 = {{#if: {{{re|}}} | [[Category:Non-free Reactions]] | [[Category:Triple Actions]][[Category:Non-free Actions]] }} |
||
| |
| #default = {{#if: {{{re|}}} | [[Category:Non-free Reactions]] | [[Category:Single Actions]][[Category:Non-free Actions]] }} |
||
| fre = [[Category:Free Reactions]] |
|||
| #default = [[Category:Single Actions]] |
|||
}} |
}} |
||
[[Category:Actions]]</includeonly> |
[[Category:Actions]]</includeonly><noinclude> |
||
== Template Frontend == |
|||
This template is used to format and categorize actions based on their parameters. It provides flexibility for defining detailed action information, such as success outcomes and specific characteristics. |
|||
=== Parameters === |
|||
* <code>1</code>: string (required) |
|||
*: The main description or content of the action. |
|||
* <code>trigger</code>: string (optional) |
|||
*: The condition or event that triggers the action. When provided, the action is categorized as a [[:Category:Triggered Actions|Triggered Action]]. |
|||
* <code>requirements</code>: string (optional) |
|||
*: The prerequisites or conditions required to perform the action. When provided, the action is categorized as a [[:Category:Actions with Requirements|Required Action]]. |
|||
* <code>crit success</code>: string (optional) |
|||
*: The outcome or effect of the action when it critically succeeds. |
|||
* <code>success</code>: string (optional) |
|||
*: The outcome or effect of the action when it succeeds. |
|||
* <code>fail</code>: string (optional) |
|||
*: The outcome or effect of the action when it fails. |
|||
* <code>crit fail</code>: string (optional) |
|||
*: The outcome or effect of the action when it critically fails. |
|||
* <code>special</code>: boolean (optional) |
|||
*: Determines if the action is a [[:Category:Specialty Actions|Specialty Action]]. If omitted, the action is categorized as a [[:Category:Basic Actions|Basic Action]]. |
|||
* <code>move</code>: boolean (optional) |
|||
*: Determines if the action is categorized as a [[:Category:Movement Actions|Movement Action]]. |
|||
* <code>attack</code>: boolean (optional) |
|||
*: Determines if the action is categorized as an [[:Category:Attack Actions|Attack Action]]. |
|||
* <code>manipulate</code>: boolean (optional) |
|||
*: Determines if the action is categorized as a [[:Category:Manipulation Actions|Manipulation Action]]. |
|||
* <code>concentrate</code>: boolean (optional) |
|||
*: Determines if the action is categorized as a [[:Category:Concentration Actions|Concentration Action]]. |
|||
* <code>secret</code>: boolean (optional) |
|||
*: Determines if the action is categorized as a [[:Category:Secret Actions|Secret Action]]. |
|||
* <code>re</code>: boolean (optional, defaults to <code>0</code>) |
|||
*: Indicates whether the action is a reaction. When true, the action is categorized as a [[:Category:Reactions|Reaction]]. Otherwise, it is categorized as a [[:Category:Normal Actions|Normal Action]]. |
|||
* <code>num</code>: integer (optional, defaults to <code>1</code>) |
|||
*: Specifies the number of actions this action consumes. Values of 0, 1, 2, or 3 determine whether the action is categorized as a Free, Single, Double, or Triple Action, respectively. |
|||
== Template Backend == |
|||
This template uses conditional logic to assign categories based on provided parameters. It ensures that each action is correctly described and categorized for easy navigation and filtering on the wiki. |
|||
</noinclude> |
Revision as of 23:36, 24 December 2024
Template Frontend
This template is used to format and categorize actions based on their parameters. It provides flexibility for defining detailed action information, such as success outcomes and specific characteristics.
Parameters
1
: string (required)- The main description or content of the action.
trigger
: string (optional)- The condition or event that triggers the action. When provided, the action is categorized as a Triggered Action.
requirements
: string (optional)- The prerequisites or conditions required to perform the action. When provided, the action is categorized as a Required Action.
crit success
: string (optional)- The outcome or effect of the action when it critically succeeds.
success
: string (optional)- The outcome or effect of the action when it succeeds.
fail
: string (optional)- The outcome or effect of the action when it fails.
crit fail
: string (optional)- The outcome or effect of the action when it critically fails.
special
: boolean (optional)- Determines if the action is a Specialty Action. If omitted, the action is categorized as a Basic Action.
move
: boolean (optional)- Determines if the action is categorized as a Movement Action.
attack
: boolean (optional)- Determines if the action is categorized as an Attack Action.
manipulate
: boolean (optional)- Determines if the action is categorized as a Manipulation Action.
concentrate
: boolean (optional)- Determines if the action is categorized as a Concentration Action.
secret
: boolean (optional)- Determines if the action is categorized as a Secret Action.
re
: boolean (optional, defaults to0
)- Indicates whether the action is a reaction. When true, the action is categorized as a Reaction. Otherwise, it is categorized as a Normal Action.
num
: integer (optional, defaults to1
)- Specifies the number of actions this action consumes. Values of 0, 1, 2, or 3 determine whether the action is categorized as a Free, Single, Double, or Triple Action, respectively.
Template Backend
This template uses conditional logic to assign categories based on provided parameters. It ensures that each action is correctly described and categorized for easy navigation and filtering on the wiki.