Parser functions/templates

This page demonstrates on how to use parser functions in templates

Go back to

#expr
The function {{#expr: is uncommonly seen in templates.

In Template:Age at Templates Wiki, is used:

Output:

{{#expr:{{CURRENTYEAR}}-{{{birth_year|1980}}}-1}}

Another example:

Output:

{{#expr:{{CURRENTYEAR}}-2000-1}} At Template:Year-Age at {{SITENAME}}

If I put the years:

{{Year-Age|2009|1994}}

It will display as:

{{Year-Age|2009|1994}}

#if

 * 1) if is the most used in templates.

One example:

It didn't included the other value.

#ifeq
Mostly. at The Sims Wiki, this was used to get the namespace the function is placed, and if the namespace is identical to the given.

For example: