Template:Ifsubst

From Wikivoyage
Jump to navigation Jump to search
[view] [edit] [history] [purge] Template-info.svg Template documentation

Usage[edit]

Meta template that returns the first parameter if evaluated during substitution, and the second parameter if evaluated during transclusion. This is suitable for the template or part of its code that you don't want to make it substituted.
Note that this template need to be used in safesubst mode to work properly:

{{ {{{|safesubst:}}}ifsubst| yes | no }}