Template:Sub

From MozillaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

{{{1}}}

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

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

Parameters

The template has one unnamed required parameter.

Syntax

  • {{sub|custom text}}

Required parameters

  • 1: Custom text

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

Usage
  • {{sub|1}}

Examples

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.