Difference between revisions of "Template:PrintTopicCurrentlyAcceptedInCommunities"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
  
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
-->{{#arraydefine: values<!--
+
--><!--
-->|{{#ask:<!--
+
-->{{#if: {{{topic|}}}<!--
  -->[[SubObjectCategory::Acceptance Record]]<!--  
+
-->|<!--
  -->[[Theory::{{{topic|}}}]]<!--  
+
  -->{{#vardefine: varTypeText|{{#ifeq: {{#show: {{{topic|}}}|?Topic Type|link=none}}|Definitional|The term is currently accepted by|The question is currently accepted as a legitimate topic for discussion by}} }}<!--
  -->[[Still Accepted::true]]<!--  
+
  --><!--
  -->|?Community<!--
+
  -->{{#arraydefine: values<!--
  -->|mainlabel=-<!--
+
  -->|{{#ask:<!--
  -->|headers=hide<!--
+
    -->[[SubObjectCategory::Acceptance Record]]<!--  
  -->|link={{{link|}}}<!--
+
    -->[[Element::{{{topic|}}}]]<!--  
  -->|limit=10000<!--
+
    -->[[Still Accepted::true]]<!--  
 +
    -->|?Community<!--
 +
    -->|mainlabel=-<!--
 +
    -->|headers=hide<!--
 +
    -->|link={{{link|}}}<!--
 +
    -->|limit=10000<!--
 +
    -->}}<!--
 +
  -->| , |unique<!--
 
   -->}}<!--
 
   -->}}<!--
-->| , |unique<!--
+
  -->{{#switch: {{#arraysize: values}}<!--
-->}}<!--
+
  -->|0={{{default|}}}<!--  
-->{{#switch: {{#arraysize: values}}<!--
+
  -->|1={{{intro|}}}<!--
-->|0={{{default|}}}<!--  
+
    -->{{#var: varTypeText}} {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.&#32;<!--
-->|1={{{intro|}}}<!--
+
    -->{{{outro|}}}<!--
  -->The question is currently accepted as a legitimate topic for discussion by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!--
+
  -->|{{{intro|}}}<!--
  -->{{{outro|}}}<!--
+
    -->{{#var: varTypeText}}&#32;<!--
-->|{{{intro|}}}<!--
+
    -->{{#if: {{{pretty|}}}<!--
  -->The question is currently accepted as a legitimate topic for discussion by&#32;<!--
+
    -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
  -->{{#if: {{{pretty|}}}<!--
+
    -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--
  -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
+
    -->}} communities.&#32;<!--
  -->|{{#arrayprint: values|,&#32;|@@@@|@@@@}}<!--
+
    -->{{{outro|}}}<!--
  -->}} communities.<!--
+
  -->}}<!-- switch
  -->{{{outro|}}}<!--
+
-->}}<!-- if
-->}}<!--
 
 
--></includeonly>
 
--></includeonly>

Latest revision as of 21:50, 8 February 2023

This template is used to print the list of communities where the topic is currently accepted as legitimate.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |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= - 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.
  • |pretty= - if non empty, a pretty list is produced where the last two elements are chained with an and (or the local languages equivalent).