Template:AoE: Difference between revisions

From Cormyrean Prophecies
(Новая страница: «<noinclude>This template takes the various descriptions of sizes of areas of effect and adds explicit sizes. ---- </noinclude>{{ #ifeq: {{{1}}} | small | sma…»)
 
m (Защищена страница «Шаблон:AoE» ([Редактирование=Разрешено только администраторам] (бессрочно) [Переименование=Разрешено только админис…)
(No difference)

Revision as of 17:39, 20 August 2016

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


{{

  1. ifeq: {{{1}}} | small | small (1.67 meter radius) |{{
  2. ifeq: {{{1}}} | medium | medium (3.33 meter radius) |{{
  3. ifeq: {{{1}}} | large | large (5 meter radius) |{{
  4. ifeq: {{{1}}} | huge | huge (6.67 meter radius) |{{
  5. ifeq: {{{1}}} | gargantuan | gargantuan (8.33 meter radius) |{{
  6. ifeq: {{{1}}} | colossal | colossal (10 meter radius) |{{
  7. ifeq: {{{1}}} | spellcone | {{#if: | {{{2}}} |10}} meter cone |{{
  8. ifeq: {{{1}}} | aura | {{#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.