Changes

Jump to navigation Jump to search
no edit summary
<noinclude>
This template is used to print a list of accepted theories on this topic. It displays the theories accepted on a given topicby sorting them according to their topic's sorting order. There are several ways this can be printed depending on To print the parameters. The print out consists details of two main partsthe accepted theories, use [[Template: PrintTopicAcceptedTheoriesDetails]].
'''Part 1. Summary''': A The template prints a short statement of which theories are accepted in which community. This can be done in two options depending on the value of <code><nowiki>groupbycommunity</nowiki></code>:
''Option 1'': (if <code><nowiki>groupbycommunity=yes</nowiki></code>)
* Theory 5: Community C
'''Part 2. Details''': A (potentially detailed) exposition of each of the accepted theories. This Formulation texts can include any combination of the following:* formulation text (also be printed if <code><nowiki>formulationtext=yes</nowiki></code>)* formulation file (if <code><nowiki>formulationfile=yes</nowiki></code>)* description (if <code><nowiki>description=yes</nowiki></code>).
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
 
'''Parameters:'''
* <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>|formulationtext=</nowiki></code> - if ''yes'', then the formulation of the theory is added to each record.* <code><nowiki>|formulationfile=</nowiki></code> - if ''yes'', then the file with the formulation diagram is added to each record.* <code><nowiki>|description=</nowiki></code> - if ''yes'', then the first paragraph of the description is added to each record.* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced in Part 1added.* <code><nowiki>|linebreak=</nowiki></code> - if ''yes'', each theory's entry will start from a new line; if ''no'' Otherwise (default), a mere space will the formulation text won't be added between sentencesprinted.
* <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.
* <code><nowiki>|groupbycommunity=</nowiki></code> - if ''yes'', the result will be grouped by community (e.g. Theories A, B, C are accepted by community X. Theories A, D, E are accepted by community Y.) If ''no'' (default) the result will be grouped by theory (e.g. Theory A is accepted in communities X and Y.).
-->|<!--
--><!-- Get the list of all accepted theories regardless of a communitydefault text
--><!--
-->{{#switch: {{#show: {{{topic|}}}|?Topic Type|link=none}}<!-- -->|<!-- -->Definitional={{#vardefine: varDefault|At the moment, the term has no accepted definition in}}<!-- -->|<!-- -->{{#vardefine: varDefault|At the moment, the question has no accepted answer in}}<!-- -->}}<!-- switch --><!--   --><!-- Get the list of all answers --><!-- -->{{#arraydefine: varAccTheoriesvarAnswers<!--
-->|{{#ask:<!--
-->[[SubObjectCategory::Topic Current Answer]]<!--
-->[[Topic::{{{topic|}}}]]<!--
-->[[Answer Type::Complete||Inherited||Partial]]<!--
-->|?Theory<!--
-->|mainlabel=-<!--
-->|headers=hide<!--
-->|sort=Answer Type, Sorting Order<!--
-->|order=asc, asc<!--
-->|link=none<!--
-->|limit=10000<!--
--><!--
--><!-- remove duplicates
-->{{#arrayunique: varAccTheoriesvarAnswers}}<!--
--><!--
--><!-- Check the grouping flag
--><!--
-->{{#arraydefine: varAccCommunities<!--
-->|{{#ask:<!--
-->[[SubObjectCategory::Topic Current Answer]]<!--
-->[[Topic::{{{topic|}}}]]<!--
-->|?Community<!--
-->{{#arrayprint: varAccCommunities||varCommunity<!--
-->|<!--
-->{{#ifeq: PrintCommunityTopicCurrentTheories<!-- -->|community=varCommunity<!-- -->|topic={{{bulletstopic|}}}|yes|*<nowiki> </nowiki!-- -->|default={{#var: varDefault}} [[varCommunity|{{PAGENAME: varCommunity}}]].<!-- -->{{PrintCommunityTopicCurrentTheoriesList|community=varCommunity|topiccommunityfirst={{{topiccommunitiesfirst|no}}}<!-- -->|communityfirstformulationtext={{{communitiesfirstformulationtext|no}}}<!-- -->|link=yes<!-- -->|linktheory=yes}}<!-- -->{{#ifeq: {{{linebreak|}}}|yes|<br/><br/>|&#32;}}<!-- 
-->}}<!--arrayprint
-->{{{outro|}}}<!--
-->}}<!-- switch
--><!--
-->{{#arrayprint: varAccTheories||varTheory<!--
-->|<!--
-->{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!--
-->{{PrintTheoryCurrentlyAcceptedInCommunities<!--
-->|theory=varTheory<!--
-->|communitiesfirst={{{communitiesfirst|no}}}<!--
-->|formulationtext={{{formulationtext|no}}}<!-- -->|link=allyes<!--
-->|linktheory=yes<!--
-->}}&#32;<!--
-->{{#ifeq: {{{linebreak|}}}|yes|<br/><br/>|&#32;}}<!--
-->}}<!--arrayprint
 
-->{{{outro|}}}<!--
-->}}<!-- switch
-->}}<!-- ifeq grouping flag
 
--><!-- Now print the details for each theory, if necessary
--><!--
-->{{#arrayprint: varAccTheories||varTheory<!--
-->|<!--
 
--><!-- Add the bullets if necessary
--><!--
-->{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!--
--><!--
 
--><!-- Add the formulation text if necessary
--><!--
-->{{#ifeq: {{{formulationtext|no}}}|yes|<!--
-->varTheory states: "{{#show: varTheory|?Formulation Text|link=none}}"&#32;<!--
-->}}<!-- if formulation text
--><!--
--><!-- add the diagram if necessary
-->{{#ifeq: {{{formulationfile|no}}}|yes|<!--
--><!--
-->{{#if: {{#show: varTheory|?Formulation File|link=none}}|<nowiki/>
 
{{PrintDiagramFile|diagram file={{#show: varTheory|?Formulation File|link=none}}|}}
<nowiki/>
&#32;<!--
-->}}<!-- if diagram
-->}}<!-- if formulation file
--><!--
--><!-- add description if necessary
-->{{#ifeq: {{{description|no}}}|yes|{{#replace: {{#show: varTheory|?Description|link=none}}|CITE_|CiteRef::}}|}}<!--
--><!--
 
--><!-- Add the line break if necessary
--><!--
-->{{#ifeq: {{{linebreak|}}}|yes|<br/><br/>|&#32;}}<!--
--><!--
-->}}<!-- arrayprint
 
--><!--
-->}}<!-- if
--></includeonly>

Navigation menu