Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Parameter: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude>{{#ifeq:{{#titleparts:{{FULLPAGENAME}}| |-1|Documentation|<!-- Do Nothing -->|{{#switch:{{{1|}}}
<includeonly><onlyinclude>{{#ifeq:{{#titleparts:{{FULLPAGENAME}}||-1|Documentation|<!-- Do Nothing -->|{{#switch:{{{1|}}}
| mandatory = mandatory {{{2|}}} parameter[[Category:Templates With Mandatory Parameters|Parameter]]
| mandatory = mandatory {{{2|}}} parameter[[Category:Templates With Mandatory Parameters|Parameter]]
| optional = optional {{{2|}}} parameter[[Category:Templates With Optional Parameters|Parameter]]
| optional = optional {{{2|}}} parameter[[Category:Templates With Optional Parameters|Parameter]]
| no | none = no parameters[[Category:Templates Without Parameters|Parameter]]
| no | none = no parameters[[Category:Templates Without Parameters|Parameter]]
| #default = {{Error|{{Code|{{{1|}}}}} is not a valid parameter for {{Template|Parameter}}.}}
| #default = {{Error|{{Code|{{{1|}}}}} is not a valid parameter for {{Template|Parameter}}.}}
}}}}</onlyinclude></includeonly>
}}}}}}</onlyinclude></includeonly>

Revision as of 13:53, 22 October 2022

Icon-documentation.svg

Template:Parameter is used with in the template namespace to identify and categorize templates based on their usage of parameters.

Usage

It accepts one , one of mandatory, optional, no, or none.

It also accepts one , arbitrary text describing the parameter, typically something like string or integer.

Return

It's invoked twice above, but for clarity sake...

{{Parameter|mandatory}} adds the template to the Templates with Mandatory Parameters category and returns:
{{Parameter|optional}} adds the template to the Templates with Optional Parameters category and returns:
{{Parameter|no}} or {{Parameter|none}} adds the template to the Templates without Parameters category and returns:
no parameters
The optional parameter is inserted between the two words. For instance, {{Parameter|optional|magenta}} returns:

The documentation above was transcluded from Template:Parameter/Documentation.