Template:Function/parameter

From Savage Game Design Wiki
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