Lou Montana/Sandbox2

From Bohemia Interactive Community
< Lou Montana
Jump to navigation Jump to search

RV/type Template

Return a descriptive data type from a keyword.

This template is used on these pages.

Usage

{{RV/type|keyword}}

  • keyword: parameter's Data Type, can be one of:
    • array
    • boolean
    • color
    • rgb
    • rgba
    • code
    • config
    • control
    • date
    • diaryrecord
    • display
    • edenentities
    • group
    • hashmap
    • hashmapkey
    • loadout
    • location
    • namespace
    • number
    • object
    • particle
    • pos
    • pos2d
    • pos3d
    • posagl
    • posagls
    • posasl
    • posatl
    • posaslw
    • posworld
    • posrel
    • side
    • script
    • string
    • task
    • teammember
    • text
    • vector3d
    • waypoint
Examples
Code Result
{{RV/type}} RV/type
{{RV/type|Hello there!}} RV/type
{{RV/type|number}} RV/type (Number)
{{RV/type|pos2D}} RV/type (Array format Position2D)


RV/param Template

define an RV parameter

This template is used on these pages.

Usage

{{RV/param|name|type|descr|default|optional}}

  • name: the parameter's name
  • type: Data Type, see RV/type for possible values
  • descr: parameter's description
  • default: (Optional) defines the default value (and sets optional on)
  • optional: (Optional, unnecessary if default is set) defines the parameter's optionality
Examples
Code Result
{{RV/param}} RV/param
{{RV/param|name}} RV/param
{{RV/param|name|object}} RV/param
{{RV/param|name|pos|description}} RV/param
{{RV/param|name|posATL|description|optional= y}} RV/param
{{RV/param|name|posASL|description|default= 42}} RV/param