Module:Params/doc: Difference between revisions

Content deleted Content added
value_of: Added note about white spaces
m Fixed recurrent typo
Line 84:
If no arguments are passed the vertical bar (<code>&#124;</code>) will be used as parameter separator and the equals sign (<code>=</code>) will be used as key-value separator, with no header and no footer.
 
{{A note}} All arguments passed to this functionsfunction are not trimmed of their leading and trailing spaces. The <code>list</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 96:
If no arguments are passed the vertical bar (<code>&#124;</code>) will be used as parameter separator, with no header and no footer.
 
{{A note}} All arguments passed to this functionsfunction are not trimmed of their leading and trailing spaces. The <code>list_values</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 121:
If no other argument besides the template name are provided this function simply echoes the current parameters to another template.
 
{{A note}} All arguments passed to this functionsfunction except the template name are not trimmed of their leading and trailing spaces. The <code>concat_and_call</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 134:
Exactly like [[#concat_and_call|<code>concat_and_call</code>]], but invokes a module instead of calling a template.
 
{{A note}} All arguments passed to this functionsfunction except the module name and the function name are not trimmed of their leading and trailing spaces. The <code>concat_and_invoke</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 147:
All other unnamed parameters following the template name will be appended to the key-value pair. Named parameters will be passed verbatim.
 
{{A note}} All arguments passed to this functionsfunction except the template name are not trimmed of their leading and trailing spaces. The <code>call_for_each</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 159:
Exactly like [[#call_for_each|<code>call_for_each</code>]], but invokes a module instead of calling a template.
 
{{A note}} All arguments passed to this functionsfunction except the module name and the function name are not trimmed of their leading and trailing spaces. The <code>invoke_for_each</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 171:
All other unnamed parameters following the template name will be appended after the value parameter. Named parameters will be passed verbatim.
 
{{A note}} All arguments passed to this functionsfunction except the template name are not trimmed of their leading and trailing spaces. The <code>call_for_each_value</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 183:
Exactly like [[#call_for_each_value|<code>call_for_each_value</code>]], but invokes a module instead of calling a template.
 
{{A note}} All arguments passed to this functionsfunction except the module name and the function name are not trimmed of their leading and trailing spaces. The <code>invoke_for_each_value</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 197:
<syntaxhighlight lang="wikitext">{{#invoke:params|for_each|Arg name: $#, Arg value: $@}}</syntaxhighlight>
 
{{A note}} All arguments passed to this functionsfunction are not trimmed of their leading and trailing spaces. The <code>for_each</code> function name itself, however, can be surrounded by spaces.
 
{{vpad}}
Line 246:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_name_matching|n$|list|</dd><dt>|</dt><dd>|<dl><dt>|</dd></dl>}}</syntaxhighlight>
 
{{A note}} The argument passed to this functionsfunction is not trimmed of its leading and trailing spaces. The <code>with_name_matching</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 262:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_name_not_matching|n$|count}}</syntaxhighlight>
 
{{A note}} The argument passed to this functionsfunction is not trimmed of its leading and trailing spaces. The <code>with_name_not_matching</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 278:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_value_matching|n$|count}}</syntaxhighlight>
 
{{A note}} The argument passed to this functionsfunction is not trimmed of its leading and trailing spaces. The <code>with_value_matching</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}
Line 294:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_value_not_matching|n$|count}}</syntaxhighlight>
 
{{A note}} The argument passed to this functionsfunction is not trimmed of its leading and trailing spaces. The <code>with_value_not_matching</code> function name itself, however, can be surrounded by spaces.
 
{{vpad|1.5em}}