Template:VIServerGetParent: Difference between revisions
Appearance
m Added some test numbers |
mNo edit summary |
||
| Line 282: | Line 282: | ||
|1234567=123456 | |1234567=123456 | ||
|12345678=1234567 | |12345678=1234567 | ||
|123456789=1234567890 | |123456789=12345678 | ||
|1234567890=123456789 | |||
|12345678901=1234567890 | |12345678901=1234567890 | ||
|123456789012=12345678901 | |123456789012=12345678901 | ||
Revision as of 03:57, 1 September 2019
Usage
This template is a lookup table. The input is the Class ID of a class in the VI Server Class Hierarchy. It returns the Class ID of it's parent class (the class it inherits from), unless it is a top-level class where it returns a blank or null.
Syntax is as follows:
{{VIServerGetParent|{{{1}}}}}
where:
| Parameter | Description | Default |
|---|---|---|
{{{1}}}
|
The Class ID of a class in the VI Server Class Hierarchy. |
|
Example: Class with a Parent
{{VIServerGetParent|36}}
Result: (3)
36 is the Class ID of GObject class, whose Parent Class is Generic class, whose Class ID is 3.
Example: Class without a Parent
{{VIServerGetParent|1}}
Result: ()
1 is the Class ID of Application class, which is a top-level class and does not have a Parent Class.
Example: Passing in a blank or null returns a null
{{VIServerGetParent|}}
Result: ()