Template:Treenode

From Project Arrhythmia Wiki
Jump to navigation Jump to search

Unknown node type

{{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}}Object Array
{{treenode|obj|events}}Object events
{{treenode|bool|option|opt, o}}Boolean ("True" or "False") option (note)
{{treenode|str|name|n}}String 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>
  • Object events (note): Event keyframes.
    • Object pos (note): Position keyframe.
      • Floating Point x
      • Floating Point y
    • Object sca (note): Scale keyframe.
      • Floating Point x
      • Floating Point y

Data types

  • String str: String type.
  • Boolean ("True" or "False") bool: Boolean type.
  • Integer int: Integer (whole numbers) type.
  • Floating Point float: Floating point number type.
  • Object obj: Object type.
  • Object Array objarr: Array type, containing objects.
  • String Array strarr: Array type, containing strings.
  • Floating Point Array floatarr: Array type, containing floating point numbers.
  • Unknown node type unknown: Unknown type.

Rationale

This template enables aesthetically pleasing data structure visualisations.