Template:IfNotEmpty

From Puella Magi Wiki
Jump to navigation Jump to search

This provides a way to check if a value is empty without stripping whitespace from the "then" and "else" text.

Comparison:

  • {{IfNotEmpty|x| p | q }} gives " p "
  • {{IfNotEmpty|| p | q }} gives " q "
  • {{#if:x| p | q }} gives "p"
  • {{#if:| p | q }} gives "q"