Difference between revisions of "Template:PrintCommunityTermCurrentSupertypesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 29: Line 29:
 
   -->|, |unique<!--
 
   -->|, |unique<!--
 
  -->}}<!-- array define
 
  -->}}<!-- array define
 +
--><!--
 +
-->{{#ifeq: {{{link|}}}|none<!--
 +
-->|<!--
 +
  -->{{#vardefine: varCommunity|{{{community}}}|}}<!--
 +
  -->{{#vardefine: varTerm|{{{term}}}|}}<!--
 +
-->|<!--
 +
  -->{{#vardefine: varCommunity|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]|}}<!--
 +
  -->{{#vardefine: varTerm|[[{{{term|}}}]]|}}<!--
 +
-->}}<!-- ifeq
 +
--><!--
 +
--><!--
 
--><!--
 
--><!--
 
-->{{#ifeq: {{#arraysize: arraySupertypes}}|0<!--
 
-->{{#ifeq: {{#arraysize: arraySupertypes}}|0<!--
 
  -->|<!--
 
  -->|<!--
 
   --><!-- no supertypes: return the default
 
   --><!-- no supertypes: return the default
   -->{{#ifeq: {{{communitiesfirst|}}}|yes|In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], there are currently no accepted supertypes of [[{{{term|}}}]].&#32;|There are currently no accepted supertypes of [[{{{term|}}}]] in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]].&#32;}}<!--
+
   -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, there are currently no accepted supertypes of {{#var: varTerm}}.&#32;|There are currently no accepted supertypes of {{#var: varTerm}} in {{#var: varCommunity}}.&#32;}}<!--
 
   --><!--
 
   --><!--
 
  -->|<!--
 
  -->|<!--
Line 50: Line 61:
 
   -->|<!--
 
   -->|<!--
 
     --><!-- add the intro
 
     --><!-- add the intro
     -->{{#ifeq: {{{communitiesfirst|}}}|yes|In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], the following {{#var: varTextSupertype}} of [[{{{term|}}}]] {{#var: varIsAre}} currently accepted|The following {{#var: varTextSupertype}} of [[{{{term|}}}]] {{#var: varIsAre}} currently accepted in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]}}&#58;&#32;<!--
+
     -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the following {{#var: varTextSupertype}} of {{#var: varTerm}} {{#var: varIsAre}} currently accepted|The following {{#var: varTextSupertype}} of {{#var: varTerm}} {{#var: varIsAre}} currently accepted in {{#var: varCommunity}}|}}&#58;&#32;<!--
 
     --><!--  
 
     --><!--  
 
     -->{{#arrayprint: arraySupertypes||varSupertype|<!--
 
     -->{{#arrayprint: arraySupertypes||varSupertype|<!--
Line 60: Line 71:
 
     -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
     -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 
     -->|<!--
 
     -->|<!--
       -->In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], it is currently accepted that {{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} the {{#var: varTextSupertype}} of [[{{{term|}}}]].<!--
+
       -->In {{#var: varCommunity}}, it is currently accepted that {{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} the {{#var: varTextSupertype}} of {{#var: varTerm}}.<!--
 
     -->|<!--
 
     -->|<!--
       -->{{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} currently accepted as the {{#var: varTextSupertype}} of [[{{{term|}}}]] in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]].<!--
+
       -->{{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} currently accepted as the {{#var: varTextSupertype}} of {{#var: varTerm}} in {{#var: varCommunity}}.<!--
 
     -->}}<!--
 
     -->}}<!--
 
     --><!--  
 
     --><!--  

Revision as of 21:11, 28 December 2022

This template is used to print the list of subtypes of a term accepted by the community. The subtypes will be grouped by their disjoint groups. The template is called from Template:PrintTermAcceptedSupertypesList.

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

Parameters:

  • |community= - the community.
  • |term= - the topic.
  • |bullets= - if yes, bullets will appear before every disjoint group. Otherwise, the sentences will be formatted without bullets or line breaks.
  • |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 intro sentence. If no (default) the name of the theory will appear first.