Difference between revisions of "Template:PrintTopicSubtopics"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 9: Line 9:
 
* <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>|details=</nowiki></code> - if ''yes'', then the text of the question will also be printed. If ''no'' (default), only the name of the topic will be printed.
 
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced.
 
* <code><nowiki>|bullets=</nowiki></code> - if ''yes'', a bullet-list will be produced.
  
Line 16: Line 17:
 
   -->[[Category:Topic]]<!--  
 
   -->[[Category:Topic]]<!--  
 
   -->[[Parent Topic::{{{topic|}}}]]<!--  
 
   -->[[Parent Topic::{{{topic|}}}]]<!--  
   -->|?Question<!--
+
   -->{{#ifeq: {{{details|}}}|yes|{{!}}?Question|}}<!--
 
   -->|intro={{{intro|}}}<!--
 
   -->|intro={{{intro|}}}<!--
 
   -->|outro={{{outro|}}}<!--
 
   -->|outro={{{outro|}}}<!--

Revision as of 01:47, 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.