Content deleted Content added
→parsing: +example |
The example has changed |
||
Line 2,189:
The ''key-value delimiter setter'' can be placed in any position after the ''string to parse'' (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|{{=}}</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.
An example that shows how to use this function to transclude a custom template with custom parameters is available at {{{{rel|Module:Params/doc/examples/constructed transclusion}}}}.▼
{{vpad|clear=none}}
Line 2,214 ⟶ 2,212:
This modifier works exactly like <code>[[#parsing|parsing]]</code>, but takes the content of a disposable parameter as input. See there for further information. The parameter passed to this modifier will be immediately deleted. The parsed parameters will overwrite existing parameters of the same name.
Example:
<syntaxhighlight lang="wikitext">{{#invoke:params|new|pulling|1|reinterpreting|1|with_pattern_isep|%s,%s|concat_and_call|See also}}</syntaxhighlight>
▲An example that shows how to use this function to transclude a custom template with custom parameters is available at {{{{rel|Module:Params/doc/examples/constructed transclusion}}}}.
{{vpad|clear=none}}
|