Template:Contains: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}<noinclude> {{PAGENAME}}</noinclude>")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}<noinclude>
<includeonly>{{#invoke:contains|value|haystack={{{1|needle in a haystack}}}|needle={{{2|needle}}}}}</includeonly><noinclude>
==Usage==
<nowiki>{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}</nowiki>
:{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}
<nowiki>{{#ifeq:{{contains|chocolate|cocoa}}|1|print if true|print if false}}</nowiki>
:{{#ifeq:{{contains|chocolate|cocoa}}|1|print if true|print if false}}


[[Category: Help templates|{{PAGENAME}}]]</noinclude>
[[Category: Help templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:42, 2 December 2023

Usage[edit | hide | hide all]

{{#ifeq:{{contains|chocolate|choco}}|1|print if true|print if false}}

print if true

{{#ifeq:{{contains|chocolate|cocoa}}|1|print if true|print if false}}

print if false