Difference between revisions of "Template:PrintDisciplineAcceptedCoreQuestionsDetails"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 84: Line 84:
 
       -->{{#arrayunique: varAnswers}}<!--
 
       -->{{#arrayunique: varAnswers}}<!--
  
       --><br/><!-- print
+
       --><!-- check the array size and print the details
      -->{{#arrayprint: varAnswers||varTheory<!--
+
      -->{{#ifeq: {{#arraysize: varAnswers}}|0||<!--
      -->|<!--
+
      --><div class="mw-collapsible mw-collapsed"><!--
 +
      --><!-- print
 +
      -->{{#arrayprint: varAnswers||varTheory<!--
 +
        -->|<!--
  
        -->{{PrintTheoryDetails<!--
+
        -->{{PrintTheoryDetails<!--
        -->|theory=varTheory<!--
+
          -->|theory=varTheory<!--
        -->|formulationtext=yes<!--
+
          -->|formulationtext=yes<!--
        -->|formulationfile=yes<!--
+
          -->|formulationfile=yes<!--
        -->|description=yes<!--
+
          -->|description=yes<!--
        -->|link=yes<!--
+
          -->|link=yes<!--
        -->}}<!--  
+
        -->}}<!--  
  
      -->}}<!--arrayprint  
+
      -->}}<!--arrayprint  
 +
     
 +
      --></div><!--
  
 +
      -->}}<!-- ifeq
 +
 
 
     -->}}<!--arrayprint arrayQuestions
 
     -->}}<!--arrayprint arrayQuestions
  

Revision as of 12:58, 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.