Difference between revisions of "Template:PrintCommunityTermCurrentSubtypesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
--><!--
 
--><!--
-->{{#ask:<!--
+
-->{{#ifeq: {{{link|}}}|none<!--  
  -->[[SubObjectCategory::Topic Current Ontology]]<!--  
+
  -->|<!--
-->[[Ontological Question Type::Subtypes]]<!--
+
  -->{{#vardefine: varCommunity|{{{community}}}|}}<!--
-->[[Community::{{{community|}}}]]<!--  
+
  -->{{#vardefine: varTerm|{{{term}}}|}}<!--
-->[[Term::{{{term|}}}]]<!--
+
  -->|<!--
-->|?Term<!--  
+
  -->{{#vardefine: varCommunity|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]|}}<!--
  -->|?Disjoint Group<!--  
+
  -->{{#vardefine: varTerm|[[{{{term|}}}]]|}}<!--
-->|?Theory<!--
+
-->}}<!-- ifeq
-->|?Subtypes<!--
 
-->|intro={{#ifeq: {{{communitiesfirst|}}}|yes|In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], the following subtypes of {{{term|}}} are currently accepted:&#32;|The following subtypes of {{{term|}}} are currently accepted in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]{{#ifeq: {{{bullets|}}}|yes|&#58;|.}}&#32;}}<!--  
 
-->|default={{#ifeq: {{{communitiesfirst|}}}|yes|In [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]], there are currently no accepted subtypes of {{{term|}}}.&#32;|There are currently no accepted subtypes of {{{term|}}} in [[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]].&#32;}}<!--
 
-->|sort=Disjoint Group Order, Disjoint Group<!--
 
-->|order=asc, asc<!--
 
-->|format=template<!--
 
-->|template={{#ifeq: {{{bullets|}}}|yes|Subtypes-ul-format|Subtypes-text-format}}<!--
 
-->|mainlabel=-<!--
 
-->|headers=hide<!--
 
-->|link={{{link|all}}}<!--
 
-->|named args=yes<!--
 
-->}}<!-- ask
 
 
--><!--
 
--><!--
 +
-->{{#arraydefine: arraySOs<!--
 +
-->|<!--
 +
  -->{{#ask:<!--
 +
  -->[[SubObjectCategory::Topic Current Ontology]]<!--
 +
  -->[[Ontological Question Type::Subtypes]]<!--
 +
  -->[[Community::{{{community|}}}]]<!--
 +
  -->[[Term::{{{term|}}}]]<!--
 +
  -->|link=none<!--
 +
  -->}}<!--
 +
-->|,|unique<!--
 +
-->}}<!-- arraydefine
 +
--><!--
 +
-->{{#switch: {{#arraysize: arraySOs}}<!--
 +
-->|0=<!--
 +
  --><!--
 +
  -->{{#vardefine: varIntro|}}<!--
 +
  --><!--
 +
-->|1=<!--
 +
  --><!-- one subobject (i.e. one group of subtypes)
 +
  --><!--
 +
  -->{{#arraydefine: arraySubtypes|{{#show: {{#arrayindex: arraySOs|0}}|?Subtypes|link=link={{{link|all}}}|}}| , | unique}}<!--
 +
  -->{{#switch: {{#arraysize: arraySubtypes}}<!--
 +
  -->|0=<!--
 +
    --><!-- no subtypes
 +
    --><!--
 +
    -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, there are currently no accepted subtypes of {{#var: varTerm}}|There are currently no accepted subtypes of {{#var: varTerm}} in {{#var: varCommunity}}|}}.&#32;<!--
 +
    --><!--
 +
  -->|1=<!--
 +
    --><!-- only one subtype
 +
    --><!--
 +
    -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the accepted subtype of {{#var: varTerm}} is|The subtype of {{#var: varTerm}} currently accepted in {{#var: varCommunity}} is|}}<!--
 +
    --><!--
 +
    -->{{#ifeq: {{{bullets|}}}|yes<!--
 +
    -->|<!-- add the : and the bullet
 +
      -->&#58;
 +
* {{#arrayindex: arraySubtypes|0}}<!--
 +
    -->|<!--
 +
      --><!--
 +
      -->&#32;{{#arrayindex: arraySubtypes|0}}.&#32;<!--
 +
      --><!--
 +
    -->}}<!-- if bullet
 +
  -->|<!--
 +
    --><!--more than one subtype
 +
    --><!--
 +
    -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the accepted subtypes of {{#var: varTerm}} are|The subtypes of {{#var: varTerm}} currently accepted in {{#var: varCommunity}} are|}}<!--
 +
    --><!--
 +
    -->{{#ifeq: {{{bullets|}}}|yes|<!-- add the :
 +
      -->&#58;<!--
 +
      -->{{#arrayprint: arraySubtypes||varSubtype|<nowiki/>
 +
* varSubtype|}}<!--
 +
    -->|<!--
 +
      --><!--
 +
      -->&#32;{{#arrayprint: arraySubtypes||varSubtype|varSubtype|print=pretty}}.&#32;<!--
 +
      --><!--
 +
      --><!--
 +
    -->}}<!-- if bullets
 +
    --><!--
 +
  -->}}<!-- switch
 +
  --><!--
 +
  --><!--
 +
-->|<!--
 +
  --><!-- more than one subobject (more than one group of subtypes)
 +
  --><!--
 +
  -->{{#vardefine: varIntro|{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the following subtypes of {{#var: varTerm}} are currently accepted|The following subtypes of {{#var: varTerm}} are currently accepted in {{#var: varCommunity}}|}}{{#ifeq: {{{bullets|}}}|yes|&#58;|.}}&#32;}}<!--
 +
  --><!--
 +
  --><!--
 +
  -->{{#ask:<!--
 +
  -->[[SubObjectCategory::Topic Current Ontology]]<!--
 +
  -->[[Ontological Question Type::Subtypes]]<!--
 +
  -->[[Community::{{{community|}}}]]<!--
 +
  -->[[Term::{{{term|}}}]]<!--
 +
  -->|?Term<!--
 +
  -->|?Disjoint Group<!--
 +
  -->|?Theory<!--
 +
  -->|?Subtypes<!--
 +
  -->|intro={{#var: varIntro}}<!--
 +
  -->|default={{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, there are currently no accepted subtypes of {{#var: varTerm}}|There are currently no accepted subtypes of {{#var: varTerm}} in {{#var: varCommunity}}|}}.&#32;<!--
 +
  -->|sort=Disjoint Group Order, Disjoint Group<!--
 +
  -->|order=asc, asc<!--
 +
  -->|format=template<!--
 +
  -->|template={{#ifeq: {{{bullets|}}}|yes|Subtypes-ul-format|Subtypes-text-format}}<!--
 +
  -->|mainlabel=-<!--
 +
  -->|headers=hide<!--
 +
  -->|link={{{link|all}}}<!--
 +
  -->|named args=yes<!--
 +
  -->}}<!-- ask
 +
  --><!--
 +
-->}}<!-- switch
 
--></includeonly>
 
--></includeonly>

Latest revision as of 22:23, 19 February 2023

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:PrintTermAcceptedSubtypesList.

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.