Difference between revisions of "Template:SetDisciplineCoreQuestions"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
For each community where the discipline has core questions, the template searches for core question claims and, if found, creates subobjects (one for each association claim) with the following properties:
 
For each community where the discipline has core questions, the template searches for core question claims and, if found, creates subobjects (one for each association claim) with the following properties:
* <code><nowiki>SubObjectCategory</nowiki></code> = "Discipline Core Questions".
+
* <code><nowiki>SubObjectCategory</nowiki></code> = "Discipline Core Question".
 
* <code><nowiki>Community</nowiki></code> - the community.
 
* <code><nowiki>Community</nowiki></code> - the community.
 
* <code><nowiki>Discipline</nowiki></code> - the discipline.
 
* <code><nowiki>Discipline</nowiki></code> - the discipline.
* <code><nowiki>Question</nowiki></code> - the core questions of the discipline (uses <code><nowiki>|+sep=,</nowiki></code>).
+
* <code><nowiki>Theory</nowiki></code> - the page for the accepted core question claim.
* <code><nowiki>Theory</nowiki></code> - the pages for the accepted core question claims for ease of access (uses <code><nowiki>|+sep=,</nowiki></code>).
+
* <code><nowiki>Question</nowiki></code> - the core questions (topic page) for ease of access.
 +
* <code><nowiki>Sorting Order</nowiki></code> - the sorting order of the question.
 +
* <code><nowiki>Completeness</nowiki></code> - {None, Complete, Partial}.
  
 
'''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
 
'''NOTE:''' As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.
Line 29: Line 31:
 
       --><!-- no claims found: store an empty subobject
 
       --><!-- no claims found: store an empty subobject
 
       -->{{#subobject:<!--  
 
       -->{{#subobject:<!--  
       -->|SubObjectCategory=Discipline Core Questions<!--  
+
       -->|SubObjectCategory=Discipline Core Question<!--  
 
       -->|Discipline={{{discipline|}}}<!--  
 
       -->|Discipline={{{discipline|}}}<!--  
 
       -->|Community=varCommunity<!--  
 
       -->|Community=varCommunity<!--  
      -->|Completeness=None<!--
 
 
       -->|Theory=<!--  
 
       -->|Theory=<!--  
 
       -->|Question=<!--
 
       -->|Question=<!--
 +
      -->|Sorting Order=<!--
 +
      -->|Completeness=None<!--
 
       -->}}<!-- subobject
 
       -->}}<!-- subobject
 
       --><!--
 
       --><!--
 
     -->|<!--
 
     -->|<!--
      --><!-- claims are found
 
      --><!--
 
      --><!-- get the question pages to store for the ease of access
 
      -->{{#arraydefine: varQuestions<!--
 
      -->|{{#ask:<!--
 
        -->[[SubObjectCategory::Acceptance Record]]<!--
 
        -->[[Topic::{{{discipline|}}}]]<!--
 
        -->[[Community::varCommunity]]<!--
 
        -->[[Still Accepted::true]]<!--
 
        -->|?Element.Question<!--
 
        -->|headers=hide<!--
 
        -->|mainlabel=-<!--
 
        -->|link={{{link|}}}<!--
 
        -->|limit=10000<!--
 
        -->}}<!--
 
      -->| , |unique<!--
 
      -->}}<!-- array define
 
      -->{{#arrayunique: varQuestions}}<!-- remove duplicates
 
      --><!--
 
      --><!-- store the subobject
 
      -->{{#subobject:<!--
 
      -->|SubObjectCategory=Discipline Core Questions<!--
 
      -->|Discipline={{{discipline|}}}<!--
 
      -->|Community=varCommunity<!--
 
      -->|Theory={{#arrayprint: varTheories|,|@@@@|@@@@}}|+sep=,<!--
 
      -->|Question={{#arrayprint: varQuestions|,|@@@@|@@@@}}|+sep=,<!--
 
      -->|Completeness=Complete<!--
 
      -->}}<!-- subobject
 
      --><!--
 
 
       --><!--
 
       --><!--
 +
      --><!-- claims are found: store subobjects for each theory
 +
      -->{{#arrayprint: varTheories||varTheory<!--
 +
      -->|<!--
 +
 +
        --><!-- get the question and the sorting order
 +
 +
        -->{{#vardefine: varQuestion|{{#show: varTheory|?Question|link=none}}}}<!--
 +
        -->{{#vardefine: varSortingOrder|{{#show: {{#var:varQuestion}}|?Sorting Order|link=none}}}}<!--
 +
 +
        --><!-- store the subobject
 +
 +
        -->{{#subobject:<!--
 +
        -->|SubObjectCategory=Discipline Core Question<!--
 +
        -->|Discipline={{{discipline|}}}<!--
 +
        -->|Community=varCommunity<!--
 +
        -->|Theory=varTheory<!--
 +
        -->|Question={{#var: varQuestion}}<!--
 +
        -->|Sorting Order={{#var: varSortingOrder}}<!--
 +
        -->|Completeness=Partial<!--
 +
        -->}}<!-- subobject
 +
 +
      -->}}<!-- arrayprint varTheories
 +
 
     -->}}<!-- ifexpr
 
     -->}}<!-- ifexpr
    --><!--
+
 
 
   -->}}<!-- arrayprint varCommunities
 
   -->}}<!-- arrayprint varCommunities
  --><!--
+
 
 
-->}}<!-- if term
 
-->}}<!-- if term
 
--></includeonly>
 
--></includeonly>

Revision as of 10:59, 29 June 2024

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

For each community where the discipline has core questions, the template searches for core question claims and, if found, creates subobjects (one for each association claim) with the following properties:

  • SubObjectCategory = "Discipline Core Question".
  • Community - the community.
  • Discipline - the discipline.
  • Theory - the page for the accepted core question claim.
  • Question - the core questions (topic page) for ease of access.
  • Sorting Order - the sorting order of the question.
  • Completeness - {None, Complete, Partial}.

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

Parameters:

  • |discipline= - the discipline page.