Module:Params/doc: Difference between revisions

Content deleted Content added
Add vertical padding
m More padding
Line 58:
This function does not take arguments.
 
{{vpad|1.5em}}
 
=== <code>list</code> ===
Line 68:
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.
 
{{vpad|1.5em}}
 
=== <code>list_values</code> ===
Line 78:
If no arguments are passed the vertical bar (<code>&#124;</code>) will be used as parameter separator, with no header and no footer.
 
{{vpad|1.5em}}
 
=== <code>concat_and_call</code> ===
Line 101:
If no other argument besides the template name are provided this function simply echoes the current parameters to another template.
 
{{vpad|1.5em}}
 
=== <code>concat_and_invoke</code> ===
Line 112:
Exactly like [[#concat_and_call|<code>concat_and_call</code>]], but invokes a module instead of calling a template.
 
{{vpad|1.5em}}
 
=== <code>call_for_each</code> ===
Line 123:
All other unnamed parameters following the template name will be appended to the key-value pair. Named parameters will be passed verbatim.
 
{{vpad|1.5em}}
 
=== <code>invoke_for_each</code> ===
Line 133:
Exactly like [[#call_for_each|<code>call_for_each</code>]], but invokes a module instead of calling a template.
 
{{vpad|1.5em}}
 
=== <code>call_for_each_value</code> ===
Line 143:
All other unnamed parameters following the template name will be appended after the value parameter. Named parameters will be passed verbatim.
 
{{vpad|1.5em}}
 
=== <code>invoke_for_each_value</code> ===
Line 153:
Exactly like [[#call_for_each_value|<code>call_for_each_value</code>]], but invokes a module instead of calling a template.
 
{{vpad|1.5em}}
 
=== <code>for_each</code> ===
Line 182:
This function does not take arguments besides the name of the function that must follow.
 
{{vpad|1.5em}}
 
=== <code>non-sequential</code> ===
Line 196:
This function does not take arguments besides the name of the function that must follow.
 
{{vpad|1.5em}}
 
=== <code>with_name_matching</code> ===
Line 210:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_name_matching|n$|list|</dd><dt>|</dt><dd>|<dl><dt>|</dd></dl>}}</syntaxhighlight>
 
{{vpad|1.5em}}
 
=== <code>with_name_not_matching</code> ===
Line 224:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_name_not_matching|n$|count}}</syntaxhighlight>
 
{{vpad|1.5em}}
 
=== <code>with_value_matching</code> ===
Line 238:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_value_matching|n$|count}}</syntaxhighlight>
 
{{vpad|1.5em}}
 
=== <code>with_value_not_matching</code> ===
Line 252:
<syntaxhighlight lang="wikitext">{{#invoke:params|with_value_not_matching|n$|count}}</syntaxhighlight>
 
{{vpad|1.5em}}
 
=== <code>trimmed</code> ===