Template:Ifeq/doc: Difference between revisions

From The Pokemon Insurgence Wiki
(Testing if)
 
m (Only way I see for it to update everytime is to have links to the main page end with '?action=purge', which is a bit excessive just for a shiny chance.)
 
(9 intermediate revisions by 2 users not shown)
Line 2: Line 2:
=== Usage ===
=== Usage ===
*<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|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}</nowiki> gives "{{ifeq|"{{Rand|2}}"|"0"| [[File:151s.png|50px|]] | [[File:151.png|50px|]] }}"
{{Rand|8192}}                                                 
 
 


<includeonly>
[[Category:Parameter selection templates]]




<includeonly>
[[Category:Parameter selection templates]]
[[ar:قالب:Ifeq]]
[[bn:টেমপ্লেট:Ifeq]]
[[ro:Format:Ifeq]]
[[simple:Template:Ifeq]]
[[sl:Predloga:Ifeq]]
[[uk:Шаблон:Ifeq]]
</includeonly>
</includeonly>

Latest revision as of 19:07, 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 "

5304