Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 10: Line 10:
 
* <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>|link=</nowiki></code> - 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.
 
* <code><nowiki>|link=</nowiki></code> - 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.
* <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent).
+
* <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.
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Line 29: Line 29:
 
  -->|0={{{default|}}}<!--  
 
  -->|0={{{default|}}}<!--  
 
  -->|1={{{intro|}}}<!--
 
  -->|1={{{intro|}}}<!--
   -->{{{theory|}}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!--
+
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 +
  -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted theory on the subject is {{{theory|}}}.<!--
 +
  -->|{{{theory|}}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!--
 +
  -->}}<!--
 
   -->{{{outro|}}}<!--
 
   -->{{{outro|}}}<!--
 
  -->|{{{intro|}}}<!--
 
  -->|{{{intro|}}}<!--
  -->{{{theory|}}} is currently accepted by&#32;<!--
+
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
   -->{{#if: {{{pretty|}}}<!--
+
   -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted theory on the subject is {{{theory|}}}.<!--
   -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
+
   -->|{{{theory|}}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities.<!--
   -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--
+
   -->}}<!--
   -->}} communities.<!--
 
 
   -->{{{outro|}}}<!--
 
   -->{{{outro|}}}<!--
-->}}<!--
+
-->}}<!-- switch
 
--></includeonly>
 
--></includeonly>

Revision as of 14:40, 31 August 2016

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.
  • |communitiesfirst= - if yes, the communities will be mentioned first in the sentence. If no (default) the name of the theory will appear first.