Template:Ifsubst: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>David Kernow
category, some rephrasing, internal layout
meta>RussBot
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 07: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