Template:Ifsubst: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Alfakim
No edit summary
meta>Alfakim
TEST
Line 1: Line 1:
{{{{{1|}}}#if:{{<includeonly>subst</includeonly>:empty template|foo}}|{{{else|}}}|{{{then|}}}}}<noinclude>'''When <code>subst:</code>ed, this template returns parameter <code>then</code>, else parameter <code>else</code>.
<noinclude><code></noinclude>{{#{{{d2|i}}}f:{{<include{{{d1|only}}}>subst</include{{{d1|only}}}>:empty template|.}}|{{{else|}}}|{{{then|}}}}}<noinclude></code></noinclude>
 
{| class="wikitable"
|-
! Code !! Return !! Unparsed return
|-
| <pre>{{ifsubst|then=foo|else=bar}}</pre> || {{ifsubst|then=foo|else=bar}} || <code><nowiki>{{ifsubst|then=foo|else=bar}}</nowiki></code>
|-
| <pre>{{subst:ifsubst|then=foo|else=bar}}</pre> || {{{{{1|}}}#if:|bar|foo}} || <code><nowiki>{{{{{1|}}}#if:|bar|foo}}</nowiki></code>
|-
| <pre>{{subst:ifsubst|then=foo|else=bar|subst:}}</pre> || foo || <code><nowiki>foo</nowiki></code>
|}
</noinclude>

Revision as of 16:44, 21 August 2006