Misplaced Pages

Module:Params/testcases/tmaps/doc

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Module:Params | testcases | tmaps
This is a documentation subpage for Module:Params/testcases/tmaps.
It may contain usage information, categories and other content that is not part of the original module page.

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

mapping_by_calling
Modifier and arguments Result
...|mapping_by_calling|module:params/testcases/tdummy echo sb|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_and_values|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|values_and_names|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_only|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|names_only_as|my_name|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|values_only_as|my_value|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_calling|module:params/testcases/tdummy echo sb|blindly|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
renaming_by_calling
Modifier and arguments Result
...|renaming_by_calling|module:params/testcases/tdummy echo sb|let|foo|bar|2|hello|world|... → January
→ February
→ March
→ April
→ December
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_and_values|let|foo|bar|2|hello|world|... → February
→ April
→ March
→ December
→ January
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_and_names|let|foo|bar|2|hello|world|... → February
→ January
→ December
→ March
→ April
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_only|let|foo|bar|2|hello|world|... → December
→ March
→ January
→ February
→ April
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|... → February
→ March
→ December
→ April
→ January
...|renaming_by_calling|module:params/testcases/tdummy echo sb|names_only_as|my_name|let|foo|bar|2|hello|world|... → April
→ January
→ March
→ December
→ February
...|renaming_by_calling|module:params/testcases/tdummy echo sb|values_only_as|my_value|let|foo|bar|2|hello|world|... → December
→ February
→ April
→ January
→ March
...|renaming_by_calling|module:params/testcases/tdummy echo sb|blindly|let|foo|bar|2|hello|world|... → December
mapping_by_invoking
Modifier and arguments Result
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_and_values|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|values_and_names|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_only|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|names_only_as|my_name|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|values_only_as|my_value|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
...|mapping_by_invoking|params/testcases/mdummy|echo_sb|blindly|let|foo|bar|2|hello|world|... 1 →
2 →
3 →
4 →
curry →
renaming_by_invoking
Modifier and arguments Result
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|let|foo|bar|2|hello|world|... → January
→ February
→ March
→ April
→ December
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_and_values|let|foo|bar|2|hello|world|... → February
→ April
→ March
→ December
→ January
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_and_names|let|foo|bar|2|hello|world|... → February
→ January
→ December
→ March
→ April
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_only|let|foo|bar|2|hello|world|... → December
→ March
→ January
→ February
→ April
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_and_values_as|my_name|my_value|let|foo|bar|2|hello|world|... → February
→ March
→ December
→ April
→ January
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|names_only_as|my_name|let|foo|bar|2|hello|world|... → April
→ January
→ March
→ December
→ February
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|values_only_as|my_value|let|foo|bar|2|hello|world|... → December
→ February
→ April
→ January
→ March
...|renaming_by_invoking|params/testcases/mdummy|echo_sb|blindly|let|foo|bar|2|hello|world|... → 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 → 1736458065
2 → 1736458065
3 → 1736458065
4 → 1736458065
curry → 1736458065
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|... 1736458065 → December


See also