Difference between revisions of "Template:Heading"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
 
Line 14: Line 14:
 
-->{{#switch: {{{level|1}}}<!--
 
-->{{#switch: {{{level|1}}}<!--
 
   -->|2=<h2>{{{headingtext|Text}}}</h2><!--
 
   -->|2=<h2>{{{headingtext|Text}}}</h2><!--
   -->|2=<h3>{{{headingtext|Text}}}</h3><!--
+
   -->|3=<h3>{{{headingtext|Text}}}</h3><!--
   -->|2=<h4>{{{headingtext|Text}}}</h4><!--
+
   -->|4=<h4>{{{headingtext|Text}}}</h4><!--
   -->|2=<h5>{{{headingtext|Text}}}</h5><!--
+
   -->|5=<h5>{{{headingtext|Text}}}</h5><!--
   -->|2=<h6>{{{headingtext|Text}}}</h6><!--
+
   -->|6=<h6>{{{headingtext|Text}}}</h6><!--
 
-->}}<!-- switch  
 
-->}}<!-- switch  
 
--></includeonly>
 
--></includeonly>

Latest revision as of 17:16, 26 February 2023

This template adds a heading of the respective level and prints the text


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


Parameters:

  • |headingtext= - the text of the heading.
  • |level= - heading level; default is 2. Supports levels 2..6.