Changes

Jump to navigation Jump to search
no edit summary
The template will print:
* “The stances of theory acceptance, theory pursuit, and theory use can be taken towards theories.”
 
 
'''TODO: FIX THIS'''
-->{{#arraydefine: varTheories<!--
-->|{{#ask:<!--
-->[[SubObjectCategory::Topic Current Answer]]<!--
-->[[Community::{{{community|}}}]]<!--
-->[[Topic::{{{topic|}}}]]<!--
-->[[Answer Type::Complete||Inherited||Partial]]<!--
-->|?Theory<!--
-->|sort=Answer Type, Sorting Order<!--
-->|order=asc, asc<!--
-->|mainlabel=-<!--
-->|headers=hide<!--
--><!--
-->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definition of the term|answer to the question}}|}}<!--
-->{{#vardefine: varTheoryPrint|{{#show: {{#arrayindex: varTheories|0}}|?Formulation Text|link=none}}}}<!--
--><!--
--><!-- Get the community depending on the link
-->{{#ifeq: {{{link|no}}}|yes<!--
-->|<!--
-->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!-- -->{{#vardefine: varTheoryPrint|"{{#show: {{#arrayindex: varTheories|0}}|?Formulation Text|link=all}}"}}<!-- --><!--
-->|<!--
--><!-- Links are not needed --><!-- -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!-- -->{{#vardefine: varTheoryPrint|"{{#show: {{#arrayindex: varTheories|0}}|?Formulation Text|link=none}}"}}<!--
--><!--
-->}}<!-- if links
--><!-- Print
--><!--
--><p>In {{#var: varCommunityPrint}}, the accepted {{#var: varAcceptedText}} is :</p><p>* {{#var: varTheoryPrint}}&#32;</p><!--
--><!--
--><!--
--><!-- Multiple Values
--><!--
 
-->{{{intro|}}}<!--
--><!--
--><!-- Check what sort of a topic this is and generate the text --><!-- Get -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definitions of the community depending on term|answers to the linkquestion}}|}}<!--
--><!--
--><!-- Get the community and the theory depending on the link
-->{{#ifeq: {{{link|no}}}|yes<!--
-->|<!--
-->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!--
--><!--
-->|<!--
-->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!--
--><!--
-->}}<!-- ifeq links
--><!--
  --><!-- Check if the question has a formula for generating text from multiple answerscommunities should be mentioned first or last and print accordingly
--><!--
--><p>In {{#vardefinevar: varMultipleFormula|varCommunityPrint}}, the accepted {{#showvar: {{{topic|}}}|?Multiple Answers Text Formula|link=none}} varAcceptedText}}can be summarized as:</p><!--
--><!--
-->{{#if: {{#var: varMultipleFormula}}<!--
-->|<!-- --><!-- Multiple answer formula is given: group the answers by subject and combine them for each subject --><!-- -->{{#arraydefine: varSubjects<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Community::{{{community|}}}]]<!-- -->[[Topic::{{{topic|}}}]]<!-- -->|?Theory.Subject<!-- -->|headers=hide<!-- -->|mainlabel=-<!-- -->|link=none<!-- -->}}<!-- ask -->| , |unique<!-- -->}}<!-- arraydefine -->{{#arrayunique: varSubjects}}<!--  --><!-- Print the prefix depending on the number of subjects found --><!-- -->{{#switch: {{#arraysize: varSubjects}}<!-- -->|0=<!-- -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic [[Answer Type|link=none}}|Definitional|definition of the term is missing; ensure that all the questions have assigned subjects.|answer to the question is missing; ensure that all the questions have assigned subjects.}}|}}<!-- --><!-- -->|1=<!-- -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topicComplete|}}}|?Topic TypeInherited|link=none}}|Definitional|definition of the term is|answer to the question is}}|}}Partial]]<!-- --><!-- -->|<!-- -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definitions of the term are|answers to the question are}}|}}Formulation Text<!-- --><!-- -->}}<!-- switch --><!-- -->In {{#var: varCommunityPrint}}, the accepted {{#var: varAcceptedText}}&#32;<!-- --><!--  --><!-- For each subject retrieve and group the answers: --><!-- -->{{#arrayprint: varSubjects||varSubject|<!-- --><!--  --><!-- --><!-- Create an array of theories with that subject --><!-- -->{{#arraydefine: varSubjectTheories|<!-- --><!-- -->{{#arrayprint: varTheories||varTheory|<!-- --><!-- -->{{#vardefine: varTheorySubject| {{#show: varTheory|?Subject|linkmainlabel=none}} }}<!-- --><!-- --><!-- include the theory only if it has the right subject -->{{#ifeq: {{#var: varTheorySubject}}|varSubject|varTheory,|}}<!-- --><!-- -->}}<!-- arrayprint theories --><!-- -->}}<!-- arraydefine subject's theories -->{{#arrayunique: varSubjectTheories}}<!-- --><!-- --><!-- Check the size of the array: -->{{#switch: {{#arraysize: varSubjectTheories}}<!-- -->|0headers=hide<!-- --><!-- Nothing to print  -->|1sort=Answer Type, Sorting Order<!-- --><!-- One object: use the theory's Formulation Text -->"{{#show: {{#arrayindex: varSubjectTheories|0}}|?Formulation Text|link={{#ifeq: {{{link|no}}}|yes|all|none}}|}}"&#32;<!-- --><!--  -->|<!-- --><!-- Multiple answers  --><!-- Create an array of objects --><!-- -->{{#arraydefine: varSubjectObjects|<!-- --><!-- -->{{#arrayprint: varSubjectTheories||varTheory|<!-- -->{{#show: varTheory|?Object|linkorder=none}}asc,asc<!-- -->}}<!-- arrayprint theories --><!-- -->}}<!-- arraydefine objects -->{{#arrayunique: varSubjectObjects}}<!--  --><!-- Print --><!-- -->"{{DecodeTextFormula|formulaformat={{#var: varMultipleFormula}}|subject=varSubject|object={{#arrayprint: varSubjectObjects}}|}}"template<!-- --><!--  -->}}<!-- switch --><!-- -->|printtemplate=pretty}}<!-- arrayprint subjects Result-bullet->point<!--   -->|<!-- --><!-- No multiple answer formula is given: print them all one after the other --><!-- -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definitions of the term are|answers to the question are}}|}}<!-- -->In {{#var: varCommunityPrint}}, the accepted {{#var: varAcceptedText}}&#32;<!-- --><!-- --><!-- -->{{#arrayprint: varTheories||varTheory|<!-- -->"{{#show: varTheory|?Formulation Text|link=none}}"<!-- --><!-- -->|printlimit=pretty}}.&#32;10000<!-- arrayprint --><!--   -->}}<!-- if multiple formula
--><!--
 
 
 
--><!--
-->{{{outro|}}}<!--
 
-->}}<!-- switch
--></includeonly>

Navigation menu