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 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}}}]]. |
{{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 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. |
{{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 template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
{{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 template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
{{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 template is a customized wrapper for {{Wikibreak}}. All fields from {{Wikibreak}} will work here. Questions? Just ask at Template talk:Wikibreak. |
{{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 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. |
{{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 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. |
{{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 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. |
{{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 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. |
{{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. |