Difference between revisions of "Template:PrintCommunityTopicCurrentTheoriesFormulations"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to print the formulations of theories accepted by the community on the given topic. It prints the formulations only by grouping them as neede...") |
|||
Line 9: | Line 9: | ||
The template will print: | The template will print: | ||
* “The stances of theory acceptance, theory pursuit, and theory use can be taken towards theories.” | * “The stances of theory acceptance, theory pursuit, and theory use can be taken towards theories.” | ||
+ | |||
+ | |||
+ | '''TODO: FIX THIS''' | ||
Line 30: | Line 33: | ||
-->{{#arraydefine: varTheories<!-- | -->{{#arraydefine: varTheories<!-- | ||
-->|{{#ask:<!-- | -->|{{#ask:<!-- | ||
− | -->[[SubObjectCategory:: | + | -->[[SubObjectCategory::Current Answer]]<!-- |
-->[[Community::{{{community|}}}]]<!-- | -->[[Community::{{{community|}}}]]<!-- | ||
-->[[Topic::{{{topic|}}}]]<!-- | -->[[Topic::{{{topic|}}}]]<!-- | ||
+ | -->[[Answer Type::Complete||Inherited||Partial]]<!-- | ||
-->|?Theory<!-- | -->|?Theory<!-- | ||
+ | -->|sort=Answer Type, Sorting Order<!-- | ||
+ | -->|order=asc, asc<!-- | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
-->|headers=hide<!-- | -->|headers=hide<!-- | ||
Line 62: | Line 68: | ||
--><!-- | --><!-- | ||
-->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definition of the term|answer to the question}}|}}<!-- | -->{{#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 | --><!-- Get the community depending on the link | ||
-->{{#ifeq: {{{link|no}}}|yes<!-- | -->{{#ifeq: {{{link|no}}}|yes<!-- | ||
-->|<!-- | -->|<!-- | ||
− | -->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] | + | -->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]|}}<!-- |
− | |||
− | |||
-->|<!-- | -->|<!-- | ||
− | + | -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}}|}}<!-- | |
− | |||
− | -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} | ||
− | |||
--><!-- | --><!-- | ||
-->}}<!-- if links | -->}}<!-- if links | ||
Line 79: | Line 81: | ||
--><!-- Print | --><!-- Print | ||
--><!-- | --><!-- | ||
− | -->In {{#var: varCommunityPrint}}, the accepted {{#var: varAcceptedText}} is {{#var: varTheoryPrint}} <!-- | + | --><p>In {{#var: varCommunityPrint}}, the accepted {{#var: varAcceptedText}} is:</p><p>* {{#var: varTheoryPrint}} </p><!-- |
--><!-- | --><!-- | ||
--><!-- | --><!-- | ||
Line 88: | Line 90: | ||
--><!-- Multiple Values | --><!-- Multiple Values | ||
--><!-- | --><!-- | ||
+ | |||
-->{{{intro|}}}<!-- | -->{{{intro|}}}<!-- | ||
--><!-- | --><!-- | ||
− | + | --><!-- Check what sort of a topic this is and generate the text | |
− | --><!-- | + | --><!-- |
+ | -->{{#vardefine: varAcceptedText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|definitions of the term|answers to the question}}|}}<!-- | ||
+ | |||
--><!-- | --><!-- | ||
+ | --><!-- Get the community and the theory depending on the link | ||
-->{{#ifeq: {{{link|no}}}|yes<!-- | -->{{#ifeq: {{{link|no}}}|yes<!-- | ||
-->|<!-- | -->|<!-- | ||
-->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!-- | -->{{#vardefine: varCommunityPrint|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]] }}<!-- | ||
+ | --><!-- | ||
-->|<!-- | -->|<!-- | ||
-->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!-- | -->{{#vardefine: varCommunityPrint|{{PAGENAME:{{{community|}}}}} }}<!-- | ||
+ | --><!-- | ||
-->}}<!-- ifeq links | -->}}<!-- ifeq links | ||
--><!-- | --><!-- | ||
− | + | --><!-- Check if communities should be mentioned first or last and print accordingly | |
− | --><!-- Check if | + | |
--><!-- | --><!-- | ||
− | -->{{# | + | --><p>In {{#var: varCommunityPrint}}, the accepted {{#var:varAcceptedText}} can be summarized as:</p><!-- |
--><!-- | --><!-- | ||
− | |||
− | + | -->{{#ask:<!-- | |
− | + | -->[[SubObjectCategory::Current Answer]]<!-- | |
− | + | -->[[Community::{{{community|}}}]]<!-- | |
− | + | -->[[Topic::{{{topic|}}}]]<!-- | |
− | + | -->[[Answer Type::Complete||Inherited||Partial]]<!-- | |
− | + | -->|?Formulation Text<!-- | |
− | + | -->|mainlabel=-<!-- | |
− | + | -->|headers=hide<!-- | |
− | + | -->|sort=Answer Type, Sorting Order<!-- | |
− | + | -->|order=asc, asc<!-- | |
− | + | -->|format=template<!-- | |
− | + | -->|template=Result-bullet-point<!-- | |
− | + | -->|link=none<!-- | |
− | + | -->|limit=10000<!-- | |
− | + | -->}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | --> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | -->}}<!-- | ||
--><!-- | --><!-- | ||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
-->{{{outro|}}}<!-- | -->{{{outro|}}}<!-- | ||
+ | |||
-->}}<!-- switch | -->}}<!-- switch | ||
--></includeonly> | --></includeonly> |
Revision as of 16:59, 27 February 2023
This template is used to print the formulations of theories accepted by the community on the given topic. It prints the formulations only by grouping them as needed. E.g.:
Suppose the question Epistemic Stances Towards Theories has several accepted answers, such as:
- “The stance of theory acceptance can be taken towards theories.”
- “The stance of theory pursuit can be taken towards theories.”
- “The stance of theory use can be taken towards theories.”
The template will print:
- “The stances of theory acceptance, theory pursuit, and theory use can be taken towards theories.”
TODO: FIX THIS
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|community=
- the community.|topic=
- the topic.|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=
- if all, then the links to pages will be printed; otherwise (default) no links will be added.
NOTE:
|communityfirst=
- is UNAVAILABLE, since the community should be printed first; otherwise it looks ugly.