Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 13: Line 13:
 
* <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the sentence. If ''no'' (default) the name of the theory will appear first.
 
* <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the sentence. If ''no'' (default) the name of the theory will appear first.
 
* <code><nowiki>|skiptheorytitle=</nowiki></code> - 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 <code><nowiki>communitiesfirst=yes</nowiki></code>.
 
* <code><nowiki>|skiptheorytitle=</nowiki></code> - 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 <code><nowiki>communitiesfirst=yes</nowiki></code>.
* <code><nowiki>|details=</nowiki></code> - if ''yes'', then details of the theory such as its formulation and diagram are added to each record.
+
* <code><nowiki>|formulationtext=</nowiki></code> - if ''yes'', then the formulation of the theory is added to each record.
 +
* <code><nowiki>|formulationfile=</nowiki></code> - if ''yes'', then the file with the formulaiton diagram is added to each record.
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Line 42: Line 43:
 
   -->}}<!--
 
   -->}}<!--
 
   --><!--
 
   --><!--
   --><!-- add details if necessary
+
   --><!-- add formulation text if necessary
   -->{{#ifeq: {{{details|no}}}|yes|<!--
+
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 
     --><nowiki/> {{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"<!--  
 
     --><nowiki/> {{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"<!--  
    --><!--  
+
  -->}}<!-- if formulation text
    --><!-- add image if exists Formulation File
+
  --><!--
 +
  --><!-- add the diagram if necessary
 +
  -->{{#ifeq: {{{formulationfile|no}}}|yes|<!--
 +
    --><!--  
 
     -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
 
     -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
  
Line 53: Line 57:
 
<!--  
 
<!--  
 
     -->}}<!-- if diagram
 
     -->}}<!-- if diagram
   -->}}<!-- if details
+
   -->}}<!-- if formulation file
 
   --><!--
 
   --><!--
 
   -->{{{outro|}}}<!--
 
   -->{{{outro|}}}<!--
Line 62: Line 66:
 
   -->}}<!--
 
   -->}}<!--
 
   --><!--
 
   --><!--
   --><!-- add details if necessary
+
   --><!-- add formulation text if necessary
   -->{{#ifeq: {{{details|no}}}|yes|<!--
+
   -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 
     --><nowiki/> {{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"<!--  
 
     --><nowiki/> {{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"<!--  
 +
  -->}}<!-- if formulation text
 +
  --><!--
 +
  --><!-- add the diagram if necessary
 +
  -->{{#ifeq: {{{formulationfile|no}}}|yes|<!--
 
     --><!--  
 
     --><!--  
    --><!-- add image if exists  Formulation File
 
 
     -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
 
     -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
  
Line 73: Line 80:
 
<!--  
 
<!--  
 
     -->}}<!-- if diagram
 
     -->}}<!-- if diagram
   -->}}<!-- if details
+
   -->}}<!-- if formulation file
 
   --><!--
 
   --><!--
 
   -->{{{outro|}}}<!--
 
   -->{{{outro|}}}<!--
 
-->}}<!-- switch
 
-->}}<!-- switch
 
--></includeonly>
 
--></includeonly>

Revision as of 15:07, 22 June 2017

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.