Module talk:Template test case: Difference between revisions

Content deleted Content added
Sandbox2, Test case2, and wrapperConfig: It looks to me like there's a possibility of passing a config file; but how does one use it?
Line 99:
 
Either way, param2 of the module appears to be a config of some kind, so whether my assumptions above are right or wrong, it would be nice if someone could add a <code><nowiki>== Params ==</nowiki></code> section to [[Module:Template test case/doc]] to describe what this param is and how to use it. {{pme}} [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 22:28, 25 December 2021 (UTC)
 
:{{reply|Mathglot}} You can use a second sandbox by setting the {{para|_template1}}, {{para|_template2}} and {{para|_template3}} arguments. For example, <code><nowiki>{{test case|_template1=Find sources|_template2=Find sources/sandbox|_template3=Find sources/sandbox2|Foo}}</nowiki></code> outputs the following:
{{test case|_template1=Find sources|_template2=Find sources/sandbox|_template3=Find sources/sandbox2|Foo}}
:The module is built so that the default value for _template1 is the base page of the current page, and the default value for _template2 is its sandbox subpage. In fact, if you are calling the module from [[Template:Find sources/testcases]], you could omit the {{para|_template1}} and {{para|_template2}} arguments, and just specify {{para|_template3|Find sources/sandbox2}} to get the same results. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 01:17, 26 December 2021 (UTC)