Template:Ifsubst/testcases
This is the template test cases page for the sandbox of Template:Ifsubst. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
{{ ifsubst/sandbox | yes | no }}
Script error: No such module "Is subst".
{{ ifsubst/sandbox | yes | no | demo=no}}
Script error: No such module "Is subst".
{{ ifsubst/sandbox | yes | no | demo=yes}}
Script error: No such module "Is subst".
{{ ifsubst/sandbox | yes | no | demo=}}
Script error: No such module "Is subst".
{{ subst:ifsubst/sandbox | yes | no }}
yes
{{ subst:ifsubst/sandbox | yes | no |demo=no}}
yes
{{ subst:ifsubst/sandbox | yes | no |demo=yes}}
This call will return "yes" when substituted and "no" when transcluded.
{{ subst:ifsubst/sandbox | yes | no |demo=}}
yes
{{ ifsubst | yes | no }}
no
{{ ifsubst | yes | no | demo=no}}
no
{{ ifsubst | yes | no | demo=yes}}
yes
{{ ifsubst | yes | no | demo=}}
no
{{ subst:ifsubst | yes | no }}
yes
{{ subst:ifsubst | yes | no |demo=no}}
no
{{ subst:ifsubst | yes | no |demo=yes}}
yes
{{ subst:ifsubst | yes | no |demo=}}
yes