Difference between revisions of "Template:PrintTopicRelatedTopics"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
* <code><nowiki>|bullets=</nowiki></code> - if non empty, a bullet-list will be produced. | * <code><nowiki>|bullets=</nowiki></code> - if non empty, a bullet-list will be produced. | ||
* <code><nowiki>|includeparenttopic=</nowiki></code> - if non empty, the parent topic is also included in the list. | * <code><nowiki>|includeparenttopic=</nowiki></code> - if non empty, the parent topic is also included in the list. | ||
− | * <code><nowiki>| | + | * <code><nowiki>|includesubtopics=</nowiki></code> - if non empty, the subtopics of the topic are also included. |
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Line 41: | Line 41: | ||
-->}}<!-- | -->}}<!-- | ||
--><!-- | --><!-- | ||
− | -->{{#if: {{{ | + | -->{{#if: {{{includesubtopics|}}}|<!-- get the subtopics if necessary |
-->{{#arraydefine: varSubtopics|<!-- | -->{{#arraydefine: varSubtopics|<!-- | ||
-->{{#ask:<!-- first, get the topics related through Has Related Topic property | -->{{#ask:<!-- first, get the topics related through Has Related Topic property |
Revision as of 06:33, 30 August 2016
This template is used to print an array of topics related to the topic.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topic=
- the page for which related topics 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.|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.|bullets=
- if non empty, a bullet-list will be produced.|includeparenttopic=
- if non empty, the parent topic is also included in the list.|includesubtopics=
- if non empty, the subtopics of the topic are also included.