Extension:IfTemplates

The IfTemplates extension adds a parser function that tests if a given page contains only template calls. This can have a number of uses. For example, in your wiki you may be able to make the assumption that any pages that only contain template calls are stubs with no real content.

Usage
The extension's usage is similar to the #ifexist parser function. It takes an input string, interprets it as a page title, and returns one of two values depending on whether or not the page contains only templates.


 *  

The function evaluates to true if the page exists & contains only templates. Otherwise it evaluates to false. Note that if the page exists but contains no template calls, it evaluates to false.

Warning: This is an expensive parser function and may not function correctly if called too many times on one page. Please see this page for more information.