Module:Params/doc: Difference between revisions

Content deleted Content added
mNo edit summary
m internal link
Line 6:
The module offers elegant shortcuts to non variadic templates as well. Outside templates the module has virtually no applications; hence, if you plan to make experiments, make sure to do them from within a template, or you will not be able to see much.
 
Among the possibilities that the module offers there is that of performing a series of actions after novel arguments have been concatenated to the template's incoming parameters. As this sometimes makes it necessary to keep the argument slots clean from interferences, instead of named arguments in order to specify options this module uses ''piping functions'' (i.e. functions that expect to be [[Pipeline (software)|piped]] instead of returning to the caller), or ''modifiers''. This creates a syntax similar to the following example:
 
<syntaxhighlight lang="wikitext">{{#invoke:params|[modifier]|[...]|[modifier]|[...]|function|[...]}}</syntaxhighlight>