Template:Contains: Difference between revisions
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> |