haystack requiredThe value to classify. Its type is what the command tests.
test1 requiredA type name to test the haystack against. The first type that matches wins. One of: longid, shortid, mail, signed, number, positive. An unknown name never matches.
text1 requiredThe text returned when test1 matches the haystack. Inside it _#1 stands for the tested value and _#2 for the matched type name.
... optionalMore type:text pairs (test2:text2, test3:text3, ...), tested left to right until one matches. Optional.
else_text optionalText returned when no type matched. Optional - omit it to return an empty string.
{iftype:d41d8cd98f00b204e9800998ecf8427e:longid:valid long id:not a long id}
{iftype:42:longid:valid long id:not a long id}
{iftype:editor@example.org:mail:looks like an email:not an email}
{iftype:42:positive:positive integer:not positive}
{iftype:0:positive:positive integer:not positive}
{iftype:0:number:non-negative integer:positive:positive integer:other}
{iftype:-5:number:non-negative:signed:any integer:neither}
{iftype:-5:signed:value _#1 is _#2:number:non-negative:}
{iftype:42:shortid:short id _#1:number:plain number:}
{iftype:hello:longid:is long id:shortid:is short id:unknown}
[{iftype:hello:longid:is long id}]