TemplateCase – Template

From Bohemia Interactive Community
Revision as of 10:33, 16 November 2021 by Lou Montana (talk | contribs) (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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