Template:IfMatch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{essential}} |
{{essential}} |
||
==Usage Documentation== |
==Usage Documentation== |
||
This template will accept one variable which it will compare |
This template will accept one variable which it will compare to the second variable. If the first part if present in the second one, it will return "1". This allows loading of a delimited string of variables and comparing them to a single variable.<br /> |
||
It will accept up to 10 other values in order to remain backward compatable.<br /> |
It will accept up to 10 other values in order to remain backward compatable.<br /> |
||
<b>Note:</b> The match is case insensitive. |
<b>Note:</b> The match is case insensitive. |
||
Line 17: | Line 17: | ||
==Also See== |
==Also See== |
||
* [[Template:IfMatch2]] |
|||
* [[Template:IfAND]] |
* [[Template:IfAND]] |
||
* [[Template:IfTHEN]] |
* [[Template:IfTHEN]] |
Revision as of 00:17, 17 December 2013
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 to the second variable. If the first part if present in the second one, it will return "1". This allows loading of a delimited string of variables and comparing them to a single variable.
It will accept up to 10 other values in order to remain backward compatable.
Note: The match is case insensitive.
By specifying |true= and |false= a custom strings may be returned on match and no match.
Syntax
{{IfMatch | matchstring | string}} Additional options: |true= |false=