Template:Die/parser

From Astrea Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Die/parser/doc.

Parses input for Template:Die in relatively simple and clean language, taking one parameter per face instead of what would otherwise require 4 each.

Usage

{{Die/parser|<input>}} Input should be in the form of:
<number> <effect name> / <number> <effect name>

  • Spaces are important, and should be preserved as shown above.
  • If the face has only one action, the slash and everything following it should be omitted.
  • <effect name> must be typed exactly as it appears Category:Action icons.
  • Number can be omitted if not relevant for an action.

Examples

The following are all examples of valid input:

  • 3 Purify
  • 7 Area Purify / 2 Area Corrupt
  • Copycat / 1 Draw
  • 4 Corrupt
  • Incorruptible
  • MISS