Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Ifsubst]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
This template is used change template content if it is substituted.
Type {{Ifsubst|param1|param2}} somewhere.
Sample output
{{Ifsubst|foo1|foo2}} gives...
foo2 if transcluded and
foo1 if substituted
Community content is available under CC-BY-SA unless otherwise noted.