Template:AoE

From Cormyrean Prophecies
Revision as of 00:18, 4 April 2020 by Psi (talk | contribs)

This template takes the various descriptions of sizes of areas of effect and adds explicit sizes.


{{

  1. ifeq: {{{1}}} | малая | small (радиус 1.67 метра) |{{
  2. ifeq: {{{1}}} | средний | medium (радиус 3.33 метра) |{{
  3. ifeq: {{{1}}} | большой | large (радиус 5 метров) |{{
  4. ifeq: {{{1}}} | огромный | huge (радиус 6.67 метров) |{{
  5. ifeq: {{{1}}} | гигантский | gargantuan (радиус 8.33 метров) |{{
  6. ifeq: {{{1}}} | колоссальный | colossal (радиус 10 метров) |{{
  7. ifeq: {{{1}}} | конус | {{#if: | {{{2}}} |10}} meter cone |{{
  8. ifeq: {{{1}}} | аура | {{#if: | {{{2}}} | 4}} meters around creature |{{{1}}} }} }} }} }} }} }} }} }}

This template requires a single (unnamed) parameter, which could be "small", "medium", "large", "huge", "gargantuan", "colossal", "spellcone", or "aura" indicating the size of the area of effect. Other values (e.g. "single" or "single creature") are permitted, but will not be formatted.

In addition, spell cones and auras allow a second (unnamed) parameter to override the default length of 10 (cones) or 4 (auras) meters.