Template talk:Ifeq demo

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Leading and trailing spaces are ignored. Underscores are not ignored.

abc-abc-1
ab c-ab_c-0
abc -abc-1
 abc-abc-1
_abc-abc-0
abc_-abc-0

Further demo of #ifeq, not using Template:Ifeq demo:

Unnamed parameters of predefined templates do not implicitly have the names 1,2, etc.:

  • {{ #ifeq: abc | abc | 2=abce | 0 }} gives 2=abce
  • {{ #ifeq: abc | 1=abc | 1 | 0 }} gives 0
  • {{ #ifeq: abc | 2=abc | 1 | 0 }} gives 0