Template:Parameters: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
Create: Minecraft Mod Wiki>Joker876
No edit summary
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
   <td><code>{{{1}}}</code></td>
   <td><center><code>{{{1}}}</code></center></td>
   {{Yesno|{{{2}}}
   <center>{{Yesno|{{{2}}}
   |yes=<td class="green">Yes{{#if:{{{reqtext|}}}|&#32;{{{reqtext}}}}}</td>
   |yes=<td class="green">Yes{{#if:{{{reqtext|}}}|&#32;{{{reqtext}}}}}</td>
   |no=<td class="red">No{{#if:{{{reqtext|}}}|&#32;{{{reqtext}}}}}</td>
   |no=<td class="red">No{{#if:{{{reqtext|}}}|&#32;{{{reqtext}}}}}</td>
   |blank=<td>'''?'''</td>|def=<td>'''?'''</td>
   |blank=<td>'''?'''</td>|def=<td>'''?'''</td>
   }}
   }}</center>
   <td><center>{{InputType|{{{3}}}}}</center></td>
   <td><center>{{InputType|{{{3}}}}}</center></td>
   <td>{{{4|<center>–</center>}}}</td>
   <td>{{{4|<center>–</center>}}}</td>

Revision as of 17:55, 17 April 2021

[view | edit | history | purge]Documentation
Template shortcut
For template: {{ParametersHead}}
Template shortcut
For template: {{Parameters}}
Template shortcut
For template: {{ParametersFoot}}

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
Yes
/
The name/names of the parameter.
2
Yes
/
Whether or not the parameter is required.
reqtext
No
/
Additional text displayed after the Yes/No in the "R?" column.
3
Yes
/
The type of the parameter that should be used.
4
No
/
The description of the parameter.
5
No
/
The default value for the parameter. {{Blank cell}}

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
Yes
/
The name/names of the parameter.
2
Yes
/
Whether or not the parameter is required.
3
Yes
/
The type of the parameter that should be used.
4
No
/
The description of the parameter.
5
No
/
The default value for the parameter. {{Blank cell}}
[view | edit | history | purge]The above documentation is transcluded from Template:Parameters/doc.