Open main menu

Template:SetTermInheritanceHierarchy

Revision as of 18:38, 12 January 2023 by Hakob Barseghyan (talk | contribs) (Created page with "<noinclude> This template is used to save the currently accepted associations claims (aggregation, composition, etc.) of the given class. The template creates a hierarchy of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is used to save the currently accepted associations claims (aggregation, composition, etc.) of the given class.

The template creates a hierarchy of classes for the given term by adding the following lists for ease of access:

  • Subsumed items - A list that includes the page itself as well as all of its subclasses, the subclasses of subclasses etc. This is similar to MediWiki's notion of Category where a category includes all of its subcategories as well as itself.
  • Descendant items - A list that includes the page's subclasses, the subclasses of subclasses etc., but not itself. This data can be used to check if a given class is a subtype (sub, subtype, etc.) of another class but not itself.
  • Ancestor items - A list that includes the page's superclasses, the superclasses of superclasses etc., but not itself.

NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.

Parameters:

  • |term= - the term page.