Template:Default

From Wiki
Jump to: navigation, search

The default template renders the first parameter if it is non-empty, otherwise it renders the second. For example:

{{default|{{#show:FooPage|?BarProperty}}|no such value}}

This template is more useful than the 'default' parameter to #show. The 'default' parameter only works when the page itself does not exist. If the page exists but the property is undefined, then an empty value is returned regardless.