Zum Inhalt springen

Vorlage:Ifsubst: Unterschied zwischen den Versionen

K
20 Versionen von wikivoyage:Vorlage:Ifsubst importiert
(finalise)
K (20 Versionen von wikivoyage:Vorlage:Ifsubst importiert)
 
(19 dazwischenliegende Versionen von 12 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 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>
{{ {{{|safesubst:}}}#if:{{{demo|}}}
 
|{{ {{{|safesubst:}}}#ifeq:{{{demo}}} |no
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.
|{{{no|{{{2|}}}}}}
 
|{{{yes|{{{1|}}}}}}
[[Category:Wikipedia special effects templates|Ifsubst]]</noinclude>
}}
|{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}
|{{{no|{{{2|}}}}}}
|{{{yes|{{{1|}}}}}}
}}}}<noinclude>
{{Documentation}}
</noinclude>