Difference between revisions of "Template:PrintCommunityCurrentDescriptiveTopicsTree"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template is used to print the full semantic tree of all the topics accepted as legitimate by the community.  
+
This template is used to print the full semantic tree of all descriptive topics accepted as legitimate by the community.  
  
 
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
 
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Line 6: Line 6:
 
'''Parameters:'''
 
'''Parameters:'''
 
* <code><nowiki>|community=</nowiki></code> - the community's full page name.
 
* <code><nowiki>|community=</nowiki></code> - the community's full page name.
 +
* <code><nowiki>|subfield=</nowiki></code> - e.g. Ontology, Dynamics.
 
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes the output, if at least some results exist.
 
* <code><nowiki>|intro=</nowiki></code> - initial text that precedes 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>|outro=</nowiki></code> - text that is appended to the output, if at least some results exist.
Line 15: Line 16:
 
-->{{#if: {{{community|}}} |<!--
 
-->{{#if: {{{community|}}} |<!--
 
  --><!--
 
  --><!--
  -->{{#if: {{#ask: [[Category:Descriptive Topic]] [[Accepted By::{{{community|}}}]]||parent=Parent Topic|format=tree}}|{{#vardefine: varExists|true}}|{{#vardefine: varExists|false}} }}<!--
+
  -->{{#if: {{#ask: [[Category:Descriptive Topic]] {{#if: {{{subfield|}}}|[[Subfield::{{{subfield|}}}]]|}} [[Accepted By::{{{community|}}}]]||parent=Parent Topic|format=tree}}|{{#vardefine: varExists|true}}|{{#vardefine: varExists|false}} }}<!--
 
  --><!--
 
  --><!--
 
  -->{{#ifeq: {{#var:varExists}}|true|{{{intro|}}}<nowiki/>
 
  -->{{#ifeq: {{#var:varExists}}|true|{{{intro|}}}<nowiki/>
Line 21: Line 22:
 
  --><!--
 
  --><!--
 
  -->{{#ask:<!--  
 
  -->{{#ask:<!--  
   -->[[Category:Descriptive Topic]] <!--  
+
   -->[[Category:Descriptive Topic]]<!--
 +
  -->{{#if: {{{subfield|}}}|[[Subfield::{{{subfield|}}}]]|}}<!--
 
   -->[[Accepted By::{{{community|}}}]]<!--  
 
   -->[[Accepted By::{{{community|}}}]]<!--  
 
   -->|parent=Parent Topic<!--
 
   -->|parent=Parent Topic<!--
Line 28: Line 30:
 
   -->|sep=&#32;-&#32;<!--
 
   -->|sep=&#32;-&#32;<!--
 
  -->}}<!-- ask
 
  -->}}<!-- ask
  -->{{#ifeq: {{#var:varExists}}|true|{{{outro|}}}|}}<!--
+
--><!--
  -->}}<!-- community
+
  -->{{#ifeq: {{#var:varExists}}|true<!--
 +
  -->|{{{outro|}}}<!--
 +
  -->|{{{default|}}}<!--
 +
-->}}<!--
 +
  --><!--
 +
-->}}<!-- community
 
--></includeonly>
 
--></includeonly>

Latest revision as of 21:57, 7 January 2023

This template is used to print the full semantic tree of all descriptive topics accepted as legitimate by the community.

NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.

Parameters:

  • |community= - the community's full page name.
  • |subfield= - e.g. Ontology, Dynamics.
  • |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 details of the theory are added to each record.
  • |bullets= - if yes, a bullet-list will be produced; otherwise (default) the list will simply start from a new line.