Jump to content

Template:Null/doc

From Wikisource

Usage

[edit]

The template just passes the parameter unharmed. This is useful when you wish to either use a certain template or none at all in another template, depending on parameters.

Example

[edit]
{{{{#switch:{{{float|}}}|left=float-left|null}}|{{{1}}}}}


If float=left, you get:

{{float left|{{{1}}}}}

Else you get:

{{null|{{{1}}}}}

Which is equivalent to just {{{1}}} (i.e. no template at all)