Anonymous user
Template:Ifsubst: Difference between revisions
no edit summary
(+vi: (noinclude)) |
No edit summary |
||
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>
Add the above code to a template of yours to give it <code>ifsubst</code> functionality
With the additional code, if your template is substituted, your "then" text will appear, else your "else" text.
[[Category:Wikipedia special effects templates|Ifsubst]]
|