Mal:Ifsubst

Fra wikisida.no
Sideversjon per 16. feb. 2007 kl. 11:03 av nb>David Kernow~nowiki (category, some rephrasing, internal layout)
Hopp til navigering Hopp til søk
{{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.