Template:Ifsubst: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mxn
+vi: (noinclude)
meta>Alfakim
No edit summary
Line 1: Line 1:
{{#{{<includeonly>subst:</includeonly>#if:||i}}f:{{<include{{<includeonly>subst:</includeonly>#if:||only}}>subst:</include{{<includeonly>subst:</includeonly>#if:||only}}>Empty template|.}}|<!--else-->{{{else|{{{2|}}}}}}|<!--then-->{{{then|{{{1|}}}}}}}}<noinclude><pre>{{subst:ifsubst|then|else}}</pre>
{{#{{<includeonly>subst:</includeonly>#if:||i}}f:{{<include{{<includeonly>subst:</includeonly>#if:||only}}>subst:</include{{<includeonly>subst:</includeonly>#if:||only}}>Empty template|.}}|<!--else-->{{{else|{{{2|}}}}}}|<!--then-->{{{then|{{{1|}}}}}}}}<noinclude><pre>{{subst:ifsubst|then|else}}</pre>


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. Note that this template in itself must actually be substituted into your new one, becoming part of its code.


With the additional code, if your template is substituted, your "then" text will appear, else your "else" text.
[[Category:Wikipedia special effects templates|Ifsubst]]
[[Category:Wikipedia special effects templates|Ifsubst]]


[[vi:Tiêu bản:Ifsubst]]
[[vi:Tiêu bản:Ifsubst]]
</noinclude>
</noinclude>

Revision as of 23:07, 11 November 2006

{{subst:ifsubst|then|else}}

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

With the additional code, if your template is substituted, your "then" text will appear, else your "else" text.

vi:Tiêu bản:Ifsubst