Module:Params/testcases/tdelimiters/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "This test template allows to test the behaviour of delimiter strings between the arguments it was called with, invoking several functions of the module at once. == Usage == For instance, <syntaxhighlight lang="wikitext">{{module:params/testcases/tdelimiters|foo|bar|Jupiter|hello=world}}</syntaxhighlight> generates {{module:params/testcases/tdelimiters|foo|bar|Jupiter|hello=world}} == See also == * {{module:params/testcases/tdelimiters sandbox}} <includeonly>{{S..." |
No edit summary |
||
Line 17: | Line 17: | ||
[[Category:Module testcases]] | [[Category:Module testcases]] | ||
[[Category:Module sand&test]] | [[Category:Module sand&test]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[Category:Module documents]] | [[Category:Module documents]] | ||
[[Category:Module sand&test documents]] | [[Category:Module sand&test documents]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:14, 9 March 2025
This test template allows to test the behaviour of delimiter strings between the arguments it was called with, invoking several functions of the module at once.
Usage
For instance,
{{module:params/testcases/tdelimiters|foo|bar|Jupiter|hello=world}}
generates
list
|
[HEADER][1=foo], [2=bar], [3=Jupiter] and [hello=world][FOOTER] |
---|---|
list_values
|
[HEADER][foo], [bar], [Jupiter] and [world][FOOTER] |
for_each
|
[HEADER][1=foo], [2=bar], [3=Jupiter] and [hello=world][FOOTER] |
call_for_each
|
[HEADER][1=1][2=foo], [1=2][2=bar], [1=3][2=Jupiter] and [1=hello][2=world][FOOTER] |
invoke_for_each
|
[HEADER][1=1][2=foo], [1=2][2=bar], [1=3][2=Jupiter] and [1=hello][2=world][FOOTER] |
magic_for_each
|
[HEADER][foo], [bar], [Jupiter] and [world][FOOTER] |
call_for_each_value
|
[HEADER][1=foo], [1=bar], [1=Jupiter] and [1=world][FOOTER] |
invoke_for_each_value
|
[HEADER][1=foo], [1=bar], [1=Jupiter] and [1=world][FOOTER] |
magic_for_each_value
|
[HEADER][foo], [bar], [Jupiter] and [world][FOOTER] |