Difference between revisions of "Template:SetDisciplineSubdisciplines"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used to save the currently accepted subdiscipline claims of the given discipline. For each community where the discipline is currently accepted,...")
 
 
Line 33: Line 33:
 
     -->{{#ifexpr: {{#arraysize:varTheories}} = 0 <!-- check if the array exists
 
     -->{{#ifexpr: {{#arraysize:varTheories}} = 0 <!-- check if the array exists
 
     -->|<!--
 
     -->|<!--
       --><!-- no claims found: store a subobject leaving Disjoint Group, Disjoints, and theory empty
+
       --><!-- no claims found: store a subobject leaving Disjoint Group, Disjoint Group Order, and Theory empty
 
       -->{{#subobject:<!--  
 
       -->{{#subobject:<!--  
 
       -->|SubObjectCategory=Discipline Current Hierarchy<!--  
 
       -->|SubObjectCategory=Discipline Current Hierarchy<!--  
Line 48: Line 48:
 
     -->|<!--
 
     -->|<!--
 
       --><!-- some claims are found: get the names of disjoint groups in the correct order  
 
       --><!-- some claims are found: get the names of disjoint groups in the correct order  
       -->{{#arraydefine: varGroups|{{PrintAcceptedDisjointGroupsList|discipline={{#var: varDiscipline}}|community=varCommunity}}|,|}}<!--
+
       -->{{#arraydefine: varGroups|{{PrintAcceptedDisjointSubdisciplinesList|discipline={{#var: varDiscipline}}|community=varCommunity}}|,|}}<!--
 
       --><!--
 
       --><!--
 
       --><!-- for each group, get the accepted theories
 
       --><!-- for each group, get the accepted theories
Line 72: Line 72:
 
           -->}}<!--
 
           -->}}<!--
 
           -->| , |unique<!--
 
           -->| , |unique<!--
         -->}}<!-- arraydefine supdisciplines
+
         -->}}<!-- arraydefine arraySubdisciplines
 
         --><!--
 
         --><!--
 
         --><!-- get the theories
 
         --><!-- get the theories
Line 96: Line 96:
 
         --><!--
 
         --><!--
 
         --><!-- store the subobject
 
         --><!-- store the subobject
        --><!-- store the subobject
 
 
         -->{{#subobject:<!--  
 
         -->{{#subobject:<!--  
 
           -->|SubObjectCategory=Discipline Current Hierarchy<!--  
 
           -->|SubObjectCategory=Discipline Current Hierarchy<!--  

Latest revision as of 09:49, 30 June 2024

This template is used to save the currently accepted subdiscipline claims of the given discipline.

For each community where the discipline is currently accepted, the template searches for subdiscipline 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 = "Discipline Current Hierarchy".
  • Community - the community that accepts the theory.
  • Discipline - the discipline page. Note that this should be the discipline page, not the page for the respective hierarchy question.
  • Topic - the page for the respective hierarchy question for ease of access.
  • Question Type - Subdisciplines
  • Disjoint Group - the name of disjoint group.
  • Theory - the pages for the respective theories for ease of access (uses |+sep=,).
  • Subdisciplines - a comma separated list of disciplines (uses |+sep=,).

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

Parameters:

  • |discipline= - the discipline page.