Template:Ifsubst/doc
Jump to navigation
Jump to search
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.