Difference between revisions of "Template:PrintTopicAcceptedTheoriesFormulations"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> This template is used to print a list of accepted answers to a question. It groups the answers by community: for each community where the topic is accepted, it loo...")
 
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
'''Parameters:'''
 
'''Parameters:'''
* <code><nowiki>|topic=</nowiki></code> - the term.
+
* <code><nowiki>|topic=</nowiki></code> - the topic.
 
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist.
 
* <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>|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>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead.
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced.
 
 
* <code><nowiki>|linebreak=</nowiki></code> - if ''yes'', each disjoint group entry will start from a new line; if ''no'' (default), a mere space will be added between sentences.
 
* <code><nowiki>|linebreak=</nowiki></code> - if ''yes'', each disjoint group entry will start from a new line; if ''no'' (default), a mere space will be added between sentences.
* <code><nowiki>|communitiesfirst=</nowiki></code> - if ''yes'', the communities will be mentioned first in the sentence. If ''no'' (default) the name of the theory will appear first.
+
 
 +
'''NOTE:'''
 +
* <code><nowiki>|communitiesfirst=</nowiki></code> - is UNAVAILABLE, since the community should be printed first; otherwise it looks ugly.
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#if: {{{term|}}}<!--
+
-->{{#if: {{{topic|}}}<!--
 
  -->|<!--
 
  -->|<!--
 
    
 
    
Line 21: Line 22:
 
   -->{{#arraydefine: varAccCommunities<!--
 
   -->{{#arraydefine: varAccCommunities<!--
 
   -->|{{#ask:<!--
 
   -->|{{#ask:<!--
     -->[[SubObjectCategory::Topic Current Answer]]<!--
+
     -->[[SubObjectCategory::Current Answer]]<!--
 +
    -->[[Answer Type::Complete||Inherited||Partial]]<!--  
 
     -->[[Topic::{{{topic|}}}]]<!--
 
     -->[[Topic::{{{topic|}}}]]<!--
 
     -->|?Community<!--
 
     -->|?Community<!--
Line 40: Line 42:
 
     -->{{#arrayprint: varAccCommunities||varCommunity<!--
 
     -->{{#arrayprint: varAccCommunities||varCommunity<!--
 
     -->|<!--
 
     -->|<!--
       -->{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!--
+
       -->{{#ifeq: {{{linebreak|}}}|yes|<p>|}}<!--
 
       -->{{PrintCommunityTopicCurrentTheoriesFormulations<!--
 
       -->{{PrintCommunityTopicCurrentTheoriesFormulations<!--
 
       -->|community=varCommunity<!--
 
       -->|community=varCommunity<!--
 
       -->|topic={{{topic|}}}<!--
 
       -->|topic={{{topic|}}}<!--
       -->|communityfirst={{{communitiesfirst|no}}}<!--
+
       -->|default=There is currently no accepted answer to this question in [[varCommunity|{{PAGENAME:varCommunity}}]].&#32;<!--
 
       -->|link=yes<!--
 
       -->|link=yes<!--
 
       -->|linktheory=yes<!--
 
       -->|linktheory=yes<!--
 
       -->}}<!--  
 
       -->}}<!--  
       -->{{#ifeq: {{{linebreak|}}}|yes|<br/><br/>|&#32;}}<!--
+
       -->{{#ifeq: {{{linebreak|}}}|yes|</p>|&#32;}}<!--
 
     -->}}<!--arrayprint  
 
     -->}}<!--arrayprint  
 
     -->{{{outro|}}}<!--
 
     -->{{{outro|}}}<!--

Latest revision as of 23:54, 27 February 2023

This template is used to print a list of accepted answers to a question. It groups the answers by community: for each community where the topic is accepted, it looks for the accepted answers and prints the answers by grouping the multiple results as needed.

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

Parameters:

  • |topic= - the topic.
  • |intro= - initial text that precedes the output, if at least some results exist.
  • |outro= - text that is appended to the output, if at least some results exist.
  • |default= - if, for any reason, the query returns no results, this will be printed instead.
  • |linebreak= - if yes, each disjoint group entry will start from a new line; if no (default), a mere space will be added between sentences.

NOTE:

  • |communitiesfirst= - is UNAVAILABLE, since the community should be printed first; otherwise it looks ugly.