Module:Params/testcases/tmaps sandbox/doc
This test template allows to check the behaviour of all the mapping_* and renaming_* class of modifiers.
Usage
This template is designed to be used with month names as values for its parameters. For instance,
{{module:params/testcases/tmaps sandbox|January|February|March|April|curry=December}}
generates
| Modifier and arguments | Result |
|---|---|
...|mapping_by_calling|module:params/testcases/tdummy echo sb|let|foo|bar|2|hello|world|...
|
1 → [1=January][2=hello][3=world][foo=bar] 2 → [1=February][2=hello][3=world][foo=bar] 3 → [1=March][2=hello][3=world][foo=bar] 4 → [1=April][2=hello][3=world][foo=bar] curry → [1=December][2=hello][3=world][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_and_values|let|foo|bar|2|hello|world|...
|
1 → [1=1][2=January][3=hello][4=world][foo=bar] 2 → [1=2][2=February][3=hello][4=world][foo=bar] 3 → [1=3][2=March][3=hello][4=world][foo=bar] 4 → [1=4][2=April][3=hello][4=world][foo=bar] curry → [1=curry][2=December][3=hello][4=world][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|values_and_names|let|foo|bar|2|hello|world|...
|
1 → [1=January][2=1][3=hello][4=world][foo=bar] 2 → [1=February][2=2][3=hello][4=world][foo=bar] 3 → [1=March][2=3][3=hello][4=world][foo=bar] 4 → [1=April][2=4][3=hello][4=world][foo=bar] curry → [1=December][2=curry][3=hello][4=world][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_only|let|foo|bar|2|hello|world|...
|
1 → [1=1][2=hello][3=world][foo=bar] 2 → [1=2][2=hello][3=world][foo=bar] 3 → [1=3][2=hello][3=world][foo=bar] 4 → [1=4][2=hello][3=world][foo=bar] curry → [1=curry][2=hello][3=world][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][my_name=1][my_value=January][foo=bar] 2 → [1=hello][2=world][my_name=2][my_value=February][foo=bar] 3 → [1=hello][2=world][my_name=3][my_value=March][foo=bar] 4 → [1=hello][2=world][my_name=4][my_value=April][foo=bar] curry → [1=hello][2=world][my_name=curry][my_value=December][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_only_as|my_name|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][my_name=1][foo=bar] 2 → [1=hello][2=world][my_name=2][foo=bar] 3 → [1=hello][2=world][my_name=3][foo=bar] 4 → [1=hello][2=world][my_name=4][foo=bar] curry → [1=hello][2=world][my_name=curry][foo=bar] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|values_only_as|my_value|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][foo=bar][my_value=January] 2 → [1=hello][2=world][foo=bar][my_value=February] 3 → [1=hello][2=world][foo=bar][my_value=March] 4 → [1=hello][2=world][foo=bar][my_value=April] curry → [1=hello][2=world][foo=bar][my_value=December] |
...|mapping_by_calling|module:params/testcases/tdummy echo sb|blindly|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][foo=bar] 2 → [1=hello][2=world][foo=bar] 3 → [1=hello][2=world][foo=bar] 4 → [1=hello][2=world][foo=bar] curry → [1=hello][2=world][foo=bar] |
| Modifier and arguments | Result |
|---|---|
...|renaming_by_calling|module:params/testcases/tdummy echo sb|let|foo|bar|2|hello|world|...
|
[1=1][2=hello][3=world][foo=bar] → January [1=2][2=hello][3=world][foo=bar] → February [1=3][2=hello][3=world][foo=bar] → March [1=4][2=hello][3=world][foo=bar] → April [1=curry][2=hello][3=world][foo=bar] → December |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_and_values|let|foo|bar|2|hello|world|...
|
[1=2][2=February][3=hello][4=world][foo=bar] → February [1=4][2=April][3=hello][4=world][foo=bar] → April [1=3][2=March][3=hello][4=world][foo=bar] → March [1=curry][2=December][3=hello][4=world][foo=bar] → December [1=1][2=January][3=hello][4=world][foo=bar] → January |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_and_names|let|foo|bar|2|hello|world|...
|
[1=February][2=2][3=hello][4=world][foo=bar] → February [1=January][2=1][3=hello][4=world][foo=bar] → January [1=December][2=curry][3=hello][4=world][foo=bar] → December [1=March][2=3][3=hello][4=world][foo=bar] → March [1=April][2=4][3=hello][4=world][foo=bar] → April |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_only|let|foo|bar|2|hello|world|...
|
[1=December][2=hello][3=world][foo=bar] → December [1=March][2=hello][3=world][foo=bar] → March [1=January][2=hello][3=world][foo=bar] → January [1=February][2=hello][3=world][foo=bar] → February [1=April][2=hello][3=world][foo=bar] → April |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][my_name=2][my_value=February][foo=bar] → February [1=hello][2=world][my_name=3][my_value=March][foo=bar] → March [1=hello][2=world][my_name=curry][my_value=December][foo=bar] → December [1=hello][2=world][my_name=4][my_value=April][foo=bar] → April [1=hello][2=world][my_name=1][my_value=January][foo=bar] → January |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_only_as|my_name|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][my_name=4][foo=bar] → April [1=hello][2=world][my_name=1][foo=bar] → January [1=hello][2=world][my_name=3][foo=bar] → March [1=hello][2=world][my_name=curry][foo=bar] → December [1=hello][2=world][my_name=2][foo=bar] → February |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_only_as|my_value|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][foo=bar][my_value=December] → December [1=hello][2=world][foo=bar][my_value=February] → February [1=hello][2=world][foo=bar][my_value=April] → April [1=hello][2=world][foo=bar][my_value=January] → January [1=hello][2=world][foo=bar][my_value=March] → March |
...|renaming_by_calling|module:params/testcases/tdummy echo sb|blindly|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][foo=bar] → December |
| Modifier and arguments | Result |
|---|---|
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|let|foo|bar|2|hello|world|...
|
1 → [1=January][2=hello][3=world][foo=bar] 2 → [1=February][2=hello][3=world][foo=bar] 3 → [1=March][2=hello][3=world][foo=bar] 4 → [1=April][2=hello][3=world][foo=bar] curry → [1=December][2=hello][3=world][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_and_values|let|foo|bar|2|hello|world|...
|
1 → [1=1][2=January][3=hello][4=world][foo=bar] 2 → [1=2][2=February][3=hello][4=world][foo=bar] 3 → [1=3][2=March][3=hello][4=world][foo=bar] 4 → [1=4][2=April][3=hello][4=world][foo=bar] curry → [1=curry][2=December][3=hello][4=world][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|values_and_names|let|foo|bar|2|hello|world|...
|
1 → [1=January][2=1][3=hello][4=world][foo=bar] 2 → [1=February][2=2][3=hello][4=world][foo=bar] 3 → [1=March][2=3][3=hello][4=world][foo=bar] 4 → [1=April][2=4][3=hello][4=world][foo=bar] curry → [1=December][2=curry][3=hello][4=world][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_only|let|foo|bar|2|hello|world|...
|
1 → [1=1][2=hello][3=world][foo=bar] 2 → [1=2][2=hello][3=world][foo=bar] 3 → [1=3][2=hello][3=world][foo=bar] 4 → [1=4][2=hello][3=world][foo=bar] curry → [1=curry][2=hello][3=world][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][my_name=1][my_value=January][foo=bar] 2 → [1=hello][2=world][my_name=2][my_value=February][foo=bar] 3 → [1=hello][2=world][my_name=3][my_value=March][foo=bar] 4 → [1=hello][2=world][my_name=4][my_value=April][foo=bar] curry → [1=hello][2=world][my_name=curry][my_value=December][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_only_as|my_name|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][my_name=1][foo=bar] 2 → [1=hello][2=world][my_name=2][foo=bar] 3 → [1=hello][2=world][my_name=3][foo=bar] 4 → [1=hello][2=world][my_name=4][foo=bar] curry → [1=hello][2=world][my_name=curry][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|values_only_as|my_value|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][my_value=January][foo=bar] 2 → [1=hello][2=world][my_value=February][foo=bar] 3 → [1=hello][2=world][my_value=March][foo=bar] 4 → [1=hello][2=world][my_value=April][foo=bar] curry → [1=hello][2=world][my_value=December][foo=bar] |
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|blindly|let|foo|bar|2|hello|world|...
|
1 → [1=hello][2=world][foo=bar] 2 → [1=hello][2=world][foo=bar] 3 → [1=hello][2=world][foo=bar] 4 → [1=hello][2=world][foo=bar] curry → [1=hello][2=world][foo=bar] |
| Modifier and arguments | Result |
|---|---|
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|let|foo|bar|2|hello|world|...
|
[1=1][2=hello][3=world][foo=bar] → January [1=2][2=hello][3=world][foo=bar] → February [1=3][2=hello][3=world][foo=bar] → March [1=4][2=hello][3=world][foo=bar] → April [1=curry][2=hello][3=world][foo=bar] → December |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_and_values|let|foo|bar|2|hello|world|...
|
[1=2][2=February][3=hello][4=world][foo=bar] → February [1=4][2=April][3=hello][4=world][foo=bar] → April [1=3][2=March][3=hello][4=world][foo=bar] → March [1=curry][2=December][3=hello][4=world][foo=bar] → December [1=1][2=January][3=hello][4=world][foo=bar] → January |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_and_names|let|foo|bar|2|hello|world|...
|
[1=February][2=2][3=hello][4=world][foo=bar] → February [1=January][2=1][3=hello][4=world][foo=bar] → January [1=December][2=curry][3=hello][4=world][foo=bar] → December [1=March][2=3][3=hello][4=world][foo=bar] → March [1=April][2=4][3=hello][4=world][foo=bar] → April |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_only|let|foo|bar|2|hello|world|...
|
[1=December][2=hello][3=world][foo=bar] → December [1=March][2=hello][3=world][foo=bar] → March [1=January][2=hello][3=world][foo=bar] → January [1=February][2=hello][3=world][foo=bar] → February [1=April][2=hello][3=world][foo=bar] → April |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][my_name=2][my_value=February][foo=bar] → February [1=hello][2=world][my_name=3][my_value=March][foo=bar] → March [1=hello][2=world][my_name=curry][my_value=December][foo=bar] → December [1=hello][2=world][my_name=4][my_value=April][foo=bar] → April [1=hello][2=world][my_name=1][my_value=January][foo=bar] → January |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_only_as|my_name|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][my_name=4][foo=bar] → April [1=hello][2=world][my_name=1][foo=bar] → January [1=hello][2=world][my_name=3][foo=bar] → March [1=hello][2=world][my_name=curry][foo=bar] → December [1=hello][2=world][my_name=2][foo=bar] → February |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_only_as|my_value|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][my_value=April][foo=bar] → April [1=hello][2=world][my_value=February][foo=bar] → February [1=hello][2=world][my_value=March][foo=bar] → March [1=hello][2=world][my_value=January][foo=bar] → January [1=hello][2=world][my_value=December][foo=bar] → December |
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|blindly|let|foo|bar|2|hello|world|...
|
[1=hello][2=world][foo=bar] → December |
| Modifier and arguments | Result |
|---|---|
...|mapping_by_magic|padleft|2|15|/|...
|
1 → ////////January 2 → ///////February 3 → //////////March 4 → //////////April curry → ///////December |
...|mapping_by_magic|plural|names_and_values|1|They are many|...
|
1 → January 2 → They are many 3 → They are many 4 → They are many curry → They are many |
...|mapping_by_magic|padleft|values_and_names|1|40|...
|
1 → January 2 → February 3 → March 4 → April curry → December |
...|mapping_by_magic|#ifeq|names_only|3|1|It's January!|It's something else|...
|
1 → It's January! 2 → It's something else 3 → It's something else 4 → It's something else curry → It's something else |
...|mapping_by_magic|#switch|names_and_values_as|#default|1|let|January|I|let|February|II|let|March|III|let|April|IV|...
|
1 → I 2 → II 3 → III 4 → IV curry → curry |
...|mapping_by_magic|#time|names_only_as|2|let|1|curry|2|It's December!|It's something else|...
|
1 → It's something else 2 → It's something else 3 → It's something else 4 → It's something else curry → It's December! |
...|mapping_by_magic|#time|values_only_as|2|let|1|m/Y|...
|
1 → 01/2026 2 → 02/2026 3 → 03/2026 4 → 04/2026 curry → 12/2026 |
...|mapping_by_magic|#time|blindly|2|U|now|...
|
1 → 1779859457 2 → 1779859457 3 → 1779859457 4 → 1779859457 curry → 1779859457 |
| Modifier and arguments | Result |
|---|---|
...|renaming_by_magic|padleft|2|15|/|...
|
//////////////2 → February //////////////1 → January //////////curry → December //////////////4 → April //////////////3 → March |
...|renaming_by_magic|plural|names_and_values|1|They are many|...
|
January → January They are many → December |
...|renaming_by_magic|padleft|values_and_names|1|40|...
|
December → December January → January February → February March → March April → April |
...|renaming_by_magic|#ifeq|values_only|3|January|It's January!|It's something else|...
|
It's January! → January It's something else → December |
...|renaming_by_magic|#switch|names_and_values_as|#default|1|let|January|I|let|February|II|let|March|III|let|April|IV|...
|
II → February curry → December IV → April III → March I → January |
...|renaming_by_magic|#time|names_only_as|2|let|1|curry|2|It's December!|It's something else|...
|
It's December! → December It's something else → April |
...|renaming_by_magic|#time|values_only_as|2|let|1|m/Y|...
|
04/2026 → April 03/2026 → March 02/2026 → February 01/2026 → January 12/2026 → December |
...|renaming_by_magic|#time|blindly|2|U|now|...
|
1779859457 → December |
See also
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.