Difference between revisions of "Template:PrintTopicCurrentlyAcceptedInCommunities"
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<!-- | + | --><!-- |
− | + | -->{{#if: {{{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}} }}<!-- | |
− | + | --><!-- | |
− | + | -->{{#arraydefine: values<!-- | |
− | + | -->|{{#ask:<!-- | |
− | + | -->[[SubObjectCategory::Acceptance Record]]<!-- | |
− | + | -->[[Element::{{{topic|}}}]]<!-- | |
− | + | -->[[Still Accepted::true]]<!-- | |
+ | -->|?Community<!-- | ||
+ | -->|mainlabel=-<!-- | ||
+ | -->|headers=hide<!-- | ||
+ | -->|link={{{link|}}}<!-- | ||
+ | -->|limit=10000<!-- | ||
+ | -->}}<!-- | ||
+ | -->| , |unique<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | + | -->{{#switch: {{#arraysize: values}}<!-- | |
− | + | -->|0={{{default|}}}<!-- | |
− | -->{{#switch: {{#arraysize: values}}<!-- | + | -->|1={{{intro|}}}<!-- |
− | + | -->{{#var: varTypeText}} {{#arrayprint: values||@@@@|@@@@|print=pretty}} community. <!-- | |
− | + | -->{{{outro|}}}<!-- | |
− | + | -->|{{{intro|}}}<!-- | |
− | + | -->{{#var: varTypeText}} <!-- | |
− | + | -->{{#if: {{{pretty|}}}<!-- | |
− | + | -->|{{#arrayprint: values||@@@@|@@@@|print=pretty}}<!-- | |
− | + | -->|{{#arrayprint: values|, |@@@@|@@@@}}<!-- | |
− | + | -->}} communities. <!-- | |
− | + | -->{{{outro|}}}<!-- | |
− | + | -->}}<!-- switch | |
− | + | -->}}<!-- 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).