Difference between revisions of "Template:PrintCommunityTermCurrentSupertypesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
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]].
+
This template is used to print the list of subtypes of a term accepted by the community. 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.
 
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Line 25: Line 25:
 
   -->|mainlabel=-<!--
 
   -->|mainlabel=-<!--
 
   -->|headers=hide<!--
 
   -->|headers=hide<!--
   -->|link={{{link|}}}<!--
+
   -->|link={{{link|all}}}<!--
 
   -->}}<!-- ask
 
   -->}}<!-- ask
 
   -->|, |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 42: Line 53:
 
     -->{{#vardefine: varIsAre|is}}<!--
 
     -->{{#vardefine: varIsAre|is}}<!--
 
   -->|<!-- plural
 
   -->|<!-- plural
     -->{{#vardefine: varTextSubtype|supertypes}}<!--
+
     -->{{#vardefine: varTextSupertype|supertypes}}<!--
 
     -->{{#vardefine: varIsAre|are}}<!--
 
     -->{{#vardefine: varIsAre|are}}<!--
 
   -->}}<!-- ifeq
 
   -->}}<!-- ifeq
  --><!--
 
  --><!-- add the intro
 
  -->{{#ifeq: {{{communitiesfirst|}}}|yes|In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], the following supertypes of {{{term|}}} are currently accepted|The following supertypes of {{{term|}}} are currently accepted in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]}}{{#ifeq: {{{bullets|}}}|yes|&#58;|.}}&#32;<!--
 
 
   --><!--
 
   --><!--
 
   --><!-- print  
 
   --><!-- print  
   -->{{#ifeq: {{{bullets|}}}|yes|<!--
+
   -->{{#ifeq: {{{bullets|}}}|yes<!--
 
   -->|<!--
 
   -->|<!--
     -->{{#arrayprint: arraySupertypes|,|varSupertype|*&#32;varSupertype}}<!--
+
    --><!-- add the intro
 +
     -->{{#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|<!--
 +
    -->* varSupertype<!--
 +
    --><!--
 +
    -->}}<!--
 
   -->|<!--
 
   -->|<!--
     -->{{#arrayprint: arraySupertypes|,|varSupertype|print=pretty}}<!--  
+
    --><!-- add the intro
 +
     -->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
 +
    -->|<!--
 +
      -->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 {{#var: varTerm}} in {{#var: varCommunity}}.<!--
 +
    -->}}<!--
 +
    --><!--  
 
   -->}}<!-- ifeq bullets
 
   -->}}<!-- ifeq bullets
 
   --><!--
 
   --><!--

Latest revision as of 21:18, 28 December 2022

This template is used to print the list of subtypes of a term accepted by the community. 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.