Difference between revisions of "Template:PrintTopicAcceptedTheoriesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 52: Line 52:
 
   --><!--
 
   --><!--
 
   --><!-- in this version only the theory formulation can be included / the diagram file cannot
 
   --><!-- in this version only the theory formulation can be included / the diagram file cannot
   --><!--
+
   --><!-- they come separately at the end, after it has been listed which community accepts which theories
 +
  --><!-- add formulation text if necessary
 +
  -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 +
    --><!--
 +
    --><!-- get the list of theories
 +
    -->{{#arraydefine: varAccTheories<!--
 +
      -->|{{#ask:<!--
 +
        -->[[SubObjectCategory::Acceptance Record]]<!--
 +
        -->[[Topic::{{{topic|}}}]]<!--
 +
        -->[[Still Accepted::true]]<!--
 +
        -->|?Theory<!--
 +
        -->|mainlabel=-<!--
 +
        -->|headers=hide<!--
 +
        -->|link=none<!--
 +
        -->|limit=10000<!--
 +
      -->}}<!--
 +
      -->| , |unique<!--
 +
    -->}}<!-- arraydefine
 +
    --><!--
 +
    --><!-- remove duplicates
 +
    -->{{#arrayunique: varAccTheories}}<!--
 +
    --><!--
 +
    -->{{#switch: {{#arraysize: varAccTheories}}<!--
 +
      -->|0=<!--
 +
      -->|<!--
 +
      -->{{#arrayprint: varAccTheories<!--
 +
        -->||@@@@<!--
 +
        -->|{{#ifeq: {{{linebreak|}}}|yes|<nowiki/>
 +
|&#32;}}{{#ifeq: {{{bullets|}}}|yes|*|}}<!--
 +
        -->&#32;@@@@ states "{{#show: @@@@|?Formulation Text|link=none}}"<!--
 +
      -->}}<!--arrayprint
 +
    -->}}<!-- switch
 +
    --><!--
 +
  -->}}<!-- if formulation text
 
   --><!--
 
   --><!--
 
   -->|<!-- no
 
   -->|<!-- no

Revision as of 15:42, 22 June 2017

This template is used to print a list of accepted theories on this topic. It looks for the accepted theories on the topic and then indicates which communities it is currently accepted by.

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 yes, then the formulation of the theory is added to each record.
  • |formulationfile= - if yes, then the file with the formulaiton diagram is added to each record.
  • |bullets= - if yes, a bullet-list will be produced.
  • |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.).