Jump to content

Module:Call wikitext/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BrandonXLF (talk | contribs) at 21:19, 1 September 2024 (Add Category:Wikipedia metatemplates). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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!