Toggle menu
9
205
64
18.8K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Created page with "This test template allows to simulate in one single call both the incoming parameters and the parameters possibly concatenated to <code>{{ml|params|...|''function''|...}}</code>, using a single hyphen (<code>-</code>) as a delimiter between the two groups. This allows to make general experiments directly from the preview window without having to edit separate templates. {{Warnsign}} Please be aware that there are numerous limitations on what can be experimented using th..."
 
No edit summary
 
Line 23: Line 23:
[[Category:Module testcases]]
[[Category:Module testcases]]
[[Category:Module sand&test]]
[[Category:Module sand&test]]
[[Category:Module test cases]]
}}</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:16, 9 March 2025

This test template allows to simulate in one single call both the incoming parameters and the parameters possibly concatenated to {{#invoke:params|...|function|...}}, using a single hyphen (-) as a delimiter between the two groups. This allows to make general experiments directly from the preview window without having to edit separate templates.

red-outlined triangle containing exclamation point Warning Please be aware that there are numerous limitations on what can be experimented using this template. In case of errors, please use a sandbox template.

Usage

For instance, writing

{{module:params/testcases/tmulti|
	setting|i/p|<br />|: |list|
	-|hello|world|foo=bar}}

will simulate a call with |1=hello, |2=world, and |foo=bar to a template whose content is {{#invoke:params|setting|i/p|<br />|: |list}}, thus producing:

1: hello
2: world
foo: bar

See also