Difference between revisions of "Template:PrintTopicAcceptedTheoriesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 15: Line 15:
 
* Theory 4: Community B
 
* Theory 4: Community B
 
* Theory 5: Community C
 
* Theory 5: Community C
 +
 +
Formulation texts are printed in part one if <code><nowiki>formulationtext=one</nowiki></code>.
  
 
'''Part 2. Details''': A (potentially detailed) exposition of each of the accepted theories. This can include any combination of the following:
 
'''Part 2. Details''': A (potentially detailed) exposition of each of the accepted theories. This can include any combination of the following:
* formulation text (if <code><nowiki>formulationtext=yes</nowiki></code>)
+
* formulation text (if <code><nowiki>formulationtext=two</nowiki></code>)
 
* formulation file (if <code><nowiki>formulationfile=yes</nowiki></code>)
 
* formulation file (if <code><nowiki>formulationfile=yes</nowiki></code>)
 
* description (if <code><nowiki>description=yes</nowiki></code>)
 
* description (if <code><nowiki>description=yes</nowiki></code>)
Line 29: Line 31:
 
* <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist.
 
* <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist.
 
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead.
 
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead.
* <code><nowiki>|formulationtext=</nowiki></code> - if ''yes'', then the formulation of the theory is added to each record.
+
* <code><nowiki>|formulationtext=</nowiki></code> - if ''one'', then the formulation of the theory is added in part 1, if ''two'', it will be added to part 2.
 
* <code><nowiki>|formulationfile=</nowiki></code> - if ''yes'', then the file with the formulation diagram is added to each record.
 
* <code><nowiki>|formulationfile=</nowiki></code> - if ''yes'', then the file with the formulation diagram is added to each record.
 
* <code><nowiki>|description=</nowiki></code> - if ''yes'', then the first paragraph of the description is added to each record.
 
* <code><nowiki>|description=</nowiki></code> - if ''yes'', then the first paragraph of the description is added to each record.
Line 91: Line 93:
 
         -->|topic={{{topic|}}}<!--
 
         -->|topic={{{topic|}}}<!--
 
         -->|communityfirst={{{communitiesfirst|no}}}<!--
 
         -->|communityfirst={{{communitiesfirst|no}}}<!--
         -->|formulationtext=yes<!--
+
         -->|formulationtext={{#ifeq: {{{formulationtext|}}}|one|yes|no}}<!--
 
         -->|link=yes<!--
 
         -->|link=yes<!--
 
         -->|linktheory=yes<!--
 
         -->|linktheory=yes<!--
Line 114: Line 116:
 
         -->|theory=varTheory<!--
 
         -->|theory=varTheory<!--
 
         -->|communitiesfirst={{{communitiesfirst|no}}}<!--
 
         -->|communitiesfirst={{{communitiesfirst|no}}}<!--
         -->|formulationtext=yes<!--
+
         -->|formulationtext={{#ifeq: {{{formulationtext|}}}|one|yes|no}}<!--
 
         -->|link=yes<!--
 
         -->|link=yes<!--
 
         -->|linktheory=yes<!--
 
         -->|linktheory=yes<!--
Line 140: Line 142:
 
     --><!-- Add the formulation text if necessary
 
     --><!-- Add the formulation text if necessary
 
     --><!--  
 
     --><!--  
     -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
+
     -->{{#ifeq: {{{formulationtext|}}}|two|<!--
 
       -->[[varTheory]] states: "{{#show: varTheory|?Formulation Text|link=none}}"&#32;<!--  
 
       -->[[varTheory]] states: "{{#show: varTheory|?Formulation Text|link=none}}"&#32;<!--  
 
     -->}}<!-- if formulation text
 
     -->}}<!-- if formulation text

Revision as of 22:12, 24 January 2023

This template is used to print a list of accepted theories on this topic. It displays the theories accepted on a given topic. There are several ways this can be printed depending on the parameters. The print out consists of two main parts:

Part 1. Summary: A short statement of which theories are accepted in which community. This can be done in two options depending on the value of groupbycommunity:

Option 1: (if groupbycommunity=yes)

  • Community A: Theory 1, Theory 2, Theory 3
  • Community B: Theory 2, Theory 3, Theory 4
  • Community C: Theory 1, Theory 3, Theory 5

Option 2: (if groupbycommunity=no or empty)

  • Theory 1: Community A, Community C
  • Theory 2: Community A, Community B
  • Theory 3: Community A, Community B, Community C
  • Theory 4: Community B
  • Theory 5: Community C

Formulation texts are printed in part one if formulationtext=one.

Part 2. Details: A (potentially detailed) exposition of each of the accepted theories. This can include any combination of the following:

  • formulation text (if formulationtext=two)
  • formulation file (if formulationfile=yes)
  • description (if description=yes)


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.
  • |formulationtext= - if one, then the formulation of the theory is added in part 1, if two, it will be added to part 2.
  • |formulationfile= - if yes, then the file with the formulation diagram is added to each record.
  • |description= - if yes, then the first paragraph of the description is added to each record.
  • |bullets= - if yes, a bullet-list will be produced in Part 1.
  • |linebreak= - if yes, each theory's entry will start from a new line; if no (default), a mere space will be added between sentences.
  • |communitiesfirst= - if yes, the communities will be mentioned first in the sentence. If no (default) the name of the theory will appear first.
  • |groupbycommunity= - if yes, the result will be grouped by community (e.g. Theories A, B, C are accepted by community X. Theories A, D, E are accepted by community Y.) If no (default) the result will be grouped by theory (e.g. Theory A is accepted in communities X and Y.).