Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
-->| , |unique<!-- | -->| , |unique<!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | --><!-- | ||
+ | -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{theory|}}}|?Theory Type|link=none}}|Definition|definition of the term|theory on the subject}}|}}<!-- | ||
+ | --><!-- | ||
-->{{#switch: {{#arraysize: values}}<!-- | -->{{#switch: {{#arraysize: values}}<!-- | ||
-->|0={{{default|}}}<!-- | -->|0={{{default|}}}<!-- | ||
-->|1={{{intro|}}}<!-- | -->|1={{{intro|}}}<!-- | ||
-->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- | -->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- | ||
− | -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted | + | -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} community, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.<!-- |
-->|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!-- | -->|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 37: | Line 40: | ||
-->|{{{intro|}}}<!-- | -->|{{{intro|}}}<!-- | ||
-->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- | -->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- | ||
− | -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted | + | -->|In {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities, the accepted {{#var:varAcceptedText}} is {{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}}.<!-- |
-->|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities.<!-- | -->|{{#ifeq: {{{linktheory|}}}|yes|[[{{{theory|}}}]]|{{{theory|}}}|}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} communities.<!-- | ||
-->}}<!-- | -->}}<!-- |
Revision as of 17:00, 5 September 2016
This template is used to print the list of communities where the theory is currently accepted.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|theory=
- the theory.|intro=
- initial text that precedes the output, if at least some results exist.|outro=
- text that is appended to the output, if at least some results exist.|default=
- if, for any reason, the query returns no results, this will be printed instead.|link=
- determines whether the values are to be printed as links to the respective pages (where available); possible values are none, subject, all. If not given all is the default.|linktheory=
- 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.|communitiesfirst=
- if yes, the communities will be mentioned first in the sentence. If no (default) the name of the theory will appear first.