Difference between revisions of "Parameter/Documentation"

m
m (Categorized)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
Displays a documentation parameter. Used to ensure documentation is standardised.
+
Displays a documentation parameter. Used to ensure documentation is standardized.
 +
 
 +
==Usage==
 +
{{T|parameter|name|description}}<br>
 +
{{T|parameter|name|description|default}}<br>
 +
{{T|parameter|name|description|default|notes}}<br>
 +
{{T|parameter|name|description|4{{=}}notes}}
 +
 
 
==Parameters==
 
==Parameters==
 
{{parameter|1|The name of the parameter.}}
 
{{parameter|1|The name of the parameter.}}
Line 6: Line 13:
 
{{parameter|3|The default value of the parameter.||If there is no default value, the parameter is assumed to be required. If the parameter is optional and has no default value, define the parameter but leave it blank.}}
 
{{parameter|3|The default value of the parameter.||If there is no default value, the parameter is assumed to be required. If the parameter is optional and has no default value, define the parameter but leave it blank.}}
 
{{parameter|3|Additional notes.|}}
 
{{parameter|3|Additional notes.|}}
==Usage==
+
==Errors==
<pre>
+
'''No parameter description was provided. Add a description parameter.'''<br>
{{parameter|name|description}}
+
'''No parameter name was provided. Add a name parameter.'''
{{parameter|name|description|default}}
+
<includeonly>[[Category:General Wiki Templates]]</includeonly>
{{parameter|name|description|default|notes}}
 
</pre>
 

Latest revision as of 18:57, 19 August 2023

Description[edit]

Displays a documentation parameter. Used to ensure documentation is standardized.

Usage[edit]

{{parameter|<name>|<description>}}
{{parameter|<name>|<description>|<default>}}
{{parameter|<name>|<description>|<default>|<notes>}}
{{parameter|<name>|<description>|<4=notes>}}

Parameters[edit]

Arrow.png1: The name of the parameter.
Required.
Arrow.png2: A concise description of the parameter.
Required.
Arrow.png3: The default value of the parameter.
Optional.
Notes: If there is no default value, the parameter is assumed to be required. If the parameter is optional and has no default value, define the parameter but leave it blank.
Arrow.png3: Additional notes.
Optional.

Errors[edit]

No parameter description was provided. Add a description parameter.
No parameter name was provided. Add a name parameter.