Template:Range: Difference between revisions

From Cormyrean Prophecies
(Новая страница: «<noinclude>This template takes the various spell (and spell-like ability) ranges and adds explicit distances. ---- </noinclude>{{ #ifeq: {{{1}}} | p | personal…»)
 
No edit summary
Line 2: Line 2:
----
----
</noinclude>{{
</noinclude>{{
#ifeq: {{{1}}} | p | personal              |{{
#ifeq: {{{1}}} | p | на себя                |{{
#ifeq: {{{1}}} | t | touch                  |{{
#ifeq: {{{1}}} | t | прикосновение          |{{
#ifeq: {{{1}}} | s | short (8 [[meter]]s)   |{{
#ifeq: {{{1}}} | s | малая(8 метров)       |{{
#ifeq: {{{1}}} | m | medium (20 [[meter]]s) |{{
#ifeq: {{{1}}} | m | средняя (20 метров)   |{{
#ifeq: {{{1}}} | l | long (40 [[meter]]s)   |{{
#ifeq: {{{1}}} | l | высокая (40 метров)   |{{
#ifeq: {{{1}}} |l*m| <del>long (40 meters)</del> medium (20 [[meter]]s) |{{{1}}} }} }} }} }} }} }}<noinclude>
#ifeq: {{{1}}} |l*m| <del>long (40 meters)</del> medium (20 [[meter]]s) |{{{1}}} }} }} }} }} }} }}<noinclude>
----
----

Revision as of 21:12, 5 October 2015

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


{{

  1. ifeq: {{{1}}} | p | на себя |{{
  2. ifeq: {{{1}}} | t | прикосновение |{{
  3. ifeq: {{{1}}} | s | малая(8 метров) |{{
  4. ifeq: {{{1}}} | m | средняя (20 метров) |{{
  5. ifeq: {{{1}}} | l | высокая (40 метров) |{{
  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.