Difference between revisions of "Template:Matches/doc"
Jump to navigation
Jump to search
imported>SimonTrew (Basic doc) |
imported>SimonTrew (case-sensitive) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | Produces a {{tlx|tick}} if the two parameters match lexically, a {{tlx|cross}} otherwise. Quick and easy, for use in template testcases. | + | Produces a {{tlx|tick}} if the two parameters match lexically, a {{tlx|cross}} otherwise. Quick and easy, for use in template testcases. The test is case-sensitive, it uses <code>#ifeq:</code>. |
== Parameters == | == Parameters == | ||
Revision as of 10:16, 14 November 2015
| This is a documentation subpage for Template:Matches. It contains usage information, categories and other content that is not part of the original template page. |
Produces a {{tick}} if the two parameters match lexically, a {{cross}} otherwise. Quick and easy, for use in template testcases. The test is case-sensitive, it uses #ifeq:.
Parameters
{{matches|first-value|second-value|size=nn}}
Examples
{{matches|hello|hello}} →
{{matches|hello|goodbye}} →
- REDIRECT Template:Xmark
|
{{matches|hello|hello|size=55}} →
{{matches|hello|goodbye|size=55}} →
- REDIRECT Template:Xmark
|