Difference between revisions of "Template:PrintDisciplineAcceptedCoreQuestionsDetails"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
     -->[[SubObjectCategory::Discipline Core Question]]<!--
 
     -->[[SubObjectCategory::Discipline Core Question]]<!--
 
     -->[[Discipline::{{{discipline|}}}]]<!--
 
     -->[[Discipline::{{{discipline|}}}]]<!--
     -->|?Question<!--
+
     -->|?Core Question<!--
 
     -->|mainlabel=-<!--
 
     -->|mainlabel=-<!--
 
     -->|headers=hide<!--
 
     -->|headers=hide<!--
Line 58: Line 58:
  
 
       --><!-- Add the question and the description  
 
       --><!-- Add the question and the description  
       --><p>{{#show: varQuestion|?Question|link=none}}</p><!--
+
       --><p>{{#show: varQuestion|?Core Question|link=none}}</p><!--
 
       -->{{PrintTopicAcceptedTheoriesFormulations<!--
 
       -->{{PrintTopicAcceptedTheoriesFormulations<!--
 
       -->|topic=varQuestion<!--
 
       -->|topic=varQuestion<!--
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||<p></p>
      -->|<!--
+
====Details====
 +
<div class="mw-collapsible mw-collapsed"><!--
  
        -->{{PrintTheoryDetails<!--
+
      --><!-- print
        -->|theory=varTheory<!--
+
      -->{{#arrayprint: varAnswers||varTheory<!--
        -->|formulationtext=yes<!--
+
        -->|<!--
        -->|formulationfile=yes<!--
 
        -->|description=yes<!--
 
        -->|link=yes<!--
 
        -->}}<!--  
 
  
      -->}}<!--arrayprint
+
        -->{{PrintTheoryDetails<!--
 +
          -->|theory=varTheory<!--
 +
          -->|formulationtext=yes<!--
 +
          -->|formulationfile=yes<!--
 +
          -->|description=yes<!--
 +
          -->|link=yes<!--
 +
        -->}}<!--  
  
 +
      -->}}<!--arrayprint
 +
     
 +
      -->
 +
 +
</div><!--
 +
 +
      -->}}<!-- ifeq
 +
 
 
     -->}}<!--arrayprint arrayQuestions
 
     -->}}<!--arrayprint arrayQuestions
  

Latest revision as of 08:34, 30 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.