Module:Params/testcases/mdummy/doc

From English Wikipedia @ Freddythechick

This is the current revision of this page, as edited by imported>Grufo at 04:16, 27 May 2024 (+Category). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This submodule is designed to be used as a dummy callback by templates that want to test Module:Params.

Usage

{{#invoke:Params/testcases/mdummy|function_name}}

Functions

Here follows the list of functions.

echo_sb

The echo_sb function simply echoes all the parameters it was called with, surrounding these within square brackets. It is virtually identical to the {{Module:Params/testcases/tdummy echo sb}} template.

Examples:

  • <syntaxhighlight lang="wikitext" inline>[1=foo][2=bar][3=Jupiter][hello=world]</syntaxhighlight>
    ↳ [1=foo][2=bar][3=Jupiter][hello=world]