Template:Void/doc

This template returns the empty string.

Usage
Parser functions for branching trim the result. To be able to specify a result starting and/or ending with newlines and/or spaces, the possible results specified in the call of such a branching function (then-part, else-part, switch values) are template names, and the parser function call forms the title part inside a pair of double braces. Unnamed parameters in this outer call are not trimmed. If there is a then-part but no else-part, or in the case of #switch without default, the corresponding template name has to return the empty string regardless of any parameters specified in the call. This is achieved by using this template.

The template is used in:
 * Template:Xpd/w - for an if-then construct without else-part; used in all expansion demo templates
 * Template:Nrow - for optionally returning a newline at the end; used in Template:Menu

Alternatives
It is also possible to use parser function  (the empty string for the main namespace). However, any parameters of  contribute to the post-expand include size, while this is not the case with this template.

is equivalent with provided that is equivalent with , e.g. because template A does not use a parameter 2, or because it treats empty and undefined the same.

Examples

 * using  gives "".
 * using  gives "".
 * using  gives "".

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

Comments
The template can be used for adding comments in the wiktext, without affecting the rendering. In the usual way it can be controlled whether on substitution of a template containing a call of void it is substituted (i.e., the comment is removed) or not. See also Help:Substitution and Help:Comment tags.