Module:Sandbox/BrandonXLF/1/doc: Difference between revisions

Content deleted Content added
Rewrite
Line 1:
{{lmd|All[[Module:Call]] parameters}} Callscalls a template while giving it all the arguments the current page receives. It is meant to be used in the template namespace and will only work in other namespaces if the page it's being used on is transcluded on another page.
 
Arguments directly given to the module are prioritized over ones given to the current page unless {{para|_pf|yes}}.
 
== Usage ==
There are two ways of using the module, using the <code>default</code> function and using the <code>force</code> function.
 
=== Set '''default''' values for parameters ===
=== Syntax ===
<code>{{((}}invoke:call{{!}}default{{!}}_=''template''{{))}}</code>
 
{{mlix|All parameters|main|_t{{=}}|_pt{{=}}|''x''}}
 
=== Parameters ===
 
{{para|_t}} The template to call.
 
{{para|_pf|yes}} Forces parent arguments to override the arguments given to the module.
 
{{para|''x''}} ''x'' represents any parameter, parameter ''x'' will be sent to the template that is called.
 
When using the <code>default</code> function, parameters supplied to the <code>#invoke</code> call will be overridden by parameters sent to the template calling this module.
=== Default ===
 
=== Set '''forced''' values for parameters ===
To set all parameters as defaults set {{para|_pf|yes}}.
<code>{{((}}invoke:call{{!}}force{{!}}_=''TEMPLATE''{{))}}</code>
 
When using the <code>force</code> function, parameters supplied to the <code>#invoke</code> call will override parameters sent to the template calling this module.
To set individual parameters as default use {{para|''x''|{{param|''x''|''default''|nested=yes}}}}.