TemplateCase – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Adds content depending on the calling page's template.

This template is used on these pages.

Usage

{{TemplateCase|ifTemplate|ifNotTemplate}}

  • ifTemplate: content if the page is in the Template: namespace
  • ifNotTemplate: content if the page is not in the Template: namespace
Examples
Code Result
{{TemplateCase|this is a template|this is -not- a template}} this is a template