Open main menu

Changes

no edit summary
* <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>|link=</nowiki></code> - determines whether the values are to be printed as links to the respective pages (where available); possible values are if ''noneall'', ''subject'', ''all''. If not given ''all'' is then the links to pages will be printed; otherwise (default) no links will be added.
* <code><nowiki>|linktheory=</nowiki></code> - if ''yes'' the theory name will also be a link to the theory's page, if ''no'' (default) it will be a plain text. The ''yes'' option is useful when calling this template from a non-theory page to get a link to the theory page.
* <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>|skiptheorytitle=</nowiki></code> - if ''yes'' the theory's title will be replaced by "It ", if ''no'' (default) the full pagename of the theory will be used. The ''yes'' option is useful when calling this template from a theory page to avoid mentioning the theory's title several times in a row. NOTE: This parameter is ignored if <code><nowiki>communitiesfirst=yes</nowiki></code>.
* <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 formulaiton 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.
</noinclude><includeonly><!--
-->{{#if: {{{theory|}}}<!-- -->|<!--  -->{{#arraydefine: valuesvarCommunities<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Topic Current Answer]]<!-- -->[[Theory::{{{theory|}}}]]<!-- -->[[Answer Type::Complete|?Community<!-- -->|mainlabel=-<!-- -->Inherited||headers=hidePartial]]<!-- -->|link={{{link|}}}?Community<!-- -->|limitmainlabel=10000<!-- -->}}<!-- -->| , |unique<!---->}}<!---->headers=hide<!-- -->{{#vardefine: varAcceptedText|link={{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|definition of the term|theory on the subjectno}}|}}<!----><!---->{{#vardefine: varTextPrefix|{{#ifeq: {{#show: {{{theoryyes|}}}|?Theory Typeall|link=none}}|Definition|It is defined as:|It states:}}|}}<!----><!---->{{#switch: {{#arraysize: values}}<!-- -->|0limit={{{default|}}}10000<!-- -->|1={{{intro|}}}<!-- -->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!-- -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community as the best available {{#var:varAcceptedText}}.&#32;unique<!--
-->}}<!--
--><!--
--><!-- add formulation text if necessary -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {formulationtext{{theory|no}}}|yes?Theory Type|link=none}}|Definition|definition of the term|answer to the question}}|}}<!-- --><!-- -->{{#varvardefine:varTextPrefix}} "|{{#ifeq: {{#show: {{{theory|}}}|?Formulation TextTheory Type|link=none}}"&#32;<!-- -->|Definition|It is defined as:|It states:}}|}}<!-- if formulation text
--><!--
-->{{#switch: {{#arraysize: varCommunities}}<!--  -->|0=<!-- add --><!-- No values: print the diagram if necessarydefault --><!-- -->{{{default|}}}<!--   -->|1=<!-- --><!-- One value --><!--  -->{{{intro|}}}<!-- -->{{#ifeq: {{{formulationfilecommunitiesfirst|no}}}|yes|<!-- -->|In {{#arrayprint: varCommunities||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!-- -->|{{#ififeq: {{{skiptheorytitle|no}}}|yes|It|{{#showifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|?Formulation File{{{theory|}}}|link}}|}} is currently accepted by {{#arrayprint: varCommunities||@@@@|@@@@|print=nonepretty}} community as the best available {{#var:varAcceptedText}}.&#32;<!-- -->}}<!-- --><!--  -->{{{outro|}}}<nowiki/!--  -->|<!-- --><!-- Multiple values --><!--  -->{{{intro|}}}<!--
{{PrintDiagramFile|diagram file={{#show: {{{theory|}}}|?Formulation File|link=none}}|}}<nowiki/><!-- -->}}<!-- if diagram -->}}<!-- if formulation file --><!-- --><!-- add description if necessary -->{{#ifeq: {{{description|no}}}|yes|{{#show: {{{theory|}}}|?Description First Paragraph|link=none}} [[{{{theory|}}}|Read More]]<br>|}}<!-- --><!-- -->{{{outro|}}}<!-- -->|{{{intro|}}}<!-- -->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- -->|In {{#arrayprint: valuesvarCommunities||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.&#32;<!-- -->|{{#ifeq: {{{skiptheorytitle|no}}}|yes|It|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}|}} is currently accepted by {{#arrayprint: valuesvarCommunities||@@@@|@@@@|print=pretty}} communities as the best available {{#var:varAcceptedText}}.&#32;<!-- -->}}<!-- --><!-- --><!-- add formulation text if necessary -->{{#ifeq: {{{formulationtext|no}}}|yes|<!-- -->{{#var:varTextPrefix}} "{{#show: {{{theory|}}}|?Formulation Textoutro|link=none}}"&#32;<!-- -->}}<!-- if formulation text --><!-- --><!-- add the diagram if necessary -->{{#ifeq: {{{formulationfile|no}}}|yes|<!-- --><!-- -->{{#if: {{#show: {{{theory|}}}|?Formulation File|link=none}}|<nowiki/>switch
{{PrintDiagramFile|diagram file={{#show: {{{theory|}}}|?Formulation File|link=none}}|}}<nowiki/><!-- -->}}<!-- if diagram -->}}<!-- if formulation file --><!-- --><!-- add description if necessary -->{{#ifeq: {{{description|no}}}|yes|{{#show: {{{theory|}}}|?Description First Paragraph|link=none}} [[{{{theory|}}}|Read More]]<br>|}}<!-- --><!-- -->{{{outro|}}}<!---->}}<!-- switch
--></includeonly>