Difference between revisions of "Template:PrintDisciplineAcceptedCoreQuestionsDetails"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used to print the details of accepted core questions of the given discipline. It displays the descriptions of questions and other details of theor...")
 
Line 19: Line 19:
  
 
   --><!-- Get the list of all core questions to see if there are any
 
   --><!-- Get the list of all core questions to see if there are any
   -->{{#arraydefine: varQuestions<!--
+
   -->{{#arraydefine: arrayQuestions<!--
 
   -->|{{#ask:<!--
 
   -->|{{#ask:<!--
 
     -->[[SubObjectCategory::Discipline Core Question]]<!--
 
     -->[[SubObjectCategory::Discipline Core Question]]<!--
Line 35: Line 35:
  
 
   --><!-- remove duplicates
 
   --><!-- remove duplicates
   -->{{#arrayunique: varQuestions}}<!--
+
   -->{{#arrayunique: arrayQuestions}}<!--
 
   
 
   
   -->{{#ifeq: {{#arraysize: varQuestions}}|0<!--
+
   -->{{#ifeq: {{#arraysize: arrayQuestions}}|0<!--
 
   -->|<!--  
 
   -->|<!--  
 
   
 
   
Line 50: Line 50:
  
 
     --><!-- Print the core questions
 
     --><!-- Print the core questions
     -->{{#arrayprint: varQuestions||varQuestion<!--
+
     -->{{#arrayprint: arrayQuestions||varQuestion<!--
 
     -->|<!--
 
     -->|<!--
 
       --><!--
 
       --><!--
Line 91: Line 91:
 
       -->}}<!--arrayprint  
 
       -->}}<!--arrayprint  
  
     -->}}<!--arrayprint varQuestions
+
     -->}}<!--arrayprint arrayQuestions
  
 
     -->{{{outro|}}}<!--
 
     -->{{{outro|}}}<!--

Revision as of 12:38, 29 June 2024

This template is used to print the details of accepted core questions of the given discipline. It displays the descriptions of questions and other details of theories accepted on a given topic by sorting them according to their topic's sorting order. Each question is presented under its own subheading.

The template is community-agnostic: it presents all the answers to the topic accepted by any community.


NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.


Parameters:

  • |discipline= - the discipline.
  • |intro= - initial text that precedes the output, if at least some results exist.
  • |outro= - text that is appended to the output, if at least some results exist.
  • |default= - if, for any reason, the query returns no results, this will be printed instead.