Template:Ifsubst: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Amalthea
fix
Ookami (talk | contribs)
m 20 revisions imported
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{2|}}}|{{{1|}}} }}<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>

Latest revision as of 02:52, 3 September 2020