Difference between revisions of "Template:PrintTopicAcceptedTheoriesList"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
* <code><nowiki>|outro=</nowiki></code> - text that is appended to 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>|default=</nowiki></code> - if, for any reason, the query returns no results, this will be printed instead. | ||
− | * <code><nowiki>|details=</nowiki></code> - if | + | * <code><nowiki>|details=</nowiki></code> - if ''yes'', then details of the theory are added to each record. |
− | * <code><nowiki>|bullets=</nowiki></code> - if | + | * <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced; otherwise (default) the list will simply start from a new line. |
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 30: | Line 30: | ||
-->|sort=Community,Accepted From<!-- | -->|sort=Community,Accepted From<!-- | ||
-->|order=ascending<!-- | -->|order=ascending<!-- | ||
− | -->|template={{#ifeq: {{{details|}}}| | + | -->|template={{#ifeq: {{{details|}}}|yes<!-- |
− | -->|{{#ifeq: {{{bullets|}}}| | + | -->|{{#ifeq: {{{bullets|}}}|yes|TopicAcceptedTheories-detail-ul-format|TopicAcceptedTheories-detail-plain-format}}<!-- |
− | -->|{{#ifeq: {{{bullets|}}}| | + | -->|{{#ifeq: {{{bullets|}}}|yes|TopicAcceptedTheories-ul-format|TopicAcceptedTheories-plain-format}}<!-- |
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- ask | -->}}<!-- ask | ||
-->}}<!-- topic | -->}}<!-- topic | ||
--></includeonly> | --></includeonly> |
Revision as of 14:59, 30 August 2016
This template is used to print the accepted theories on this topic in a bullet point list. The output will say that theory A is accepted by community X, and theory B is accepted by community Y.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topic=
- 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.|details=
- if yes, then details of the theory are added to each record.|bullets=
- if yes, a bullet-list will be produced; otherwise (default) the list will simply start from a new line.