Difference between revisions of "Template:PrintCommunityTermCurrentSupertypesList"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to print the list of subtypes of a term accepted by the community. The subtypes will be grouped by their disjoint groups. The template is cal...") |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to print the list of subtypes of a term accepted by the community | + | This template is used to print the list of subtypes of a term accepted by the community. The template is called from [[Template:PrintTermAcceptedSupertypesList]]. |
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. | ||
Line 25: | Line 25: | ||
-->|mainlabel=-<!-- | -->|mainlabel=-<!-- | ||
-->|headers=hide<!-- | -->|headers=hide<!-- | ||
− | -->|link={{{link|}}}<!-- | + | -->|link={{{link|all}}}<!-- |
-->}}<!-- ask | -->}}<!-- ask | ||
-->|, |unique<!-- | -->|, |unique<!-- | ||
-->}}<!-- array define | -->}}<!-- array define | ||
+ | --><!-- | ||
+ | -->{{#ifeq: {{{link|}}}|none<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#vardefine: varCommunity|{{{community}}}|}}<!-- | ||
+ | -->{{#vardefine: varTerm|{{{term}}}|}}<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#vardefine: varCommunity|[[{{{community|}}}|{{PAGENAME:{{{community|}}}}}]]|}}<!-- | ||
+ | -->{{#vardefine: varTerm|[[{{{term|}}}]]|}}<!-- | ||
+ | -->}}<!-- ifeq | ||
+ | --><!-- | ||
+ | --><!-- | ||
--><!-- | --><!-- | ||
-->{{#ifeq: {{#arraysize: arraySupertypes}}|0<!-- | -->{{#ifeq: {{#arraysize: arraySupertypes}}|0<!-- | ||
-->|<!-- | -->|<!-- | ||
--><!-- no supertypes: return the default | --><!-- no supertypes: return the default | ||
− | -->{{#ifeq: {{{communitiesfirst|}}}|yes|In | + | -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, there are currently no accepted supertypes of {{#var: varTerm}}. |There are currently no accepted supertypes of {{#var: varTerm}} in {{#var: varCommunity}}. }}<!-- |
--><!-- | --><!-- | ||
-->|<!-- | -->|<!-- | ||
Line 42: | Line 53: | ||
-->{{#vardefine: varIsAre|is}}<!-- | -->{{#vardefine: varIsAre|is}}<!-- | ||
-->|<!-- plural | -->|<!-- plural | ||
− | -->{{#vardefine: | + | -->{{#vardefine: varTextSupertype|supertypes}}<!-- |
-->{{#vardefine: varIsAre|are}}<!-- | -->{{#vardefine: varIsAre|are}}<!-- | ||
-->}}<!-- ifeq | -->}}<!-- ifeq | ||
− | |||
− | |||
− | |||
--><!-- | --><!-- | ||
--><!-- print | --><!-- print | ||
− | -->{{#ifeq: {{{bullets|}}}|yes | + | -->{{#ifeq: {{{bullets|}}}|yes<!-- |
-->|<!-- | -->|<!-- | ||
− | -->{{#arrayprint: arraySupertypes||varSupertype|* | + | --><!-- add the intro |
+ | -->{{#ifeq: {{{communitiesfirst|}}}|yes|In {{#var: varCommunity}}, the following {{#var: varTextSupertype}} of {{#var: varTerm}} {{#var: varIsAre}} currently accepted|The following {{#var: varTextSupertype}} of {{#var: varTerm}} {{#var: varIsAre}} currently accepted in {{#var: varCommunity}}|}}: <!-- | ||
+ | --><!-- | ||
+ | -->{{#arrayprint: arraySupertypes||varSupertype|<!-- | ||
+ | -->* varSupertype<!-- | ||
+ | --><!-- | ||
+ | -->}}<!-- | ||
-->|<!-- | -->|<!-- | ||
− | -->{{#arrayprint: arraySupertypes||varSupertype|print=pretty}}<!-- | + | --><!-- add the intro |
+ | -->{{#ifeq: {{{communitiesfirst|}}}|yes<!-- | ||
+ | -->|<!-- | ||
+ | -->In {{#var: varCommunity}}, it is currently accepted that {{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} the {{#var: varTextSupertype}} of {{#var: varTerm}}.<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#arrayprint: arraySupertypes||varSupertype|varSupertype|print=pretty}} {{#var: varIsAre}} currently accepted as the {{#var: varTextSupertype}} of {{#var: varTerm}} in {{#var: varCommunity}}.<!-- | ||
+ | -->}}<!-- | ||
+ | --><!-- | ||
-->}}<!-- ifeq bullets | -->}}<!-- ifeq bullets | ||
--><!-- | --><!-- |
Latest revision as of 21:18, 28 December 2022
This template is used to print the list of subtypes of a term accepted by the community. The template is called from Template:PrintTermAcceptedSupertypesList.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|community=
- the community.|term=
- the topic.|bullets=
- if yes, bullets will appear before every disjoint group. Otherwise, the sentences will be formatted without bullets or line breaks.|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.|communitiesfirst=
- if yes, the communities will be mentioned first in the intro sentence. If no (default) the name of the theory will appear first.