Template:Has

From Wiki
Jump to: navigation, search

The has template searches a comma-separated value list (first parameter) for a single value (second parameter). It returns a positive number if the value is found, otherwise it returns zero. For example, the following returns a positive number:

{{has|red,yellow,blue|yellow}}