Module:Call wikitext/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "{{documentation subpage}} Implements {{tl|Call wikitext}}. This module was originally designed for providing an effective way to create testcases for Module:ArgRest, by "mocking" a transcluded template. == Usage == This module can also be used directly. See Template:Call wikitext/doc for documentation and replace <code>{{((}}Call wikitext</code> with <code>{{((}}#invoke:Call wikitext|main</code>. For example: {{Nowiki template demo|format=inline|<nowiki>{{Call w..." |
No edit summary |
||
| Line 9: | Line 9: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Modules]] | |||
[[Category:Template metamodules]] | [[Category:Template metamodules]] | ||
[[Category:Modules for test tools]] | [[Category:Modules for test tools]] | ||
Revision as of 05:25, 26 February 2025
| This is a documentation subpage for Module:Call wikitext. It may contain usage information, categories and other content that is not part of the original module page. |
Implements {{Call wikitext}}. This module was originally designed for providing an effective way to create testcases for Module:ArgRest, by "mocking" a transcluded template.
Usage
This module can also be used directly. See Template:Call wikitext/doc for documentation and replace {{Call wikitext with {{#invoke:Call wikitext|main. For example:
{{Call wikitext|sourceCode=<nowiki>{{{foo}}}</nowiki>|foo=Hello!}}→ Hello!
{{#invoke:Call wikitext|main|sourceCode=<nowiki>{{{foo}}}</nowiki>|foo=Hello!}}→ Hello!