Template:Deps/loop

Documentation
This is a subtemplate of Template:Deps; it tests input for string matches like "BN" and "!SF" and outputs text without mouse-over tooltips, e.g. "BM " or "!SF", respectively.

The "TEMPLATE ERROR" thing at the top of this template page is just the default output, when invalid or null input is given.

This is done as a subtemplate so that the parent template can call this repeatedly as a subroutine for multiple parameters.