Difference between revisions of "Template:PrintTopicRelatedTopics"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
(Created page with "<noinclude> 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...")
 
Line 29: Line 29:
 
   --><!-- now add the parent if necessary
 
   --><!-- now add the parent if necessary
 
   -->{{#if: {{{includeparenttopic|}}}|<!--
 
   -->{{#if: {{{includeparenttopic|}}}|<!--
   -->{{#show: {{{topic|}}}|?Parent Topic|link={{{link|}}}|}}<!--
+
   -->{{#show: {{{topic|}}}|?Parent Topic|link={{{link|}}}|intro=,}}<!--
 
   -->}}<!-- if
 
   -->}}<!-- if
 
   --><!-- now add the subtopics if necessary
 
   --><!-- now add the subtopics if necessary
Line 36: Line 36:
 
     -->[[Category:Topic]]<!--  
 
     -->[[Category:Topic]]<!--  
 
     -->[[Parent Topic::{{{topic|}}}]]<!--  
 
     -->[[Parent Topic::{{{topic|}}}]]<!--  
 +
    -->intro=,<!--
 
     -->|link={{{link|}}}<!--
 
     -->|link={{{link|}}}<!--
 
     -->|limit=10000<!--
 
     -->|limit=10000<!--

Revision as of 05:11, 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.
  • |inclusubtopics= - if non empty, the subtopics of the topic are also included.