Module:Arguments/doc: Difference between revisions
From Shroudforge
More actions
starcitizen>Alistair3149 deprecate Template:Wikipedia template, mark as SCW shared |
Bonsaibauer (talk | contribs) m 1 revision imported: Import Star Citizen Modules |
||
(No difference)
| |||
Latest revision as of 22:22, 4 November 2026
<details class="t-mbox t-mbox--notice navigation-not-searchable noexcerpt t-dependencies" open="no"><summary class="t-mbox__header">Technical details</summary>
</details>
{{#seo:
Source
Imported from Wikipedia
Used by
Unavailable: looking up the pages that use it failed on this render. Purge the page to retry.
Functions
|type = website |description = Module:Arguments/doc is a template page used on the Star Citizen Wiki. Templates are pages that are embedded (transcluded) into other pages to allow for the repetition of information. |site_name = Star Citizen Wiki |locale = en-gb }}
Module:Arguments provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
- Easy trimming of arguments and removal of blank arguments.
- Arguments can be passed by both the current frame and by the parent frame at the same time. (More details below.)
- Arguments can be passed in directly from another Lua module or from the debug console.
- Arguments are fetched as needed, which can help avoid (some) problems with
{{#switch:pair
|c|close =
|s|single
|o|open
|p|pair = <ref{{#if:| {{{params}}}}}
}}{{#switch:pair
|c|close =
|s|single = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
|s|single
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}} tags.
- Most features can be customized.