Template:If: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
In many cases you may be able to use the basic #if parser function instead: | In many cases you may be able to use the basic #if parser function instead: | ||
:<nowiki>{{#if:test string|value if test string is not empty|value if test string is empty (or only white space)}}</nowiki> | :<nowiki>{{#if:test string|value if test string is not empty|value if test string is empty (or only white space)}}</nowiki>= | ||
:{{#if: test string|value if test string is not empty|value if test string is empty (or only white space)}} | :{{#if: test string|value if test string is not empty|value if test string is empty (or only white space)}} | ||
[[category:templates]]</noinclude> | [[category:templates]]</noinclude> |
Revision as of 17:10, 26 May 2021
See this page for usage.
In many cases you may be able to use the basic #if parser function instead:
- {{#if:test string|value if test string is not empty|value if test string is empty (or only white space)}}=
- value if test string is not empty