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

Content deleted Content added
Adding explanation
Testing
Line 1:
{{lmd|All argumentsargs}} Calls a template while giving it all the arguments the current page receives.
 
Arguments directly given to the module are prioritized over ones given to the current page.
Line 7:
* {{para|_t}} The template to call
* {{para|''x''}} ''x'' represents any parameter, parameter ''x'' will be send to the template that is called.
 
== Example ==
 
In this example, the called template gives no arguments to the template being called.
 
'''Parent:''' <nowiki>{{TEMPLATE|Foo|Bar|Baz}}</nowiki>
 
'''Template:''' <nowiki>{{#invoke:Sandbox/BrandonXLF|main|_t=For}}</nowiki>
 
'''Result:''' {{#invoke:Sandbox/BrandonXLF|main|_t=For|Foo|Bar|Baz}}
 
In this example, the called template alters the 3rd parameter
 
'''Parent:''' <nowiki>{{TEMPLATE|Foo|Bar|Baz}}</nowiki>
 
'''Template:''' <nowiki>{{#invoke:Sandbox/BrandonXLF|main|_t=For|Foobar}}</nowiki>
 
'''Result:''' {{#invoke:Sandbox/BrandonXLF|main|_t=For|Foo|Bar|Foobar}}
 
In this example, the called template alters the 3rd parameter, but the parent doesn't define it
 
'''Parent:''' <nowiki>{{TEMPLATE|Foo|Bar}}</nowiki>
 
'''Template:''' <nowiki>{{#invoke:Sandbox/BrandonXLF|main|_t=For|Foobar}}</nowiki>
 
'''Result:''' {{#invoke:Sandbox/BrandonXLF|main|_t=For|Foo|Bar|Foobar}}