Template:Ifeq/doc: Difference between revisions

From The Pokemon Insurgence Wiki
(Using this as the page to test shiny sprite thingy.)
mNo edit summary
Line 3: Line 3:
*<nowiki>{{ifeq|"abc"|"abc"| 1 | 0 }}</nowiki> gives "{{ifeq|"abc"|"abc"| 1 | 0 }}"
*<nowiki>{{ifeq|"abc"|"abc"| 1 | 0 }}</nowiki> gives "{{ifeq|"abc"|"abc"| 1 | 0 }}"
*<nowiki>{{ifeq|"{{Rand|1}}"|"1"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|1}}"|"1"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
*<nowiki>{{ifeq|"{{Rand|1}}"|"1"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|1}}"|"1"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
*<nowiki>{{ifeq|"{{Rand|1}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|1}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
*<nowiki>{{ifeq|"{{Rand|5}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|5}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"


<includeonly>
<includeonly>

Revision as of 05:12, 30 January 2015

This template is like #ifeq, but does not trim the "then" and "else" part.

Usage

  • {{ifeq|"abc"|"abc"| 1 | 0 }} gives " 1 "
  • {{ifeq|"{{Rand|1}}"|"1"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }} gives " 151.png "
  • {{ifeq|"{{Rand|5}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }} gives " 151.png "