Template:Range

From Cormyrean Prophecies
Revision as of 20:45, 5 October 2015 by Psi (talk | contribs) (Новая страница: «<noinclude>This template takes the various spell (and spell-like ability) ranges and adds explicit distances. ---- </noinclude>{{ #ifeq: {{{1}}} | p | personal…»)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template takes the various spell (and spell-like ability) ranges and adds explicit distances.


{{

  1. ifeq: {{{1}}} | p | personal |{{
  2. ifeq: {{{1}}} | t | touch |{{
  3. ifeq: {{{1}}} | s | short (8 meters) |{{
  4. ifeq: {{{1}}} | m | medium (20 meters) |{{
  5. ifeq: {{{1}}} | l | long (40 meters) |{{
  6. ifeq: {{{1}}} |l*m| long (40 meters) medium (20 meters) |{{{1}}} }} }} }} }} }} }}

This template requires a single (unnamed) parameter, which should be "p", "t", "s", "m", or "l", indicating the range desired. Support for capitalized versions might be added later.

The parameter can also be "l*m", indicating that the in-game text says "long" but the actual range is medium.