Difference between revisions of "Template:PrintTopicAcceptedTheoriesDetails"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
Line 28: Line 28:
 
     -->[[SubObjectCategory::Current Answer]]<!--
 
     -->[[SubObjectCategory::Current Answer]]<!--
 
     -->[[Topic::{{{topic|}}}]]<!--
 
     -->[[Topic::{{{topic|}}}]]<!--
     -->[[Answer Type::Complete||Inherited||Partial]]<!--  
+
     -->[[Completeness::Complete||Partial]]<!--     this excludes None
 
     -->|?Theory<!--
 
     -->|?Theory<!--
 
     -->|mainlabel=-<!--
 
     -->|mainlabel=-<!--
Line 57: Line 57:
 
     -->{{{intro|}}}<!--
 
     -->{{{intro|}}}<!--
  
     --><!-- Get the list of all complete accepted theories first
+
     --><!-- Get the list of all direct accepted theories first
 
     --><!--  
 
     --><!--  
     -->{{#arraydefine: varCompleteAnswers<!--
+
     -->{{#arraydefine: varDirectAnswers<!--
 
     -->|{{#ask:<!--
 
     -->|{{#ask:<!--
 
       -->[[SubObjectCategory::Current Answer]]<!--
 
       -->[[SubObjectCategory::Current Answer]]<!--
 
       -->[[Topic::{{{topic|}}}]]<!--
 
       -->[[Topic::{{{topic|}}}]]<!--
       -->[[Answer Type::Complete]]<!--  
+
       -->[[Directness::Direct]]<!--  
 
       -->|?Theory<!--
 
       -->|?Theory<!--
 
       -->|mainlabel=-<!--
 
       -->|mainlabel=-<!--
Line 76: Line 76:
 
     --><!--
 
     --><!--
 
     --><!-- remove duplicates
 
     --><!-- remove duplicates
     -->{{#arrayunique: varCompleteAnswers}}<!--
+
     -->{{#arrayunique: varDirectAnswers}}<!--
  
 
     --><!--  
 
     --><!--  
     --><!-- Print the complete answers
+
     --><!-- Print the direct answers
 
     --><!--  
 
     --><!--  
  
     -->{{#arrayprint: varCompleteAnswers||varTheory<!--
+
     -->{{#arrayprint: varDirectAnswers||varTheory<!--
 
     -->|<!--
 
     -->|<!--
 
       --><!--
 
       --><!--
Line 93: Line 93:
 
       -->}}<!--  
 
       -->}}<!--  
 
       --><!--
 
       --><!--
     -->}}<!--arrayprint varCompleteAnswers
+
     -->}}<!--arrayprint varDirectAnswers
  
  
Line 103: Line 103:
 
       -->[[SubObjectCategory::Current Answer]]<!--
 
       -->[[SubObjectCategory::Current Answer]]<!--
 
       -->[[Topic::{{{topic|}}}]]<!--
 
       -->[[Topic::{{{topic|}}}]]<!--
       -->[[Answer Type::Inherited||Partial]]<!--  
+
       -->[[Directness::Superanswer||Subanswer]]<!--  
 
       -->|?Original Topic<!--
 
       -->|?Original Topic<!--
 
       -->|mainlabel=-<!--
 
       -->|mainlabel=-<!--
 
       -->|headers=hide<!--
 
       -->|headers=hide<!--
       -->|sort=Answer Type, Sorting Order<!-- this assures that that inherited answers are displayed first
+
       -->|sort=Directness, Sorting Order<!-- this assures that that superanswers are displayed first
       -->|order=asc, asc<!--
+
       -->|order=desc, asc<!--
 
       -->|link=none<!--
 
       -->|link=none<!--
 
       -->|limit=10000<!--
 
       -->|limit=10000<!--
Line 136: Line 136:
 
           -->[[Topic::{{{topic|}}}]]<!--
 
           -->[[Topic::{{{topic|}}}]]<!--
 
           -->[[Original Topic::varOriginalTopic]]<!--
 
           -->[[Original Topic::varOriginalTopic]]<!--
           -->[[Answer Type::Inherited||Partial]]<!--  
+
           -->[[Directness::Superanswer||Subanswer]]<!--  
 
           -->|?Theory<!--
 
           -->|?Theory<!--
 
           -->|mainlabel=-<!--
 
           -->|mainlabel=-<!--
 
           -->|headers=hide<!--
 
           -->|headers=hide<!--
           -->|sort=Sorting Order<!--
+
           -->|sort=Directness, Sorting Order<!--     superanswers will be printed first
           -->|order=asc<!--
+
           -->|order=desc, asc<!--
 
           -->|link=none<!--
 
           -->|link=none<!--
 
           -->|limit=10000<!--
 
           -->|limit=10000<!--

Latest revision as of 10:59, 22 June 2024

This template is used to print the details of accepted theories on the given topic. It displays the descriptions and other details of theories accepted on a given topic by sorting them according to their topic's sorting order.

The template first tries to locate the direct (complete) answers to the question and present their descriptions.

After than, it presents the inherited answers, and then the partial answers. These two categories are presented under their respetive subheadings.

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:

  • |topic= - the topic.
  • |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.