Open main menu

Changes

no edit summary
'''Parameters:'''
* <code><nowiki>|theory=</nowiki></code> - the theory.
* <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 need to have a preceding text, write it herethis will be printed instead.* <code><nowiki>|link=</nowiki></code> - determines whether if ''all'', then the values are to be printer as links to the respective pages will be printed; otherwise (where availabledefault); possible values are no links will be added.* <code><nowiki>|linktheory=</nowiki></code> - if ''noneyes''the theory name will also be a link to the theory's page, if ''no'' (default) it will be a plain text. The ''subjectyes'', 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 ''allyes'', the communities will be mentioned first in the sentence. If not given ''allno'' is (default) the name of the defaulttheory will appear first.* <code><nowiki>|prettyskiptheorytitle=</nowiki></code> - if non empty''yes'' the theory's title will be replaced by "It ", a if ''prettyno'' list is produced where (default) the full pagename of the last two elements are chained with an theory will be used. The ''andyes'' (or option is useful when calling this template from a theory page to avoid mentioning the local languages equivalent)theory's title several times in a row. NOTE: This parameter is ignored if <code><nowiki>communitiesfirst=yes</nowiki></code>
</noinclude><includeonly><!--
-->{{#if: {{{theory|}}}<!-- -->|<!--  -->{{#arraydefine: valuesvarCommunities<!-- -->|{{#ask:<!-- -->[[SubObjectCategory::Acceptance RecordCurrent Answer]]<!-- -->[[Theory::{{{theory|}}}]]<!-- -->[[Accepted UntilAnswer Type::Complete||Inherited||Partial]]<!-- -->|?Accepted by Community<!-- -->|mainlabel=-<!-- -->|headers=hide<!-- -->|link=none<!-- -->|limit=10000<!-- -->}}<!-- -->| , |unique<!---->}}<!---->{{#arrayuniqueifeq: values{{{link|no}}<!-- remove duplicates and empty values-->{{#arraysize: values}|yes|all|none}}<!-- -->{{#if: {{{pretty|}}}limit=10000<!-- -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!-- -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}unique<!--
-->}}<!--
--><!--
-->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|definition of the term|answer to the question}}|}}<!--
--><!--
-->{{#vardefine: varTextPrefix|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|It is defined as:|It states:}}|}}<!--
--><!--
-->{{#switch: {{#arraysize: varCommunities}}<!--
 
-->|0=<!--
--><!-- No values: print the default
--><!--
-->{{{default|}}}<!--
 
-->|1=<!--
--><!-- One value
--><!--
 
-->{{{intro|}}}<!--
 
-->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
-->|In {{#arrayprint: varCommunities||@@@@|@@@@|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: varCommunities||@@@@|@@@@|print=pretty}} community as the best available {{#var:varAcceptedText}}.&#32;<!--
-->}}<!--
--><!--
 
-->{{{outro|}}}<!--
 
-->|<!--
--><!-- Multiple values
--><!--
 
-->{{{intro|}}}<!--
 
-->{{#ifeq: {{{communitiesfirst|}}}|yes<!--
-->|In {{#arrayprint: varCommunities||@@@@|@@@@|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: varCommunities||@@@@|@@@@|print=pretty}} communities as the best available {{#var:varAcceptedText}}.&#32;<!--
-->}}<!--
--><!--
 
-->{{{outro|}}}<!--
 
-->}}<!-- switch
 
-->}}<!-- if
--></includeonly>