Module:Sandbox/BrandonXLF/Module:Map params/doc explained
maps parameters received by a function to wikitext using or to a template call using .
Usage
<nowiki>{{</nowiki>#invoke:Map params|main|''parameters''<nowiki>}}</nowiki>
Parameters
Input
- - The prefix of the parameters to process. All registered prefixes will be checked to determine if a number is present in the provided arguments. defaults to processing unnamed parameters.
- - An extra parameter to pass to the wikitext or template being called. If the extra parameter is suffixed with a number (same as prefixed parameters but not checked to determine if a number is present), add the suffix
(i)
. For example, style(i)
.
- - Set to
yes
to support parameter lists with gaps. Defaults to no
.
- - Whether or not to support passing the first parameter without a number, i.e. allow it to be rather than . Defaults to
yes
.
Map to
- - The wikitext to map parameters to. Parameters are substituted with their number removed, i.e. becomes etc. The parameter is replaced with the current index and is replaced with the current unnamed parameter (if applicable).
- - Template to call. Parameters are passed with their number removed, i.e. becomes etc. The parameter is the current index and is the current unnamed parameter (if applicable). Overrides .
Concatenation
- / - Separator to add between outputs. To preserve leading and tailing whitespace, can be used instead, or when is being used.
- - Special separator to use before the final output. Outer spaces can be added with or
&#32;
.
Advanced
- - Whether or not to expand templates, parser functions, extension tags, etc. after substituting parameters. This is most useful when is used without tags and can provide a slight performance advantage. Only relevant when using . Defaults to
yes
.
See also