Module:Params/testcases/tmaps/doc
From Kenshi Wiki
More actions
This is the documentation page for Module:Params/testcases/tmaps
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|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][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_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][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_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/2025 2 → 02/2025 3 → 03/2025 4 → 04/2025 curry → 12/2025  | 
...|mapping_by_magic|#time|blindly|2|U|now|...
 | 
1 → 1762226697 2 → 1762226697 3 → 1762226697 4 → 1762226697 curry → 1762226697  | 
| 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|...
 | 
12/2025 → December 03/2025 → March 02/2025 → February 04/2025 → April 01/2025 → January  | 
...|renaming_by_magic|#time|blindly|2|U|now|...
 | 
1762226697 → December |