Open main menu

Difference between revisions of "Template:PrintCommunityTopicCurrentTheories"

 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
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.:
+
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.  
  
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:
+
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
* 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:'''
 
'''Parameters:'''
Line 76: Line 64:
 
     --><!--
 
     --><!--
 
     -->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!--
 
     -->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!--
 +
    -->{{#vardefine: varTheoryPrint|[[{{#arrayindex: varTheories|0}}]]|}}<!--
 
     --><!--
 
     --><!--
 
   -->|<!--
 
   -->|<!--
Line 81: Line 70:
 
     --><!--
 
     --><!--
 
     -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!--
 
     -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!--
 +
    -->{{#vardefine: varTheoryPrint|{{#arrayindex: varTheories|0}}|}}<!--
 
     --><!--
 
     --><!--
 
   -->}}<!-- if links
 
   -->}}<!-- if links
Line 139: Line 129:
 
   --><!-- 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|&#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
 
  
 
   --><!--
 
   --><!--

Latest revision as of 23:17, 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.


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.