Template:Catix/sandbox template treenode/doc
Jump to navigation
Jump to search
{{treenode|data type|key name|key name alternatives}}
Puts an icon corresponding to data type (with hover text), optionally puts name of the key, and optionally provides possible alternatives for the key (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|position, p}}: position keyframe *** {{treenode|float|x}} *** {{treenode|float|y}} ** {{treenode|obj|sca|scale, 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
- unknown: unknown type
Rationale
This template enables aesthetically pleasing data structure visualisations.