Difference between revisions of "Template:Ifsubst"
From Self-sufficiency
m (Robot: moving pages out of redirected category) |
(New, more useful version, using safesubst.) |
||
Line 1: | Line 1: | ||
− | + | {{ {{{|safesubst:}}}#ifeq:{{ {{{|safesubst:}}}NAMESPACE}}|{{NAMESPACE}}|{{{1|}}}|{{{2|}}} }}<noinclude> | |
− | + | {{Documentation|content= | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ===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--> | <!--Categories--> | ||
− | [[Category:Wikipedia | + | [[Category:Wikipedia metatemplates|{{PAGENAME}}]] |
− | + | }} | |
− | + | ||
</noinclude> | </noinclude> |
Revision as of 11:05, 29 April 2010
[edit]
Documentation