Template:HasStr/doc
Jump to navigation
Jump to search
- Description
- Alternative named string matching search.
- Easier, and clearer code, when used in other templates.
- Syntax
{{hasStr|full-String|substring}}
- Output
- 1 if a match was found.
- <empty string> if no match was found.
- Note
- The <empty string> output allows for simpler True/False-checking for multiple cases at the same time.
- Example:
{{#if: {{hasStr|.1.}}{{hasStr|.2.}}...{{hasStr|.n.}} | T(at least one true case) | F(all false) }}