Translations:Help:Extension:ParserFunctions/259/en

To prevent the trimming of then and else parts, see m:Template:If. Some people achieve this by using &lt; nowiki &gt; &lt; /nowiki &gt; instead of spaces.