Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 36: Line 36:
 
--><!--
 
--><!--
 
-->{{#switch: {{#arraysize: values}}<!--
 
-->{{#switch: {{#arraysize: values}}<!--
  -->|0={{{default|}}}<!--  
+
 
  -->|1={{{intro|}}}<!--
+
  -->|<!--
 +
  --><!-- No values
 +
  --><!--
 +
  -->0={{{default|}}}<!--  
 +
 
 +
  -->|<!--
 +
  --><!-- One value
 +
  --><!--
 +
  -->1={{{intro|}}}<!--
 
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
   -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 
   -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
Line 45: Line 53:
 
   --><!-- add formulation text if necessary
 
   --><!-- add formulation text if necessary
 
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
     -->{{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--  
+
     -->{{#var: varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--  
 
   -->}}<!-- if formulation text
 
   -->}}<!-- if formulation text
 
   --><!--
 
   --><!--
Line 64: Line 72:
 
   --><!--
 
   --><!--
 
   -->{{{outro|}}}<!--
 
   -->{{{outro|}}}<!--
  -->|{{{intro|}}}<!--
+
 
 +
  -->|<!--
 +
  --><!-- Multiple values
 +
  --><!--
 +
  -->{{{intro|}}}<!--
 
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
   -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 
   -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
Line 72: Line 84:
 
   --><!-- add formulation text if necessary
 
   --><!-- add formulation text if necessary
 
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
     -->{{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--  
+
     -->{{#var: varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--  
 
   -->}}<!-- if formulation text
 
   -->}}<!-- if formulation text
 
   --><!--
 
   --><!--

Revision as of 15:57, 24 January 2023

This template is used to print the list of communities where the theory is currently accepted.

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

Parameters:

  • |theory= - the theory.
  • |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= - determines whether the values are to be printed as links to the respective pages (where available); possible values are none, subject, all. If not given all is the default.
  • |linktheory= - if yes the theory name will also be a link to the theory's page, if no (default) it will be a plain text. The yes option is useful when calling this template from a non-theory page to get a link to the theory page.
  • |communitiesfirst= - if yes, the communities will be mentioned first in the sentence. If no (default) the name of the theory will appear first.
  • |skiptheorytitle= - if yes the theory's title will be replaced by "It ", if no (default) the full pagename of the theory will be used. The yes option is useful when calling this template from a theory page to avoid mentioning the theory's title several times in a row. NOTE: This parameter is ignored if communitiesfirst=yes.
  • |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.
  • |description= - if yes, then the description is added to each record.