Difference between revisions of "Template:PrintCommunityTermCurrentSubtypesList"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 7: Line 7:
 
* <code><nowiki>|community=</nowiki></code> - the community.
 
* <code><nowiki>|community=</nowiki></code> - the community.
 
* <code><nowiki>|term=</nowiki></code> - the topic.
 
* <code><nowiki>|term=</nowiki></code> - the topic.
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist.
 
* <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist.
 
* <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead.
 
 
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', bullets will appear before every disjoint group. Otherwise, the sentences will be formatted without bullets or line breaks.
 
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', bullets will appear before every disjoint group. Otherwise, the sentences will be formatted without bullets or line breaks.
 
* <code><nowiki>|link=</nowiki></code> - 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.
 
* <code><nowiki>|link=</nowiki></code> - 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.
 +
* <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the intro sentence. If ''no'' (default) the name of the theory will appear first.
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Line 24: Line 22:
 
  -->|?Theory<!--  
 
  -->|?Theory<!--  
 
  -->|?Subtypes<!--
 
  -->|?Subtypes<!--
  -->|intro={{{intro|}}}<!--
+
  -->|intro={{#ifeq: {{{communitiesfirst|}}}|yes|In {{{community|}}}, the following subtypes of {{{term|}}} are currently accepted:&#32;|The following subtypes of {{{term|}}} are currently accepted in {{{community|}}}:&#32;}}<!--  
-->|outro={{{outro|}}}<!--  
+
  -->|default={{#ifeq: {{{communitiesfirst|}}}|yes|In {{{community|}}}, there are currently no accepted subtypes of {{{term|}}}.&#32;|There are currently no accepted subtypes of {{{term|}}} in {{{community|}}}.&#32;}}<!--  
  -->|default={{{default|}}}<!--  
 
 
  -->|sort=Disjoint Group Order, Disjoint Group<!--
 
  -->|sort=Disjoint Group Order, Disjoint Group<!--
 
  -->|order=asc, asc<!--
 
  -->|order=asc, asc<!--

Revision as of 17:37, 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: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.