Difference between revisions of "Template:SetTermOntologySubtypes"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Tags: Mobile edit Mobile web edit
Line 56: Line 56:
 
         --><!--  
 
         --><!--  
 
         --><!-- get the children
 
         --><!-- get the children
         -->{{#arraydefine: varSubtypes<!--
+
         -->{{#arraydefine: arraySubtypes<!--
 
           -->|<!--
 
           -->|<!--
 
           -->{{#ask:<!--
 
           -->{{#ask:<!--
Line 75: Line 75:
 
         --><!--
 
         --><!--
 
         --><!-- get the theories
 
         --><!-- get the theories
         -->{{#arraydefine: varSubtypeTheories<!--
+
         -->{{#arraydefine: arraySubtypeTheories<!--
 
           -->|<!--
 
           -->|<!--
 
           -->{{#ask:<!--
 
           -->{{#ask:<!--
Line 92: Line 92:
 
           -->| , |unique<!--
 
           -->| , |unique<!--
 
         -->}}<!-- arraydefine theories
 
         -->}}<!-- arraydefine theories
 +
        --><!--
 +
        -->{{#vardefine: varSubtypes| {{#arrayprint: arraySubtypes|, |@@@@|@@@@}}|}}<!--
 +
        -->{{#vardefine: varSubtypeTheories| {{#arrayprint: arraySubtypeTheories|, |@@@@|@@@@}}|}}<!--
 
         --><!--
 
         --><!--
 
         --><!-- store the subobject
 
         --><!-- store the subobject
Line 102: Line 105:
 
           -->|Disjoint Group=varGroup<!--  
 
           -->|Disjoint Group=varGroup<!--  
 
           -->|Disjoint Group Order=<!--  
 
           -->|Disjoint Group Order=<!--  
           -->|Theory={{#arrayprint: varSubtypeTheories|,&#32;|@@@@|@@@@}}<!--  
+
           -->|Theory=<!--  
           -->|Subtypes={{#arrayprint: varSubtypes|,&#32;|@@@@|@@@@}}<!--  
+
           -->|Subtypes=<!--  
 
         -->}}<!-- subobject
 
         -->}}<!-- subobject
 
         --><!--
 
         --><!--

Revision as of 22:07, 25 December 2022

This template is used to save the currently accepted subtypes claims of the given class.

For each community where the term is currently accepted, the template searches for subtype claims, groups these claims by their Disjoint Group, and then for each group as well as each ungrouped claim creates a subobject with the following properties:

  • SubObjectCategory = "Topic Current Ontology".
  • Community - the community that accepts the theory.
  • Term - the term page. Note that this should be the definitional topic page, not its the page for the respective ontological question.
  • Topic - the page for the respective ontological question for ease of access.
  • Ontological Question Type - Disjointness
  • Disjoint Group - the name of disjoint group.
  • Theory - the pages for the respective theories for ease of access (uses |+sep=,).
  • Subtypes - a comma separated list of children classes (uses |+sep=,).

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

Parameters:

  • |term= - the term page.