Dark Mode

Jump to content

Module:Params/doc/examples/enumerate

From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]

This example template shows how to use {{#invoke:params|with_name_matching|...}} to emulate Module:Enumerate.

Note: For more complex cases, please see {{#invoke:params|call_for_each_group}}.

Usage

[edit]

For instance,

{{module:params/doc/examples/enumerate
| 1 = cream
| 2 = bingo
| hello = world
| foobar1 = one
| foobar2 = two
| foobar3 = three
| foobar4 = foo
| foobar5 = bar
| foobar6 = Jupiter
}}

generates

The parameters of type |foobar1, |foobar2 ... |foobarN passed are:

  • one
  • two
  • three
  • foo
  • bar
  • Jupiter

See also

[edit]
The above documentation is transcluded from Module:Params/doc/examples/enumerate/doc. (edit | history)
Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.