Template:PageOrDefault

From Maths
Jump to: navigation, search

Description

PageOrDefault evaluates to the transclusion of a page - if it exists - otherwise it returns the default.

Examples

  1. {{PageOrDefault|Existing page|default}} evaluates to the contents of Existing page as if one wrote {{:Existing page}}
  2. {{PageOrDefault|Non-existent page|default}} evaluates to default

Parameters

  1. 1 or page for the page to check existence of
  2. 2 or default for the other case