Template:Rawif

Usage

This is a special #if  statement that preserves spaces and newlines in the 'then' and 'else'. Useful in conditional tables or any other situation where leading and trailing space and newline characters are important.

Example with rawif:

Example with #if (note how loss of newlines creates a big mess):

Note that rawif does not have a  in front and has a   instead of. Also, unlike #if, all  must be escaped using.