Difference between revisions of "Template:Matches"
Jump to navigation
Jump to search
imported>SimonTrew (→top) |
imported>SimonTrew (→top: -erroneous error handling) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#ifeq:{{{1| | + | <includeonly>{{#ifeq:{{{1|}}}|{{{2|}}}|{{tick|{{{size|10}}}}}|{{cross|{{{size|10}}}}}}}</includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:18, 14 November 2015
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Matches
Invokes [[:Template:tick]] if the two parameters match lexically, [[:Template:cross]] otherwise. Quick and easy, for use in template testcases. The test is case-sensitive, it uses <code>#ifeq:</code>.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| first-value | 1 | First of two strings to compare | String | required |
| second-value | 2 | Second of two strings to compare | String | required |
| size | size | Size of the tick or cross images
| Number | optional |
Examples
{{matches|hello|hello}} →
{{matches|hello|goodbye}} →
- REDIRECT Template:Xmark
|
{{matches|hello|hello|size=55}} →
{{matches|hello|goodbye|size=55}} →
- REDIRECT Template:Xmark
|
| The above documentation is transcluded from Template:Matches/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |