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>|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.
 
* <code><nowiki>|description=</nowiki></code> - if ''yes'', then the description is added to each record.
 
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#arraydefine: values<!--
+
-->{{#if: {{{theory|}}}<!--
-->|{{#ask:<!--
+
-->|<!--
  -->[[SubObjectCategory::Topic Current Answer]]<!--  
+
 
  -->[[Theory::{{{theory|}}}]]<!--  
+
  -->{{#arraydefine: varCommunities<!--
  -->|?Community<!--
+
  -->|{{#ask:<!--
  -->|mainlabel=-<!--
+
    -->[[SubObjectCategory::Current Answer]]<!--  
  -->|headers=hide<!--
+
    -->[[Theory::{{{theory|}}}]]<!--  
  -->|link={{#ifeq:{{{link|no}}}|yes|all|none}}<!--
+
    -->[[Answer Type::Complete||Inherited||Partial]]<!--
  -->|limit=10000<!--
+
    -->|?Community<!--
 +
    -->|mainlabel=-<!--
 +
    -->|headers=hide<!--
 +
    -->|link={{#ifeq:{{{link|no}}}|yes|all|none}}<!--
 +
    -->|limit=10000<!--
 +
    -->}}<!--
 +
  -->| , |unique<!--
 
   -->}}<!--
 
   -->}}<!--
-->| , |unique<!--
 
-->}}<!--
 
--><!--
 
-->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|definition of the term|answer to the question}}|}}<!--
 
--><!--
 
-->{{#vardefine: varTextPrefix|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|It is defined as:|It states:}}|}}<!--
 
--><!--
 
-->{{#switch: {{#arraysize: values}}<!--
 
 
-->|0=<!--
 
  --><!-- No values: print the default
 
 
   --><!--
 
   --><!--
   -->{{{default|}}}<!--
+
   -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|definition of the term|answer to the question}}|}}<!--
 
 
-->|1=<!--
 
  --><!-- One value
 
 
   --><!--
 
   --><!--
   -->{{{intro|}}}<!--
+
   -->{{#vardefine: varTextPrefix|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|It is defined as:|It states:}}|}}<!--
  -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
  -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 
  -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community as the best available {{#var:varAcceptedText}}.&#32;<!--
 
  -->}}<!--
 
 
   --><!--
 
   --><!--
   --><!-- add formulation text if necessary
+
   -->{{#switch: {{#arraysize: varCommunities}}<!--
  -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
+
 
    -->{{#var: varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--  
+
  -->|0=<!--
  -->}}<!-- if formulation text
+
    --><!-- No values: print the default
  --><!--
+
    --><!--
  --><!-- add the diagram if necessary
+
    -->{{{default|}}}<!--
  -->{{#ifeq: {{{formulationfile|no}}}|yes|<!--
+
 
    --><!--
+
  -->|1=<!--
    -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
+
    --><!-- One value
 +
    --><!--
 +
 
 +
    -->{{{intro|}}}<!--
 +
 
 +
    -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 +
    -->|In {{#arrayprint: varCommunities||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 +
    -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: varCommunities||@@@@|@@@@|print=pretty}} community as the best available {{#var:varAcceptedText}}.&#32;<!--
 +
    -->}}<!--
 +
    --><!--
 +
 
 +
    -->{{{outro|}}}<!--
 +
 
 +
  -->|<!--
 +
    --><!-- Multiple values
 +
    --><!--
 +
 
 +
    -->{{{intro|}}}<!--
 +
 
 +
    -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 +
    -->|In {{#arrayprint: varCommunities||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 +
    -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: varCommunities||@@@@|@@@@|print=pretty}} communities as the best available {{#var:varAcceptedText}}.&#32;<!--
 +
    -->}}<!--
 +
    --><!--
  
{{PrintDiagramFile|diagram file={{#show: {{{theory|}}}|?Formulation File|link=none}}|}}
+
    -->{{{outro|}}}<!--
<nowiki/>
 
<!--
 
    -->}}<!-- if diagram
 
  -->}}<!-- if formulation file
 
  --><!--
 
  --><!-- add description if necessary
 
  -->{{#ifeq: {{{description|no}}}|yes|{{#replace: {{#show: {{{theory|}}}|?Description|link=none}}|CITE_|CiteRef::}} [[{{{theory|}}}|Read More]]<br>
 
|}}<!--
 
  --><!--
 
  -->{{{outro|}}}<!--
 
  
-->|<!--
+
   -->}}<!-- switch
  --><!-- Multiple values
 
  --><!--
 
  -->{{{intro|}}}<!--
 
   -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
  -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!--
 
  -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities as the best available {{#var:varAcceptedText}}.&#32;<!--
 
  -->}}<!--
 
  --><!--
 
  --><!-- add formulation text if necessary
 
  -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
 
    -->{{#var: varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Text|link=none}}"&#32;<!--
 
  -->}}<!-- if formulation text
 
  --><!--
 
  --><!-- add the diagram if necessary
 
  -->{{#ifeq: {{{formulationfile|no}}}|yes|<!--
 
    --><!--
 
    -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>
 
  
{{PrintDiagramFile|diagram file={{#show: {{{theory|}}}|?Formulation File|link=none}}|}}
+
-->}}<!-- if
<nowiki/>
 
<!--
 
    -->}}<!-- if diagram
 
  -->}}<!-- if formulation file
 
  --><!--
 
  --><!-- add description if necessary
 
  -->{{#ifeq: {{{description|no}}}|yes|{{#replace: {{#show: {{{theory|}}}|?Description|link=none}}|CITE_|CiteRef::}} [[{{{theory|}}}|Read More]]<br>
 
|}}<!--
 
  --><!--
 
  -->{{{outro|}}}<!--
 
-->}}<!-- switch
 
 
--></includeonly>
 
--></includeonly>

Latest revision as of 22:27, 26 February 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= - if all, then the links to pages will be printed; otherwise (default) no links will be added.
  • |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.