Difference between revisions of "Template:Ifsubst/doc"

From blackwiki
Jump to navigation Jump to search
imported>EVula
imported>Amalthea
Line 17: Line 17:
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
 
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
 +
[[Category:If-then-else templates|{{PAGENAME}}]]
  
 
[[ja:Template:Ifsubst]]
 
[[ja:Template:Ifsubst]]
 
[[simple:Template:Ifsubst]]
 
[[simple:Template:Ifsubst]]
 
</includeonly>
 
</includeonly>

Revision as of 12:30, 28 June 2011

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:}}}ifsubst| yes | no }}

See also