Template:Ifsubst: Difference between revisions

From Frontierpedia, the Microsoft Agent encyclopedia
en>Amalthea
(fix)
en>Amalthea
(move doc to subpage)
Line 1: Line 1:
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{2|}}}|{{{1|}}} }}<noinclude>
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{2|}}}|{{{1|}}} }}<noinclude>
{{Documentation|content=
{{Documentation}}
 
===Usage===
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}}]]
 
}}
</noinclude>
</noinclude>

Revision as of 10:07, 29 April 2010