CT/attribute – Template
< CT
(extracted "attribute" from Template:CT) |
Lou Montana (talk | contribs) (Remove ConfigPage usage) |
||
Line 48: | Line 48: | ||
|} | |} | ||
<pre>{{CT/attribute | <pre>{{CT/attribute | ||
| name=testArray | |name= testArray | ||
| value1={1,0,0,1} | |value1= { 1, 0, 0, 1 } | ||
| type1=Array | |type1= Array | ||
| description=This is a test array to test arrays. {{Feature|important|Notice Me!}} | |description= This is a test array to test arrays. {{Feature|important|Notice Me!}} | ||
}} | }} | ||
{{CT/attribute | {{CT/attribute | ||
| name=testAttribute | |name= testAttribute | ||
| value1="test" | |value1= "test" | ||
| type1=String | |type1= String | ||
| mandatory=1 | |mandatory= 1 | ||
}}</pre> | }}</pre> | ||
== Result == | == Result == | ||
See | |||
See {{Link|CT_LISTBOX#active}}. | |||
</noinclude> | </noinclude> |
Latest revision as of 16:16, 13 April 2025
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.