Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Action

Template page
Revision as of 23:36, 24 December 2024 by Gpe (talk | contribs)

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 to 0)
    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 to 1)
    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.