Template:Treenode
Jump to navigation
Jump to search
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
{{treenode|data type|key name|note}}
Puts an icon corresponding to data type (with hover text), optionally puts name of the key, and optionally provides a note (hover text).
Usage examples
{{treenode|objarr}}
→
{{treenode|obj|events}}
→
events
{{treenode|bool|option|opt, o}}
→
option (note)
{{treenode|str|name|n}}
→
name (note)
Usage recommendation
This template was made for use inside treeviews (<div class="treeview"> </div>
.)
<div class="treeview"> * {{treenode|obj|events|e}}: Event keyframes. ** {{treenode|obj|pos|Before 4.20: `position`. Before 6.9: `p`}}: Position keyframe. *** {{treenode|float|x}} *** {{treenode|float|y}} ** {{treenode|obj|sca|Before 4.20: `s`}}: Scale keyframe. *** {{treenode|float|x}} *** {{treenode|float|y}} </div>
- events (note): Event keyframes.
- pos (note): Position keyframe.
- x
- y
- sca (note): Scale keyframe.
- x
- y
- pos (note): Position keyframe.
Data types
- str: String type.
- bool: Boolean type.
- int: Integer (whole numbers) type.
- float: Floating point number type.
- obj: Object type.
- objarr: Array type, containing objects.
- strarr: Array type, containing strings.
- floatarr: Array type, containing floating point numbers.
- unknown: Unknown type.