TemplateCase – Template
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
Code | Result |
---|---|
{{TemplateCase|this is a template|this is -not- a template}} | this is a template |