Open main menu

Changes

no edit summary
<noinclude>
This template is used to print an array of topics related to the topic. By default only the topics that have been explicitly indicated as being related to the topic in question on the topic's page are included in the output. To add other topics (such as the parent topic, the subtopics, and the topics to which this topic itself is related to) use the <code><nowiki>|include...=</nowiki></code> flags.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
* <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>|bullets=</nowiki></code> - if non empty, a bullet-list will be produced.
* <code><nowiki>|includeinverselyrelatedtopics=</nowiki></code> - if non empty, the topics to which this topic is itself related will also be included in the list.
* <code><nowiki>|includeparenttopic=</nowiki></code> - if non empty, the parent topic is also included in the list.
* <code><nowiki>|includesubtopics=</nowiki></code> - if non empty, the subtopics of the topic are also included.
-->}}<!--
--><!--
-->{{#if: {{{includeparenttopicincludeinverselyrelatedtopics|}}}|<!-- get the parent inversely related topics if necessary -->{{#arraydefine: varParentvarInverselyRelated|<!--
-->{{#ask:<!-- first, get the topics related through Has Related Topic property
-->[[{{{topic|}}}Category:Topic]]<!-- -->[[Has Related Topic::{{{topic|?Parent Topic=Topic}}}]]<!-- -->|mainlabel=-Topic<!--
-->|headers=hide<!--
-->|format=list<!--
--><!--
--><!-- merge the arrays
-->{{#arraymerge: values|varRelated|varInverselyRelated|varParent|varSubtopics}}<!----><!-- make sure the values are unique
-->{{#arrayunique: values}}<!--
--><!-- sort