Difference between revisions of "Template:PrintTopicSubtopics"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
Line 17: Line 17:
 
   -->[[Category:Topic]]<!--  
 
   -->[[Category:Topic]]<!--  
 
   -->[[Parent Topic::{{{topic|}}}]]<!--  
 
   -->[[Parent Topic::{{{topic|}}}]]<!--  
   -->{{#ifeq: {{{details|}}}|yes|{{!}}?Question|}}<!--
+
   -->|{{#ifeq: {{{details|}}}|yes|?Question|}}<!--
 
   -->|intro={{{intro|}}}<!--
 
   -->|intro={{{intro|}}}<!--
 
   -->|outro={{{outro|}}}<!--
 
   -->|outro={{{outro|}}}<!--

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.