Template:Ifsubst

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

Description

This branches depending on whether the template is being substituted.

One practical application is for substituting the stylesheets of templates using TemplateStyles. A simpler inline style could be used instead, to reduce the bulk of the code generated.

Usage

{{ safesubst:<noinclude/>ifsubst| yes | no }}

Where yes is code to run if substituted and no is code to run if not substituted.

Further reading