Template:If/doc

With this template the parser functions of the ParserFunctions collection with names starting with "#if" can be used in a way such that they do not strip spaces and newlines from the "then" and "else" part. Spaces still do not affect the outcome of the condition.

Usage

 * gives "". Notice the pair of vertical bars surrounding the empty first parameter.
 * gives " p "
 * gives ""
 * gives ""
 * gives ""

Compare:
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""

For full substitution, use e.g. expr. If the condition contains a parser function or template etc., that should be substituted too. Optionally the "then" or "else" part can also be substituted.