This template documents the line of inheritance, or genealogy, of a class/interface. It is currently experimental because the W3C DOM employs a multiple-inheritance model and JavaScript can emulate such a model. This template's current implementation can only handle one direct ancestor for each type.
To use this template to document that ClassA inherits from ClassB, do this:
- put
{{:ClassB/~}}{{~}}[[ClassA]]as the only contents of ClassA/~ - Place {{genealogy}} where you want the line to appear in ClassA (typically the article's top)
- make sure ClassB/~ exists, if it does not, continue at step 1. ;-)
A class that inherits from no other class should simply have a link to itself on its ~ subpage (see Object/~ for an example).