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

Content deleted Content added
 
(12 intermediate revisions by the same user not shown)
Line 1:
{{notice|Please do not delete this module or its doc page.}}
[[Module:Call]] calls 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.
 
== UsageParameters ==
<code>''(floor#)''</code> - Sets the name of a floor
There are two ways of using the module, using the <code>default</code> function and using the <code>force</code> function.
 
<code>''(floor#)''_''(part#)''_''(param)''</code> - Sets a parameter for a row of a floor where <code>''(param)''</code> is:
=== Set '''default''' values for parameters ===
* <code>name</code> - The name of the row, e.g. "Westbound track"
<code>{{((}}invoke:call{{!}}default{{!}}_=''template''{{))}}</code>
* <code>desc</code> - The description for the row
 
* '''Services'''
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.
** <code>dir</code> - The direction of the service(s) for the track (<code>right</code> or <code>left</code>)
 
** <code>service</code> - The service running on the track
=== Set '''forced''' values for parameters ===
** <code>service''(service#)''</code> - Additional services running on the track
<code>{{((}}invoke:call{{!}}force{{!}}_=''template''{{))}}</code>
** <code>dest</code> - The destination for the service
 
** <code>dest''(service#)''</code> - Destinations for the additional services
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.
** <code>note</code> - Note about the services
** <code>note''(service#)''</code> - Notes about the additional services
* '''Platform'''
** <code>platform</code> - The type of platform
** <code>accessible</code> - Set if the platform is {{access icon|alt=}} [[accessible]]
** <code>note</code> - Note about the platform