Vorlage:Ifsubst: Unterschied zwischen den Versionen

K
20 Versionen von wikivoyage:Vorlage:Ifsubst importiert
imported>Amalthea
(New, more useful version, using safesubst.)
K (20 Versionen von wikivoyage:Vorlage:Ifsubst importiert)
 
(14 dazwischenliegende Versionen von 8 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{1|}}}|{{{2|}}} }}<noinclude>
{{ {{{|safesubst:}}}#if:{{{demo|}}}
{{Documentation|content=
|{{ {{{|safesubst:}}}#ifeq:{{{demo}}} |no
 
|{{{no|{{{2|}}}}}}
===Usage===
|{{{yes|{{{1|}}}}}}
Meta template that returns the first parameter if evaluated during substitution, and the second parameter if evaluated during transclusion.<br>Note that this template must be used in [[meta:Help:Safesubst|safesubst]] mode to work properly:
 
:<code><nowiki>{{ {{{|safesubst:}}}ifsubst| yes | no }}</nowiki></code>
 
<!--Categories-->
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
 
}}
}}
|{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}
|{{{no|{{{2|}}}}}}
|{{{yes|{{{1|}}}}}}
}}}}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>