Template:Matches/doc

From blackwiki
< Template:Matches
Revision as of 10:18, 14 November 2015 by imported>SimonTrew (→‎Parameters: image size)
Jump to navigation Jump to search

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 image size. If omitted, it defaults to 10.

Examples

{{matches|hello|hello}}☑Y {{matches|hello|goodbye}}

  1. REDIRECT Template:Xmark


{{matches|hello|hello|size=55}}☑Y {{matches|hello|goodbye|size=55}}

  1. REDIRECT Template:Xmark