Template:Wrapper/testcases
Appearance
| This is the template test cases page for the sandbox of Template:Wrapper. 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: |
Test 1 – no args (Expected: uncaught error; curly bracket jungle)
{{Wrapper}}
{{Wrapper}}
| This is a customized wrapper for the {{[[Template:{{{1}}}|{{{1}}}]]}} template, which means it is built upon the other template's code. Parameters from {{[[Template:{{{1}}}|{{{1}}}]]}} will only work here if they have been added to this template. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{[[Template:{{{1}}}|{{{1}}}]]}} template, which means it is built upon the other template's code. Parameters from {{[[Template:{{{1}}}|{{{1}}}]]}} will only work here if they have been added to this template. If you have questions, please ask at [[Template talk:{{{1}}}|the talk page]]. |
Test 2 – arg 1 =
Wikibreak (Expected: "Any field from..."){{Wrapper|Wikibreak}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. Parameters from {{Wikibreak}} will only work here if they have been added to this template. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. Parameters from {{Wikibreak}} will only work here if they have been added to this template. If you have questions, please ask at the talk page. |
Test 3a –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=yes}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, please ask at the talk page. |
Test 3b –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=y}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, please ask at the talk page. |
Test 3c –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=1}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, please ask at the talk page. |
Test 3d –
all (Expected: "Any field from..."){{Wrapper|Wikibreak|all=no}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. Parameters from {{Wikibreak}} will only work here if they have been added to this template. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it is built upon the other template's code. Parameters from {{Wikibreak}} will only work here if they have been added to this template. If you have questions, please ask at the talk page. |
Test 4a –
exclude (Expected: "Any field from <template-name> (except rev) ..."){{Wrapper|Sfnlink|exclude=rev}}
{{Wrapper}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. Parameters from {{Sfnlink}} (except rev) will only work here if they have been added to this template. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. Parameters from {{Sfnlink}} (except rev) will only work here if they have been added to this template. If you have questions, please ask at the talk page. |
Test 4b –
exclude (Expected: "All fields from <template-name> (except lang) ..."){{Wrapper|Sfnlink|exclude=lang}}
{{Wrapper}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. Parameters from {{Sfnlink}} (except lang) will only work here if they have been added to this template. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. Parameters from {{Sfnlink}} (except lang) will only work here if they have been added to this template. If you have questions, please ask at the talk page. |
Test 4c –
all, exclude (Expected: "All fields from <template-name> (rev and lang) ..."){{Wrapper|Sfnlink|all=1 |exclude=''rev'' and ''lang''}}
{{Wrapper}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. All parameters from {{Sfnlink}} (except rev and lang) will work here. |
{{Wrapper/sandbox}}
| This is a customized wrapper for the {{Sfnlink}} template, which means it is built upon the other template's code. All parameters from {{Sfnlink}} (except rev and lang) will work here. If you have questions, please ask at the talk page. |