๐Ÿ‡ฎ๐Ÿ‡ท Iran Proxy | https://www.wikipedia.org/wiki/Module:Params/testcases/tmaps_sandbox/doc
Jump to content

Module:Params/testcases/tmaps sandbox/doc

From Wikipedia, the free encyclopedia

This test template allows to check the behaviour of all the mapping_* and renaming_* class of modifiers.

Usage

[edit]

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

mapping_by_calling
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]
renaming_by_calling
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
mapping_by_invoking
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]
renaming_by_invoking
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
mapping_by_magic
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 โ†’ 1765182126
2 โ†’ 1765182126
3 โ†’ 1765182126
4 โ†’ 1765182126
curry โ†’ 1765182126
renaming_by_magic
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|... 1765182126 โ†’ December


See also

[edit]