Template:IfMatch2: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Created page with "<includeonly>{{#if:{{#pos:{{lc:{{{1}}}}}|{{lc:{{{2}}}}}}} {{#pos:{{lc:{{{1}}}}}|{{lc:{{{3}}}}}}}{{#pos:{{lc:{{{1}}}}}|{{lc:{{{4}}}}}}}{{#pos:{{lc:{{{1}}}}}|{{lc:{{{5}}}}}}}{{#...")
 
No edit summary
 
Line 2: Line 2:
}}</includeonly><noinclude>{{essential}}
}}</includeonly><noinclude>{{essential}}
==Usage Documentation==
==Usage Documentation==
This template will accept one variable which it will compare up to 10 second to. If any of the following variables are present in the first one, it will return "1". This allows loading of a delimited string of variables and comparing them to a list of variables.<br />
This template will accept one variable which it will compare up to 10 others to. If any of the following variables are present in the first one, it will return "1". This allows loading of a delimited string of variables and comparing them to a list of variables.<br />
<b>Note:</b> The match is case insensitive.
<b>Note:</b> The match is case insensitive.



Latest revision as of 18:21, 16 June 2014

Essential Template
  • This template is so essential that it has been protected to prevent tampering.
  • If you have suggestions to extend its function or have observed bugs, please post to the discussion page.


Usage Documentation

This template will accept one variable which it will compare up to 10 others to. If any of the following variables are present in the first one, it will return "1". This allows loading of a delimited string of variables and comparing them to a list of variables.
Note: The match is case insensitive.

By specifying |true= and |false= a custom strings may be returned on match and no match.

Syntax

{{IfMatch2 | string | match1 | match2 | etc. }}

Additional options:
|true=
|false=

Also See