Lou Montana/Sandbox2 – User

From Bohemia Interactive Community
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}} Template:RV/type
{{RV/type|Hello there!}} Template:RV/type
{{RV/type|number}} Template:RV/type (Number)
{{RV/type|pos2D}} Template: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}} Template:RV/param
{{RV/param|name}} Template:RV/param
{{RV/param|name|object}} Template:RV/param
{{RV/param|name|pos|description}} Template:RV/param
{{RV/param|name|posATL|description|optional= y}} Template:RV/param
{{RV/param|name|posASL|description|default= 42}} Template:RV/param