Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 26: Line 26:
 
-->{{#switch: {{#arraysize: values}}<!--
 
-->{{#switch: {{#arraysize: values}}<!--
 
  -->|0=<!-- empty string if no values were found
 
  -->|0=<!-- empty string if no values were found
 +
-->|1={{{intro|}}}<!--
 +
    -->{{{theory|}}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.
 
  -->|{{{intro|}}}<!--
 
  -->|{{{intro|}}}<!--
 +
  -->{{{theory|}}} is currently accepted by the following communities:&#32;<!--
 
   -->{{#if: {{{pretty|}}}<!--
 
   -->{{#if: {{{pretty|}}}<!--
 
   -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--
 
   -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!--

Revision as of 22:40, 18 August 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= - if the results need to have a preceding text, write it here.
  • |link= - determines whether the values are to be printer 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).