Template:Ifnull

From Natural History of Southeast Alaska
Jump to: navigation, search

Template to simplify using the #ifeq: construct to include a statement only if a certain variable is defined.

{{Ifnull
|TestVar=
|Statement=
}}
{{#ifeq:{{{1|}}}|{{ns:0}}|{{ns:0}}|{{{2}}}}}
</noinclude>
<includeonly>{{#if:{{{1}}}|{{{2|}}}}}{{{{#if:{{{1}}}|1x|ns:0}}|}}</includeonly>