Template:Ifsubst/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:Ifsubst.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Ifsubst.

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