Difference between revisions of "Template:Contains"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>category:String Templates‎'''This template tests whether the 2nd argument contains the 1st'''.<br/> <br/> Usage: :<nowiki>{{</nowiki>{{PAGENAME}}|needle|hayst...")
 
(Fix)
Line 3: Line 3:
 
Usage:
 
Usage:
 
:<nowiki>{{</nowiki>{{PAGENAME}}|needle|haystack}}<br/>
 
:<nowiki>{{</nowiki>{{PAGENAME}}|needle|haystack}}<br/>
</noinclude><includeonly>{{#pos:{{{2}}}|{{{1}}}}}}}</includeonly>
+
</noinclude><includeonly>{{#pos:{{{2|}}}|{{{1|}}}}}</includeonly>

Revision as of 16:41, 25 July 2014

This template tests whether the 2nd argument contains the 1st.

Usage:

{{Contains|needle|haystack}}