Difference between revisions of "Template:Eval/testcases"
Jump to navigation
Jump to search
imported>Andrybak (improve test cases) |
imported>Andrybak (replace) |
||
| Line 1: | Line 1: | ||
{{Testcases notice <!--|toc=on-->}} | {{Testcases notice <!--|toc=on-->}} | ||
| − | {{Eval | + | Template {{tl|Eval}} must always be [[WP:SUBST|substituted]]. To test the sandbox, copy-paste the code below to the section "Test result". |
| − | + | <syntaxhighlight lang="moin"> | |
| − | + | {{subst:Eval|Replace|bar bar Foo bar baz bar{{!}}bar{{!}}xyzzy{{!}}count{{=}}2}} | |
| − | {{Eval|Replace| | + | ---- |
| − | + | {{subst:Eval/sandbox|Replace|bar bar Foo bar baz bar{{!}}bar{{!}}xyzzy{{!}}count{{=}}2}} | |
| − | {{ | + | </syntaxhighlight> |
| − | |||
| − | {{Eval | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | </ | ||
| − | |||
| + | == Test result == | ||
| + | {{Replace{{!}}bar bar Foo bar baz bar{{!}}bar{{!}}xyzzy{{!}}count{{=}}2}} | ||
| + | ---- | ||
| + | <!-- | ||
| + | -- | ||
| + | -- Add your experimental template code here. | ||
| + | -- | ||
| + | --> | ||
| + | {{!}} | ||
<!-- | <!-- | ||
| − | + | -- | |
| − | + | -- Don't experiment beyond here. | |
| − | + | -- | |
| − | + | --> | |
Latest revision as of 18:51, 29 September 2020
| This is the template test cases page for the sandbox of Template:Eval. Script error: No such module "Purge". 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 with these links: |
Template {{Eval}} must always be substituted. To test the sandbox, copy-paste the code below to the section "Test result".
{{subst:Eval|Replace|bar bar Foo bar baz bar{{!}}bar{{!}}xyzzy{{!}}count{{=}}2}}
----
{{subst:Eval/sandbox|Replace|bar bar Foo bar baz bar{{!}}bar{{!}}xyzzy{{!}}count{{=}}2}}
Test result
{{Replace|bar bar Foo bar baz bar|bar|xyzzy|count=2}}
|