Template:Ifeq/doc: Difference between revisions

From The Pokemon Insurgence Wiki
mNo edit summary
mNo edit summary
Line 5: Line 5:
*<nowiki>{{ifeq|"{{Rand|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
*<nowiki>{{ifeq|"{{Rand|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
   
   
{{#expr: {{Rand|8192}}}}                                                
{{Rand|8192|{{#expr: {{#time: U}} mod 99}}}}                                                  
    
    
    
    

Revision as of 19:01, 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|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }} gives " 151s.png "

2452