Difference between revisions of "Template:Ifsubst"

From Self-sufficiency
Jump to: navigation, search
(finalise)
(+vi: (noinclude))
Line 3: Line 3:
 
Add the above code to a template of yours to give it <code>ifsubst</code> functionality. If your template is substituted, your "then" text will appear, else your "else" text. Note that this template in itself must be substituted into your new one.
 
Add the above code to a template of yours to give it <code>ifsubst</code> functionality. If your template is substituted, your "then" text will appear, else your "else" text. Note that this template in itself must be substituted into your new one.
  
[[Category:Wikipedia special effects templates|Ifsubst]]</noinclude>
+
[[Category:Wikipedia special effects templates|Ifsubst]]
 +
 
 +
[[vi:Tiêu bản:Ifsubst]]
 +
</noinclude>

Revision as of 00:02, 12 November 2006

{{subst:ifsubst|then|else}}

Add the above code to a template of yours to give it ifsubst functionality. If your template is substituted, your "then" text will appear, else your "else" text. Note that this template in itself must be substituted into your new one.vi:Tiêu bản:Ifsubst