Difference between revisions of "Template:Heading"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 13: Line 13:
 
--><!--  
 
--><!--  
 
-->{{#switch: {{{level|1}}}<!--
 
-->{{#switch: {{{level|1}}}<!--
   -->|2=<p><nowiki/>
+
   -->|2=<nowiki/>
 +
 
 
=={{{headingtext|Text}}}==
 
=={{{headingtext|Text}}}==
</p><!--
+
 
   -->|3=<p>==={{{headingtext|Text}}}===</p><!--
+
<!--
 +
   -->|3=<nowiki/>
 +
 
 +
==={{{headingtext|Text}}}===
 +
 
 +
<!--
 
   -->|4=<p>===={{{headingtext|Text}}}====</p><!--
 
   -->|4=<p>===={{{headingtext|Text}}}====</p><!--
 
   -->|5=<p>====={{{headingtext|Text}}}=====</p><!--
 
   -->|5=<p>====={{{headingtext|Text}}}=====</p><!--

Revision as of 17:11, 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.