Template:VIServerGetClassName: Difference between revisions
Appearance
mNo edit summary |
m Category reorg |
||
(One intermediate revision by the same user not shown) | |||
Line 295: | Line 295: | ||
|16552=SetConstant | |16552=SetConstant | ||
|16553=MapConstant | |16553=MapConstant | ||
|}}</includeonly><noinclude> | |}}</includeonly><noinclude> | ||
Line 333: | Line 321: | ||
|} | |} | ||
'''Example:''' | '''Example:''' ''Class ID of a class that is in the [[VI Server Class Hierarchy]]'' | ||
''Class ID of a class that is in the [[VI Server Class Hierarchy]]'' | |||
36 is the Class ID of [[GObject class]]. | |||
<code> | <code> | ||
Line 344: | Line 333: | ||
Result: ({{VIServerGetClassName|36}}) | Result: ({{VIServerGetClassName|36}}) | ||
'''Example:''' ''Input that is not in the lookup table'' | |||
Passing a blank to the lookup won't be found and therefore returns a blank. | |||
<code> | <code> | ||
Line 356: | Line 344: | ||
Result: ({{VIServerGetClassName|}}) | Result: ({{VIServerGetClassName|}}) | ||
== See Also == | == See Also == | ||
Line 363: | Line 349: | ||
*[[Template:VIServerGetAncestors]] | *[[Template:VIServerGetAncestors]] | ||
*[[Template:VIServerGetChildren]] | *[[Template:VIServerGetChildren]] | ||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 13:21, 8 May 2020
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 Name in English, if found. If not found, it returns a blank or null.
Syntax is as follows:
{{VIServerGetClassName|{{{1}}}}}
where:
Parameter | Description | Default |
---|---|---|
{{{1}}}
|
The Class ID of a class in the VI Server Class Hierarchy. |
|
Example: Class ID of a class that is in the VI Server Class Hierarchy
36 is the Class ID of GObject class.
{{VIServerGetClassName|36}}
Result: (GObject)
Example: Input that is not in the lookup table
Passing a blank to the lookup won't be found and therefore returns a blank.
{{VIServerGetClassName|}}
Result: ()