Open main menu
Documentation

This template is a variation of Template:Ifeq. Because of the limitation mentioned below that other template is preferable. This template Ifeqnw is just a demo.

ExamplesEdit

  • {{ifeqnw|x|x| p | q }} gives " p "
  • {{ifeqnw|x|y| p | q }} gives " q "

LimitationEdit

The expanded wikitext contains dummy nowiki tags. This affects any subsequent string comparison:

  • {{#ifeq:{{ifeqnw|x|x|p}}|p|1|0}} gives 0

Compare:

  • {{#ifeq:{{ifeq|x|x|p}}|p|1|0}} gives 1

Also the tags clutter the wikitext resulting from substitution:

  • {{subst:ifeqnw|x|x|p} gives the wikitext <nowiki/>p<nowiki/>