Difference between revisions of "Template:PrintCommunityTopicCurrentTheories"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 139: Line 139:
 
   --><!-- Check if the formulations are to be printed here
 
   --><!-- Check if the formulations are to be printed here
 
   --><!--
 
   --><!--
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
+
   -->{{#ifeq: {{{formulationtext|no}}}|yes<!--
   --><!--
+
   -->|<!--
  --><!-- Check if the question has a formula for generating text from multiple answers
 
  --><!--
 
  
  -->{{#arraydefine: varTexts<!--
+
    --><!-- print
     -->|{{#ask:<!--
+
     -->They can be summarized as follows.&#32<!--
      -->[[SubObjectCategory::Current Answer]]<!--
+
     --><!--
      -->[[Community::{{{community|}}}]]<!--
 
      -->[[Topic::{{{topic|}}}]]<!--
 
      -->[[Answer Type::Complete||Inherited||Partial]]<!--
 
      -->|?Formulation Text<!--
 
      -->|mainlabel=-<!--
 
      -->|headers=hide<!--
 
      -->|sort=Answer Type, Sorting Order<!--
 
      -->|order=asc, asc<!--
 
      -->|link=none<!--
 
      -->|limit=10000<!--
 
    -->}}<!--
 
     -->||unique<!--
 
  -->}}<!--
 
  --><!--
 
  
  --><!-- print
+
    -->{{#ask:<!--
  --><!--
+
    -->[[SubObjectCategory::Current Answer]]<!--  
  -->They state: {{#arrayprint: varTexts||varText|varText&#32;}}<!--
+
    -->[[Community::{{{community|}}}]]<!--  
 +
    -->[[Topic::{{{topic|}}}]]<!--
 +
    -->[[Answer Type::Complete||Inherited||Partial]]<!--
 +
    -->|?Formulation Text<!--
 +
    -->|mainlabel=-<!--
 +
    -->|headers=hide<!--
 +
    -->|sort=Answer Type, Sorting Order<!--
 +
    -->|order=asc, asc<!--
 +
    -->|format=template<!--
 +
    -->|template=Result-space-separated<!--
 +
    -->|link=none<!--
 +
    -->|limit=10000<!--
 +
    -->}}<!--
 +
    --><!--
  
  --><!--
 
 
   -->}}<!-- ifeq formulation text
 
   -->}}<!-- ifeq formulation text
 
  
 
   --><!--
 
   --><!--

Revision as of 21:58, 26 February 2023

This template is used to print the list of theories accepted by the community on the given topic. By default, the template prints the page names only; it doesn't print the formulations. If formulations are also required, they are grouped, whenever possible, into combined sentences. E.g.:

Suppose the question Epistemic Stances Towards Theories has several accepted answers, such as:

  • The stance of theory acceptance can be taken towards theories.
  • The stance of theory pursuit can be taken towards theories.
  • The stance of theory use can be taken towards theories.

The template will print:

  • The stances of theory acceptance, theory pursuit, and theory use can be taken towards theories.



NOTE: This is a work in progress. When completed it should replace Template:PrintCommunityTopicCurrentTheoriesList.


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

Parameters:

  • |community= - the community.
  • |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.
  • |link= - if yes, then the links to pages will be printed; otherwise (default) no links will be added.
  • |formulationtext= - if yes, the formulation text will also be printed.
  • |communityfirst= - if yes, the community will be mentioned first in the sentence. If no (default), the name of the theories will appear first.