Template:PageOrDefault
From Maths
Description
PageOrDefault evaluates to the transclusion of a page - if it exists - otherwise it returns the default.
Examples
- {{PageOrDefault|Existing page|default}} evaluates to the contents of Existing page as if one wrote {{:Existing page}}
- {{PageOrDefault|Non-existent page|default}} evaluates to default
Parameters
- 1 or page for the page to check existence of
- 2 or default for the other case