Checks if the string 1 is empty (after the usual template trimming). If it is returns string 2 (trimmed) else returns 1 (trimmed) (or parameter 3 if supplied).

Usage

{{Str if empty |1= |2= |3= }}

Template parameters

ParameterDescriptionDefaultStatus
1String to be checkedparameter 2optional
2String to be returned if empty"empty" (without quotes)optional
3String to be returned if not emptyparameter 1optional

Additional information

The template is intended to be used in the following namespaces: the Template namespace

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.