CT/attribute – Template

From Bohemia Interactive Community
Jump to navigation Jump to search

Usage

Parameters

Parameter Description Example
name Name of the attribute
text
value1-4 Possible values of the config entry. Has to match the type given by type1-4
"This is a string"
type1-4 Type of the respective value. Possible values: Number, String, Array, Class. Each type/value pair gets an example.
String
description What does the attribute do?
This string displays text.
mandatory If defined a yellow warning box will be displayed at the attributes position. Mandatory attributes throw an error in RPT when omitted.
1
{{CT/attribute
| name=testArray
| value1={1,0,0,1}
| type1=Array
| description=This is a test array to test arrays. {{Feature|important|Notice Me!}}
}}

{{CT/attribute
| name=testAttribute
| value1="test"
| type1=String
| mandatory=1
}}

Result

See CT_LISTBOX#active (needs {{ConfigPage|start}} and {{ConfigPage|end}} to render correctly).