Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ifsubst/doc: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 7: Line 7:


The {{para|demo}} parameter can be used for testing the template. Set {{para|demo|yes}} to always display the ''yes'' text, {{para|demo|no}} to always display the ''no'' text, or {{para|demo|<nowiki>{{{demo|}}}</nowiki>}} to pass through the value from the parent template.
The {{para|demo}} parameter can be used for testing the template. Set {{para|demo|yes}} to always display the ''yes'' text, {{para|demo|no}} to always display the ''no'' text, or {{para|demo|<nowiki>{{{demo|}}}</nowiki>}} to pass through the value from the parent template.
{{List of subst helper templates}}


<includeonly>{{Sandbox other|
<includeonly>{{Sandbox other|

Latest revision as of 06:21, 14 April 2025

This page uses Creative Commons Licensed content from Wikipedia (view authors).

{Documentation subpage}}

Usage

Meta template that returns the first parameter if evaluated during substitution, and the second parameter if evaluated during transclusion.
Note that this template must be used in safesubst mode to work properly:

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

The |demo= parameter can be used for testing the template. Set |demo=yes to always display the yes text, |demo=no to always display the no text, or |demo={{{demo|}}} to pass through the value from the parent template.


Contents