Difference between revisions of "Template:PrintTopicRelatedTopics"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
* <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>|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>|link=</nowiki></code> - 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.
* <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>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent).
 
* <code><nowiki>|pretty=</nowiki></code> - if non empty, a ''pretty'' list is produced where the last two elements are chained with an ''and'' (or the local languages equivalent).
  
Line 25: Line 24:
 
   -->|mainlabel=-<!--
 
   -->|mainlabel=-<!--
 
   -->|headers=hide<!--
 
   -->|headers=hide<!--
 +
  -->|link={{{link|}}}<!--
 
   -->|format=list<!--
 
   -->|format=list<!--
 
   -->}}<!--
 
   -->}}<!--
Line 35: Line 35:
 
     -->|?Parent Topic=Topic<!--  
 
     -->|?Parent Topic=Topic<!--  
 
     -->|mainlabel=-<!--
 
     -->|mainlabel=-<!--
 +
    -->|link={{{link|}}}<!--
 
     -->|headers=hide<!--
 
     -->|headers=hide<!--
 
     -->|format=list<!--
 
     -->|format=list<!--
Line 48: Line 49:
 
     -->[[Has Related Topic::{{{topic|}}}]]<!--  
 
     -->[[Has Related Topic::{{{topic|}}}]]<!--  
 
     -->|mainlabel=Topic<!--
 
     -->|mainlabel=Topic<!--
 +
    -->|link={{{link|}}}<!--
 
     -->|headers=hide<!--
 
     -->|headers=hide<!--
 
     -->|format=list<!--
 
     -->|format=list<!--
Line 61: Line 63:
 
     -->[[Parent Topic::{{{topic|}}}]]<!--  
 
     -->[[Parent Topic::{{{topic|}}}]]<!--  
 
     -->|mainlabel=Topic<!--
 
     -->|mainlabel=Topic<!--
 +
    -->|link={{{link|}}}<!--
 
     -->|headers=hide<!--
 
     -->|headers=hide<!--
 
     -->|format=list<!--
 
     -->|format=list<!--

Latest revision as of 14:22, 30 August 2016

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 |include...= flags.

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.
  • |includeinverselyrelatedtopics= - if yes, the topics to which this topic is itself related will also be included in the list.
  • |includeparenttopic= - if yes, the parent topic is also included in the list.
  • |includesubtopics= - if yes, the subtopics of the topic are also included.
  • |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).