Template:Sup/doc

< Template:Sup
Revision as of 14:15, 12 November 2014 by Lakrits (talk | contribs) (Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tl|sup}} provides a quick way to define superscript text (e.g. normal text <sup>superscript text</sup>). ===Parameters=== The...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Edit-copy green.svg
This is a documentation subpage for Template:Sup.
It contains usage information, categories and other content that is not part of the original template page.

Usage

{{sup}} provides a quick way to define superscript text (e.g. normal text superscript text).

Parameters

The template has one unnamed required parameter.

Syntax

  • {{sup|custom text}}

Required parameters

  • 1: Custom text

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

Usage
  • {{sup|1}}

Examples

Correct use

Example case What you write What you see
No parameter {{sup|This text is in superscript}} This text is in superscript
Inline chemistry Drink water (H{{sup|2}}O) Drink water (H2O)
Simple arithmetics t=t{{sup|1}}-t{{sup|0}} t=t1-t0

Incorrect use

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

See also

  • {{sub}} - template used for defining subscript text.