Topic cluster
Template filter
A named transformation applied to a value inside a template expression.
View topic page30 items
The remaining keywords do not make a useful further split. All matching documentation is listed below.
default
Provide an alternative value in case a value has a falsy value (0, false , undefined or empty string).
default_if_none
Provide an alternative value in case a value is undefined.
default_if_undefined
Provide an alternative value in case a value is undefined.
eq_day
Tests if the value is a date and equal to the argument. The value and the argument must be a tuple of the format {Y,M,D} or {{Y,M,D},{H,I,S}} .
if
Selects an argument depending on a condition.
if_undefined
Tests whether a value is undefined, returning the given argument.
in_future
Tests if a date is in the future.
in_past
Tests if a date is in the past.
is_a
Filter a list of resource ids on category, or test if a single resource id belongs to a category.
is_defined
Tests if a value is defined.
is_even
Test if an integer value is even:
is_list
Test if a value is a list:
is_not_a
is_not_a mirrors filter#is_a. It is particularly useful when iterating over a category and excluding members of a sub-category (iterating over all images associated with a page except images in the thumbnail category).
is_number
Test if a value is a number (integer or floating point):
is_rtl
Check if the given language is a rtl or ltr language.
is_site_url
Test if the given URL is a url for the current site.
is_undefined
Tests if a value is undefined.
is_user
Test if a resource is a user.
match
Match a value with a regular expression.
member
Finds a value in a list.
ne_day
Tests if two dates are not equal.
survey_any_correct_answer
Determine if any answer of a question was correct. Used for showing results of thurstone test questions.
survey_any_wrong_answer
Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.
survey_is_history_back
Test whether a survey respondent may return to the previous page in a history.
survey_is_pagebreak_submit
Check if a list of questions contains a pagebreak block with an unconditional submit.
survey_is_save_intermediate
Check if the given survey is configured to save intermediate results. Always returns a boolean value.
survey_is_stop
Check if there is a ‘stop’ question in list of (survey) blocks
survey_is_submit
Check if the questions end with a question type that is a submit button.
to_boolean
Convert the input to a boolean value.
yesno
Show a boolean value as a text.