Template:Sup sub/doc: Difference between revisions
Template page
More actions
No edit summary |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d= | |1d=superscript | ||
|1def= | |1def= | ||
|1stat=required | |1stat=required | ||
|2=2 | |2=2 | ||
|2d= | |2d=subscript | ||
|2def= | |2def= | ||
|2stat=required | |2stat=required | ||
|name= | |name= | ||
|desc=Provides formatting with superscript and subscript. Example: | |desc=Provides formatting with superscript and subscript.<br> | ||
<span style="font-weight:lighter">''Example:'' to get D{{sup sub|2|g}} you would use: <code><nowiki>D{{sup sub|2|g}}</nowiki></code></span> | |||
|namespace=any | |namespace=any | ||
|usergroup=all | |usergroup=all | ||
| Line 21: | Line 20: | ||
|i18n-desc= | |i18n-desc= | ||
|i18n-mediawiki-msg= | |i18n-mediawiki-msg= | ||
|seealso= | |seealso={{Text formatting template (see also)}} | ||
|setscats= | |setscats= | ||
|lines= | |lines= | ||
| Line 31: | Line 30: | ||
[[Category:Formatting templates|{{PAGENAME}}]] | [[Category:Formatting templates|{{PAGENAME}}]] | ||
[[es:Plantilla:sup sub]] | [[w:es:Plantilla:sup sub]] | ||
[[fr:Modèle:ExpInd]] | [[w:fr:Modèle:ExpInd]] | ||
[[id:Templat:Sup sub]] | [[w:id:Templat:Sup sub]] | ||
[[hu:Sablon:sup sub]] | [[w:hu:Sablon:sup sub]] | ||
[[mk:Шаблон:Sup sub]] | [[w:mk:Шаблон:Sup sub]] | ||
[[ja:Template:Sup sub]] | [[w:ja:Template:Sup sub]] | ||
[[pl:Szablon:Sup sub]] | [[w:pl:Szablon:Sup sub]] | ||
[[ru:Шаблон:Sup sub]] | [[w:ru:Шаблон:Sup sub]] | ||
[[sl:Predloga:Sup sub]] | [[w:sl:Predloga:Sup sub]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 14:40, 15 August 2026
Provides formatting with superscript and subscript.
Example: to get D2g you would use: D{{sup sub|2|g}}
Usage
{{Sup sub/doc |1= |2= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | superscript | empty | required | |
2 | subscript | empty | required | |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
See also
| Code example | Renders as | Notes | Code example | Renders as | Notes |
|---|---|---|---|---|---|
X{{Exp|superscript text}} |
Xsuperscript text | X{{Smallsup|small superscript text}} |
Xsmall superscript text | with smaller text | |
X{{Sub|subscript text}} |
Xsubscript text | X{{Smallsub|small subscript text}} |
Xsmall subscript text | with smaller text | |
| — | X{{Sup sub|superscript|subscript}} |
Xsuperscriptsubscript | with smaller text | ||
X{{Big|big text}} |
Xbig text | X{{Small|small text}} |
Xsmall text | Font size 85% | |
X{{Font-size|120%|font-size 120%}} |
Xfont-size 120% | ← could maybe be merged → | X{{Resize|120%|font-size 120%}} |
Xfont-size 120% | |
X{{Overline|overlined}} |
Xoverlined | — | |||
X{{Explain|term|explanation}} |
Xterm | — | |||
X{{Mark|marked text}} |
Xmarked text | Same color as used in diffs. | X{{Highlight|highlighted text|#FF0|green}} |
Xhighlighted text | Multiple format parameters possible |
X{{Small-caps|Small capitals}} |
XSmall capitals | — | |||
X<kbd>teletype</kbd> |
Xteletype | Tags, not a template yet(en) (but used in e.g. {{Tld}}) | X<code>code</code> |
Xcode |
Tags, not a template yet(en) (but used in e.g. {{Tlc}}) |
- Note: The capital
Xin front of each template is used to compare the results to plain text.
Localization
This template is not intended to be localized.