Template:Matches/doc
From Historical Hastings
| 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. |
TemplateData[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the [https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=Matches monthly error reporHatnotefor 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[edit]
{{matches|hello|hello}} →
{{matches|hello|goodbye}} →
{{matches|hello|hello|size=55}} →
{{matches|hello|goodbye|size=55}} → ![]()