Difference between revisions of "Template:PrintTopicSubtopics"
Jump to navigation
Jump to search
(Created page with "<noinclude> This template is used to print an array of subtopics of the given topic. '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely...") |
|||
(3 intermediate revisions by the same user not shown) | |||
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>|bullets=</nowiki></code> - if yes, a bullet-list will be produced. | + | * <code><nowiki>|details=</nowiki></code> - if ''yes'', then the text of the question will also be printed. If ''no'' (default), only the name of the topic will be printed. |
+ | * <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced. | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 16: | Line 17: | ||
-->[[Category:Topic]]<!-- | -->[[Category:Topic]]<!-- | ||
-->[[Parent Topic::{{{topic|}}}]]<!-- | -->[[Parent Topic::{{{topic|}}}]]<!-- | ||
− | -->|?Question<!-- | + | -->|{{#ifeq: {{{details|}}}|yes|?Question|}}<!-- |
-->|intro={{{intro|}}}<!-- | -->|intro={{{intro|}}}<!-- | ||
-->|outro={{{outro|}}}<!-- | -->|outro={{{outro|}}}<!-- | ||
Line 23: | Line 24: | ||
-->|link=subject<!-- | -->|link=subject<!-- | ||
-->|order=ascending<!-- | -->|order=ascending<!-- | ||
− | -->|template={{#ifeq: {{{bullets|}}}| | + | -->|template={{#ifeq: {{{bullets|}}}|yes|TopicSubtopics-ul-format|TopicSubtopics-plain-format}}<!-- |
-->}}<!-- ask | -->}}<!-- ask | ||
-->}}<!-- topic | -->}}<!-- topic | ||
--></includeonly> | --></includeonly> |
Latest revision as of 01:49, 31 August 2016
This template is used to print an array of subtopics of the given topic.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topic=
- the topic for which subtopics are to be printed.|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 the text of the question will also be printed. If no (default), only the name of the topic will be printed.|bullets=
- if yes, a bullet-list will be produced.