Module:Params/doc/examples/enumerate/doc: Difference between revisions
From Kenshi Wiki
More actions
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[Category:Module documents]] | [[Category:Module documents]] | ||
[[Category:Module misc documents]] | [[Category:Module misc documents]] | ||
</noinclude> | </noinclude> |
Revision as of 17:54, 9 March 2025
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
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