Difference between revisions of "Template:Ifsubst"

From Self-sufficiency
Jump to: navigation, search
(category, some rephrasing, internal layout)
m (Robot: moving pages out of redirected category)
Line 17: Line 17:
  
 
<!--Categories-->
 
<!--Categories-->
[[Category:Function templates|{{PAGENAME}}]]
+
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
  
 
<!--Other languages-->
 
<!--Other languages-->
 
[[vi:Tiêu bản:Ifsubst]]
 
[[vi:Tiêu bản:Ifsubst]]
 
</noinclude>
 
</noinclude>

Revision as of 09:26, 1 September 2008

{{subst:ifsubst|then|else}}

Add the above code to a template to give it ifsubst functionality. Note that this template in itself must actually be substituted into your new one, becoming part of its code.

When the template to which this code has been added is then substituted, the "then" text will appear, else the "else" text.vi:Tiêu bản:Ifsubst