Difference between revisions of "Template:PrintCommunityTermCurrentSubtypesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 21: Line 21:
 
   -->{{#vardefine: varTerm|[[{{{term|}}}]]|}}<!--
 
   -->{{#vardefine: varTerm|[[{{{term|}}}]]|}}<!--
 
-->}}<!-- ifeq
 
-->}}<!-- ifeq
 +
--><!--
 +
-->{{#arraydefine: arraySubtypes<!--
 +
-->|<!--
 +
  -->{{#ask:<!--
 +
  -->[[SubObjectCategory::Topic Current Ontology]]<!--
 +
  -->[[Ontological Question Type::Subtypes]]<!--
 +
  -->[[Community::{{{community|}}}]]<!--
 +
  -->[[Term::{{{term|}}}]]<!--
 +
  -->|link=none<!--
 +
  -->}}<!--
 +
-->|,|unique<!--
 +
-->}}<!-- arraydefine
 +
--><!--
 +
-->{{#switch: {{#arraysize: arraySubtypes}}<!--
 +
-->|0=<!--
 +
  --><!--
 +
  -->{{#vardefine: varIntro|}}<!--
 +
  --><!--
 +
-->|1=<!--
 +
  --><!--
 +
  -->{{#vardefine: varIntro|{{#vardefine: varIntro|{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the accepted subtype(s) of {{#var: varTerm}}|The subtype(s) of {{#var: varTerm}} currently accepted in {{#var: varCommunity}}|}}&#32;}}}}<!--
 +
  --><!--
 +
-->|<!--
 +
  --><!--
 +
  -->{{#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;}}<!--
 +
  --><!--
 +
-->}}<!-- switch
 
--><!--
 
--><!--
 
-->{{#ask:<!--
 
-->{{#ask:<!--
Line 31: Line 58:
 
  -->|?Theory<!--  
 
  -->|?Theory<!--  
 
  -->|?Subtypes<!--
 
  -->|?Subtypes<!--
  -->|intro={{#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;<!--  
+
  -->|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;<!--  
 
  -->|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<!--
 
  -->|sort=Disjoint Group Order, Disjoint Group<!--
Line 41: Line 68:
 
  -->|link={{{link|all}}}<!--
 
  -->|link={{{link|all}}}<!--
 
  -->|named args=yes<!--
 
  -->|named args=yes<!--
 +
-->|userparam={{#arraysize: arraySubtypes}}<!--
 
-->}}<!-- ask
 
-->}}<!-- ask
 
--><!--
 
--><!--
 
--></includeonly>
 
--></includeonly>

Revision as of 21:33, 11 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.