Open main menu

Changes

no edit summary
<noinclude>
This template is used to print the a list of accepted theories on this topic in . It displays the theories accepted on a bullet point listgiven topic by sorting them according to their topic's sorting order. To print the details of the accepted theories, use [[Template:PrintTopicAcceptedTheoriesDetails]].  The output will say that theory A is template prints a short statement of which theories are accepted by in which community X. 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>)* Community A: Theory 1, Theory 2, and theory Theory 3* Community B is accepted by community Y: Theory 2, Theory 3, Theory 4* Community C: Theory 1, Theory 3, Theory 5 ''Option 2'': (if <code><nowiki>groupbycommunity=no</nowiki></code> or empty)* Theory 1: Community A, Community C* Theory 2: Community A, Community B* Theory 3: Community A, Community B, Community C* Theory 4: Community B* Theory 5: Community C Formulation texts can also be printed if <code><nowiki>formulationtext=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>|topic=</nowiki></code> - the theorytopic.
* <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>|bulletsformulationtext=</nowiki></code> - if ''yes'', a bulletthe formulation of the theory will be added. Otherwise (default), the formulation text won't be printed.* <code><nowiki>|communitiesfirst=</nowiki></code> -list if ''yes'', the communities will be produced; otherwise mentioned first in the sentence. If ''no'' (default) the list name of the theory will simply start from a new lineappear 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.).
</noinclude><includeonly><!--
-->{{#if: {{{topic|}}} <!-- -->|<!-- --><!-- Get the default 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: varAnswers<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Acceptance RecordCurrent Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->[[Answer Type::Complete||Inherited||Partial]]<!-- -->|?Theory<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|sort=Answer Type, Sorting Order<!-- -->|order=asc, asc<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| , |unique<!-- -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAnswers}}<!--  --><!-- --><!-- Check the grouping flag --><!-- -->{{#ifeq: {{{groupbycommunity|no}}}|yes<!--  -->|<!-- Yes: Group BY Community --><!-- -->{{#arraydefine: varAccCommunities<!-- -->|{{#ask:<!-- -->[[Still AcceptedSubObjectCategory::trueCurrent Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Accepted by Community<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|?Theorylink=none<!-- -->|?Accepted Fromlimit=10000<!-- -->}}<!-- -->|?Accepted From Approximate, |unique<!-- -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAccCommunities}}<!-- --><!-- -->{{#switch: {{#arraysize: varAccCommunities}}<!-- -->|intro0={{{default|}}}<!-- -->|{{{intro|}}}<!-- -->{{#arrayprint: varAccCommunities||varCommunity<!-- -->|<!-- -->{{PrintCommunityTopicCurrentTheories<!-- -->|community=varCommunity<!-- -->|outrotopic={{{outrotopic|}}}<!-- -->|default={{#var: varDefault}} [[varCommunity|{{defaultPAGENAME: varCommunity}}]].<!-- -->|communityfirst={{{communitiesfirst|no}}}<!-- -->|mainlabelformulationtext={{{formulationtext|no}}}<!-- -->|link=yes<!-- -->|formatlinktheory=templateyes<!-- -->}}&#32;<!-- -->}}<!--arrayprint -->{{{outro|link=none}}}<!-- -->}}<!-- switch --><!--   -->|sort=Accepted by Community,Accepted From<!-- No: Group By Theory --><!-- --><!-- -->{{#switch: {{#arraysize: varAccTheories}}<!-- -->|order0=ascending{{{default|}}}<!-- -->|template={{{intro|}}}<!-- -->{{#ifeqarrayprint: varAccTheories||varTheory<!-- -->|<!--  -->{{PrintTheoryCurrentlyAcceptedInCommunities<!-- -->|theory=varTheory<!-- -->|communitiesfirst={{{bulletscommunitiesfirst|no}}}<!-- -->|Yeslink=yes<!-- -->|TopicAcceptedTheorieslinktheory=yes<!-- -ul-format>}}&#32;<!--   -->}}<!--arrayprint   -->{{{outro|TopicAcceptedTheories}}}<!-- -plain-format>}}<!--switch --><!--   -->}}<!-- askifeq grouping flag -->}}<!-- topicif
--></includeonly>