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's 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, ask at [[Template talk:{{{1}}}|the talk page]]! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{[[Template:{{{1}}}|{{{1}}}]]}}. Any field from {{[[Template:{{{1}}}|{{{1}}}]]}} can work so long as it is added to this template first. Questions? Just ask at [[Template talk:{{{1}}}]]. |
Test 2 – arg 1 =
Wikibreak (Expected: "Any field from..."){{Wrapper|Wikibreak}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it's 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, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Wikibreak}}. Any field from {{Wikibreak}} can work so long as it is added to this template first. Questions? Just ask at Template talk:Wikibreak. |
Test 3a –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=yes}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it's built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
Test 3b –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=y}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it's built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
Test 3c –
all (Expected: "All fields from..."){{Wrapper|Wikibreak|all=1}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it's built upon the other template's code. All parameters from {{Wikibreak}} will work here. If you have questions, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
Test 3d –
all (Expected: "Any field from..."){{Wrapper|Wikibreak|all=no}}
{{Wrapper}}
| This is a customized wrapper for the {{Wikibreak}} template, which means it's 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, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Wikibreak}}. Any field from {{Wikibreak}} can work so long as it is added to this template first. Questions? Just ask at Template talk:Wikibreak. |
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's 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, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Sfnlink}}. Any field from {{Sfnlink}} (except rev) can work so long as it is added to this template first. Questions? Just ask at Template talk:Sfnlink. |
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's 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, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Sfnlink}}. Any field from {{Sfnlink}} (except lang) can work so long as it is added to this template first. Questions? Just ask at Template talk:Sfnlink. |
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's built upon the other template's code. All parameters from {{Sfnlink}} (except rev and lang) will work here. If you have questions, ask at the talk page! |
{{Wrapper/sandbox}}
| This template is a customized wrapper for {{Sfnlink}}. All fields from {{Sfnlink}} (except rev and lang) will work here. Questions? Just ask at Template talk:Sfnlink. |