Module:Params/doc: Difference between revisions

Content deleted Content added
Update the documentation; +{{In use}}
Line 2,104:
: <syntaxhighlight lang="wikitext" inline>{{#invoke:params|parsing|string to parse|[trim flag]|[iteration delimiter setter]|[...]|[key-value delimiter setter]|[...]|pipe function name}}</syntaxhighlight>
 
This modifier allows to add an infinity of new parameters by using a parameter string. By default this uses <code>&#124;</code> as separator between parameters and <code>&#61;</code> as separator between keys and values, but it is possible to specify other strings or patterns. The <code>[[#new|new]]</code> directive often accompanies this modifier.
 
Examples:
Line 2,120:
 
The ''key-value delimiter setter'' can be placed in any position (not necessarily in fifth position), must be ''immediately'' followed by a user-given string, and can either be <code>with_plain_psep</code> or <code>with_pattern_psep</code>. If omitted, the two arguments default to <code>with_plain_psep&#124;&#123;&#123;&#61;&#125;&#125;</code>. If the custom string is empty (but not if it is blank but not empty) the string to parse will be assumed not to have any key-value delimiters.
 
The <code>[[#new|new]]</code> directive often accompanies this modifier.
 
{{vpad|clear=none}}