Mal:Ifsubst: Forskjell mellom sideversjoner

Fra wikisida.no
Hopp til navigering Hopp til søk
category, some rephrasing, internal layout
m Robot: moving pages out of redirected category
Linje 17: Linje 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>

Sideversjonen fra 1. sep. 2008 kl. 07:26

{{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.