Difference between revisions of "Template:PrintTheoryCurrentlyAcceptedInCommunities"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
'''Parameters:''' | '''Parameters:''' | ||
* <code><nowiki>|theory=</nowiki></code> - the theory. | * <code><nowiki>|theory=</nowiki></code> - the theory. | ||
− | * <code><nowiki>|intro=</nowiki></code> - if the results | + | * <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist. |
+ | * <code><nowiki>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist. | ||
+ | * <code><nowiki>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. | ||
* <code><nowiki>|link=</nowiki></code> - 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. | * <code><nowiki>|link=</nowiki></code> - 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. | ||
* <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent). | * <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent). | ||
Line 25: | Line 27: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#switch: {{#arraysize: values}}<!-- | -->{{#switch: {{#arraysize: values}}<!-- | ||
− | -->|0=<!-- | + | -->|0={{{default|}}}<!-- |
-->|1={{{intro|}}}<!-- | -->|1={{{intro|}}}<!-- | ||
− | + | -->{{{theory|}}} is currently accepted by {{#arrayprint: values||@@@@|@@@@|print=pretty}} community.<!-- | |
+ | -->{{{outro|}}}<!-- | ||
-->|{{{intro|}}}<!-- | -->|{{{intro|}}}<!-- | ||
-->{{{theory|}}} is currently accepted by the following communities: <!-- | -->{{{theory|}}} is currently accepted by the following communities: <!-- | ||
Line 34: | Line 37: | ||
-->|{{#arrayprint: values|, |@@@@|@@@@}}<!-- | -->|{{#arrayprint: values|, |@@@@|@@@@}}<!-- | ||
-->}}.<!-- | -->}}.<!-- | ||
+ | -->{{{outro|}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></includeonly> | --></includeonly> |
Revision as of 20:37, 19 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=
- 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 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).