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 looks for displays the theories accepted theories on the a given topic and then indicates which communities it is currently accepted by. There are several ways this can be printed depending on the parameters.The print out consists of two main parts:
'''Part 1. Summary''': 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>)
* Community A: Theory 1, Theory 2, Theory 3
* Community B: 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 4: Community B
* Theory 5: Community C
 
'''Part 2. Details''': A (potentially detailed) exposition of each of the accepted theories. This can include any combination of the following:
* formulation text (if <code><nowiki>formulationtext=yes</nowiki></code>)
* formulation file (if <code><nowiki>formulationfile=yes</nowiki></code>)
* description (if <code><nowiki>description=yes</nowiki></code>)
* <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 producedin Part 1.
* <code><nowiki>|linebreak=</nowiki></code> - if ''yes'', each theory's 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.
</noinclude><includeonly><!--
-->{{#if: {{{topic|}}} <!-- -->|<!-- --><!-- check Get the list of all accepted theories regardless of a community --><!-- -->{{#arraydefine: varAccTheories<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Theory<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| , |unique<!-- -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAccTheories}}<!--  --><!-- Check the grouping flag --><!-- -->{{#ifeq: {{{groupbycommunity|no}}}|yes<!-- -->|<!-- yesYes: Group BY Community --><!-- get the communities first -->{{#arraydefine: varAccCommunities<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Community<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| , |unique<!-- -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAccCommunities}}<!-- --><!-- -->{{#switch: {{#arraysize: varAccCommunities}}<!-- -->|0={{{default|}}}<!-- -->|{{{intro|}}}<!-- -->{{#arrayprint: varAccCommunities<!-- -->||varCommunity<!-- -->|{{#ifeq: {{{linebreak|}}}|yes|<nowiki/>|&#32;}}{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!-- -->{{PrintCommunityTopicCurrentTheoriesList|community=varCommunity|topic={{{topic|}}}|communitiesfirst={{{communitiesfirst|no}}}|link=all|linktheory=yes}}&#32;<!-- -->}}<!--arrayprint -->{{{outro|}}}<!-- -->}}<!-- switch --><!--   -->|<!-- No: Group By Theory --><!-- --><!-- -->{{#switch: {{#arraysize: varAccTheories}}<!-- -->|0={{{default|}}}<!-- -->|{{{intro|}}}<!-- -->{{#arrayprint: varAccTheories<!-- -->||@@@@<!-- -->|{{#ifeq: {{{linebreak|}}}|yes|<nowiki/>
|&#32;}}{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!--
-->{{PrintCommunityTopicCurrentTheoriesListPrintTheoryCurrentlyAcceptedInCommunities|communitytheory=@@@@|topic={{{topic|}}}|communitiesfirst={{{communitiesfirst|no}}}|link=all|linktheory=yes|}}&#32;<!-- -->}}<!--arrayprint -->{{{outro|}}}<!-- -->}}<!-- switch
--><!--
--><!-- in this version only the theory formulation can be included / the diagram file cannot --><!-- they come separately at the end, after it has been listed which community accepts which theories --><!-- add formulation text if necessary -->{{#ifeq: {{{formulationtext|no}}}|yes|<!--ifeq grouping flag  --><!-- --><!-- get Now print the list of theories -->{{#arraydefine: varAccTheories<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Theory<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| details for each theory, |unique<!--if necessary -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAccTheories}}<!-- --><!-- -->{{#switch: {{#arraysize: varAccTheories}}<!-- -->|0=<!-- -->|<!-- -->{{#arrayprint: varAccTheories<!-- -->||@@@@<!-- -->|{{#ifeq: {{{linebreak|}}}|yes|<nowiki/>|&#32;}}{{#ifeq: {{{bullets|}}}|yes|*|}}<!-- -->&#32;''@@@@'' states "{{#show: @@@@|?Formulation Text|link=none}}"<!-- -->}}<!--arrayprint -->}}<!-- switch -->varTheory<!-- -->}}<!-- if formulation text --><!-- -->|<!-- groupbycommunity=no --><!-- --><!-- get the theories first -->{{#arraydefine: varAccTheories<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Theory<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| , |unique<!-- -->}}<!-- arraydefine --><!-- --><!-- remove duplicates -->{{#arrayunique: varAccTheories}}<!-- --><!-- -->{{#switch: {{#arraysize: varAccTheories}}<!--Add a line break and/or bullets if necessary -->|0={{{default|}}}<!-- -->|{{{intro|}}}<!-- -->{{#arrayprint: varAccTheories<!-- -->||@@@@<!-- -->|{{#ifeq: {{{linebreak|}}}|yes|<nowiki/>
|&#32;}}{{#ifeq: {{{bullets|}}}|yes|*<nowiki> </nowiki>|}}<!--
--><!--   --><!-- Add the formulation text if necessary --><!-- -->{{PrintTheoryCurrentlyAcceptedInCommunities|theory=@@@@|communitiesfirst=#ifeq: {{{communitiesfirstformulationtext|no}}}|link=allyes|<!-- -->varTheory states: "{{#show: varTheory|linktheory=yes?Formulation Text|formulationtextlink=none}}"&#32;<!-- -->}}<!-- if formulation text --><!-- --><!-- add the diagram if necessary -->{{#ifeq: {formulationtext{{formulationfile|no}}}|formulationfile=yes|<!-- --><!-- -->{{#if: {{formulationfile#show: varTheory|?Formulation File|link=none}}}|description<nowiki/> {{PrintDiagramFile|diagram file={{{description#show: varTheory|?Formulation File|link=none}}|}|}<nowiki/><!-- -->}}<!-- if diagram -->}}<!--arrayprint if formulation file --><!-- --><!-- add description if necessary -->{{#ifeq: {{{description|no}}}|yes|{{#replace: {outro{#show: varTheory|?Description|link=none}}|CITE_|CiteRef::}} <br>|}}<!-- -->}}<!-- switch --><!-- -->}}<!-- ifeqarrayprint  
--><!--
-->}}<!-- if
--></includeonly>

Navigation menu