More actions
This is the documentation page for Module:String2
Module:String2/doc
From Wikipedia, see:
This module provides enhanced string parsing functions used to implement templates like {{Meta/MissingContentCheck}}.
Usage
- Returns the index of the first positional parameter pattern which matches, or an empty string if there are no matches for use with #if:
{{#invoke:String2|matchAny|source=bar foo|foo|bar}}
returns2
{{#invoke:String2|matchAny|source=foo|bar|baz}}
returns""