From MozillaWiki
Jump to: navigation, search
Edit-copy green.svg
This is a documentation subpage for Template:Sub.
It contains usage information, categories and other content that is not part of the original template page.


{{sub}} provides a quick way to define subscript text (e.g. normal text subscript text).


The template has one unnamed required parameter.


  • {{sub|custom text}}

Required parameters

  • 1: Custom text

Enter the text which you wish to be output as subscript.

  • {{sub|1}}


Correct use

Example case What you write What you see
Text {{sub|This text is in subscript}} This text is in subscript
Inline chemistry Drink water (H{{sub|2}}O) Drink water (H2O)
Simple arithmetics t=t{{sub|1}}-t{{sub|0}} t=t1-t0
Nested x{{sub|z{{sub|a}}}} xza

Incorrect use

Example case What you write What you see (error)
No parameter {{sub}} {{{1}}}

See also

  • {{sup}} - template used for defining superscript text.