ಟೆಂಪ್ಲೇಟು:Null/doc
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Null. It contains usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
Usage[ಸಂಪಾದಿಸಿ]
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[ಸಂಪಾದಿಸಿ]
{{{{#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)