Difference between revisions of "Template:Matches/doc"
Jump to navigation
Jump to search
imported>SimonTrew (case-sensitive) |
imported>SimonTrew (→Parameters: size parameter) |
||
| Line 6: | Line 6: | ||
== Parameters == | == Parameters == | ||
{{tlx|matches|''first-value''|''second-value''|4=''size=nn''}} | {{tlx|matches|''first-value''|''second-value''|4=''size=nn''}} | ||
| + | |||
| + | The ''size'' parameter is the graphic size. If omitted, it defaults to 10. | ||
== Examples == | == Examples == | ||
Revision as of 10:18, 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}}
The size parameter is the graphic size. If omitted, it defaults to 10.
Examples
{{matches|hello|hello}} →
{{matches|hello|goodbye}} →
- REDIRECT Template:Xmark
|
{{matches|hello|hello|size=55}} →
{{matches|hello|goodbye|size=55}} →
- REDIRECT Template:Xmark
|