Template:Pos/sandbox

Wrapper for the string function #pos: that returns an error value if the search text exceeds the maximum length.

Usage
search text
 * error
 * result if the search text exceeds the maximum length (default blank)