Template:Echo switch

From Wikipedia, the free encyclopedia

{{{2}}}

[edit] Usage


{{echo switch| value1 | value2 | value3}}

If the first value isn't null then the second parameter will be displayed. Otherwhise the third parameter will diplayed.

This is handy in a template if a certain parameter is given or not:


{{start of template
   ....
   {{echo switch| {{{param|}}} | value2 | value3}}
   ....
end of template}}
 

[edit] See also