Template:If: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
m (add category)
 
(3 intermediate revisions by one other user not shown)
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:Text templates]]</noinclude>

Latest revision as of 22:26, 8 December 2023


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