Template:Parameters: Difference between revisions
Jump to navigation
Jump to search
Create: Minecraft Mod Wiki>Joker876 Created page with "<tr> <td><code>{{{1}}}</code></td> <td>{{InputType|{{{2}}}}}</td> <td>{{{3|–}}}</td> <td>{{{4|{{BC}}}}}</td> </tr>" |
Create: Minecraft Mod Wiki>Joker876 No edit summary |
||
Line 1: | Line 1: | ||
<tr> | <includeonly><tr> | ||
<td><code>{{{1}}}</code></td> | <td><code>{{{1}}}</code></td> | ||
<td>{{InputType|{{{2}}}}}</td> | <td><center>{{InputType|{{{2}}}}}</center></td> | ||
<td>{{{3|–}}}</td> | <td>{{{3|–}}}</td> | ||
<td>{{{4|{{BC}}}}}</td> | <td>{{{4|{{BC}}}}}</td> | ||
</tr> | </tr> | ||
</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 19:04, 16 April 2021
Template shortcut
For template:
For template:
{{ParametersHead}}
{{PsHead}}
Template shortcut
For template:
For template:
{{Parameters}}
{{Ps}}
Template shortcut
For template:
For template:
{{ParametersFoot}}
{{PsFoot}}
This template is used to display the parameters of a certain template.
It should only be used on documentation pages.
Definition
Parameter | R? | Type | Description | Default |
---|---|---|---|---|
1 |
![]() ![]() |
string | The name/names of the parameter. | |
2 |
![]() ![]() |
bool | Whether or not the parameter is required. | |
reqtext |
![]() ![]() |
any | Additional text displayed after the Yes/No in the "R?" column. | |
3 |
![]() ![]() |
string | The type of the parameter that should be used. | |
4 |
![]() ![]() |
any | The description of the parameter. | |
5 |
![]() ![]() |
any | The default value for the parameter. |
Examples
{{ParametersHead}} {{Parameters|1|yes|string|The name/names of the parameter.}} {{Parameters|2|yes|bool|Whether or not the parameter is required.}} {{Parameters|3|yes|string|The type of the parameter that should be used.}} {{Parameters|4|no|any|The description of the parameter.|<center>–</center>}} {{Parameters|5|no|any|The default value for the parameter.|{{T|Blank cell}}}} {{ParametersFoot}}
- produces
Parameter | R? | Type | Description | Default |
---|---|---|---|---|
1 |
![]() ![]() |
string | The name/names of the parameter. | |
2 |
![]() ![]() |
bool | Whether or not the parameter is required. | |
3 |
![]() ![]() |
string | The type of the parameter that should be used. | |
4 |
![]() ![]() |
any | The description of the parameter. | |
5 |
![]() ![]() |
any | The default value for the parameter. |
[view | edit | history | purge]The above documentation is transcluded from Template:Parameters/doc.