User:Pee Tern/Sandbox/Template/Searchlist

Usage: {{Searchlist |value|list|value in list|value not in list}}
Parameters:
  1 == the value being searched for in the list
  2 == a list of values, built using {{Buildlist}}
  3 == the value to be returned if the search value is found in the list
  4 == the value to be returned if the search value is not found in the list

{{User:Pee Tern/Sandbox/Template/verbatim |{{{2}}}}} = {{{3|}}}

1:

2:

3:

4: