Jump to content

Module:Params/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grufo (talk | contribs) at 00:08, 30 January 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This is the testcases page for testing the behaviour of Module:Params.

As the module provides most of its functionalities only when called by templates, this page uses helper subtemplates to do its tests. You can find a list of these here.

The list function

Helper subtemplate {{./echo}}

The {{./echo}} subtemplate calls the list function using the following code:

[[:Module:Params/testcases/echo]]

When transcluded, it echoes the code it was called with, as the following example shows:

Markup Renders as
{{Module:Params/testcases/echo|hello|world|foo=bar}}