Template:Wrapper/testcases
| 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. |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.