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...")
 
m (Text replacement - "String Templates" to "String manipulation templates")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>[[category:String Templates‎]]'''This template tests whether the 2nd argument contains the 1st'''.<br/>
+
<noinclude>[[category:String manipulation templates‎]]'''This template tests whether the 2nd argument contains the 1st'''.<br/>
 
<br/>
 
<br/>
 
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>

Latest revision as of 17:18, 16 April 2015

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

Usage:

{{Contains|needle|haystack}}