Template:Str endswith short

{{documentation|content=

The Template:Str_endswith_short compares parameter 1 to see if it ends with parameter 2, and if so then returns "yes" else nothing. Both strings are limited to the length for Template:Strlen_quick, typically 70 characters. However, {Str_endswith_short} runs with an expansion depth of only 7, compared to 18-20 levels for template {str_endswith}.

Performance considerations
To minimize the template expansion depth to 7 levels, {str_endswith_short} is calculating the string lengths by using Template:Strlen_quick, which supports a maximum of 70 characters, rather than Template:Str_len (maximum: 500). The template {str_endswith} has a depth of 18-20, depending on the lengths of the parameters. For more details, see: "wp:Exceeded template limits".