Template:IfMatch: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Protected "Template:IfMatch" [edit=sysop:move=sysop])
No edit summary
Line 9: Line 9:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#switch: {{lc:{{{1}}}
{{#switch: {{lc:{{{1}}} }}
| {{lc:{{{2}}}}}
| {{lc:{{{2}}}}}
| {{lc:{{{3}}}}}
| {{lc:{{{3}}}}}

Revision as of 00:40, 18 April 2008

This template will accept one variable which it will compare to up to 10 other variables. If any of them match the first, it will return "1".
Note: The match is case insensitive.

{{IfMatch | matchstring | variable1 | variable2 | .... | variable10}}