Template:Sub
From MozillaWiki
{{{1}}}
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.
The above documentation is transcluded from Template:Sub/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |