Template:Subsup

From Xenharmonic Wiki
Revision as of 16:08, 31 January 2025 by ArrowHead294 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]
English Wikipedia has an article on:

This template provides a simple means of coding inline expressions that have both a subscript and a superscript, for display in the same typeface as the surrounding text.

Usage

Pass in, as three unnamed parameters, the expression followed by the subscript and then the superscript:

{{subsup|expression|subscript|superscript}}

If you only need a superscript or only a subscript, just use <sup> or <sub> tags.

For example:

{{subsup|''x''|2|3}}

gives

x 3
2