When adding a template with a white space you can see that after saving the whitespace is deleted (also on the wikieditor).
For example
Some text {{{1}}}
You can see that in the preview or in the rendered page the text contains the space, but not in the wikieditor