Module:Forward parameters to template call/doc explained

Usage

<nowiki>{{</nowiki>subst:#invoke:Forward parameters to template call|main|_template=''template name''<nowiki>}}</nowiki>

This module is for a very particular set of circumstances: when a substituted template needs to dynamically generate the wikimarkup for a template call, forwarding all numbered parameters. It also allows for the option of designating a prefix for a series of named parameters which will be converted to numbered ones. Because it generates wikitext, this module only works when substituted, unless all you want is to show the template call's markup without actually executing it.

To specify a prefix to convert to numbered parameters, set (or,, etc.) The order of items within that family of parameters will be retained, with those items being placed after any true numbered parameters. For instance, <nowiki>{{</nowiki>subst:#invoke:Forward parameters to template call|main|_template=foo<nowiki>|_convert_prefix=bar|1|2|bar2=b|bar1=a}}</nowiki> will become . If multiple prefixes are converted, order of items within each set is retained, but the ordering of the sets is unpredictable.