Difference between revisions of "Template:Matches"

From blackwiki
Jump to navigation Jump to search
imported>SimonTrew
(make some doc...)
imported>SimonTrew
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1}}}|{{{2}}}|{{tick|{{{size|10}}}}}|{{cross|{{{size|10}}}}}}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{{1|{{error|first-value not specified}}}}}|{{{2|{{error|second-value not specified}}}}}|{{tick|{{{size|10}}}}}|{{cross|{{{size|10}}}}}}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 10:26, 14 November 2015

Template documentation[view] [edit] [history] [purge]

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>.

Template parameters

ParameterDescriptionTypeStatus
first-value1

First of two strings to compare

Stringrequired
second-value2

Second of two strings to compare

Stringrequired
sizesize

Size of the tick or cross images

Default
10
Numberoptional

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