Template:Function/parameter

From Savage Game Design Wiki
< Template:Function
Revision as of 18:32, 20 May 2020 by Lou Montana (talk | contribs) (Template creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Usage

{{Function/parameter|name|type|description|default}}

  • name: parameter identifier
  • type: data type (see Template:DataType)
  • description: parameter description
  • default: default value when parameter is not provided
Examples
Code Result
{{Function/parameter}}
{{Function/parameter|paramName}}
paramName
{{Function/parameter|paramName|b}}
paramName: Boolean
{{Function/parameter|paramName|b|this is a boolean}}
paramName: Boolean - this is a boolean
{{Function/parameter|paramName|b|this is a boolean|false}}
paramName: Boolean - (Optional, default false) this is a boolean