Safer nicotine wiki
Tobacco Harm Reduction
Jump to navigation
Jump to search
?? ?? ??
This template combines the effects of the {{overset }} and {{underset }} templates into one. The template names {{overunderset }} and {{underoverset }} are synonymous and can be used interchangeably: {{underoverset}} redirects to {{overunderset}}.
Syntax
The code is:
{{underoverset|base|over|under}}
or {{overunderset|base|over|under}}
which outputs as over base under .
where:
base
the main symbol,
over
the symbol above the main symbol,
under
the symbol underneath the main symbol.
Application
Combined overset and underset
The effect of an can be achieved by combining underset followed by overset:
1234567890 + a b a + 1234567890 + a b a + 1234567890
but sometimes one combination will not work, particularly when there is only one combined application of templates on a line:
1234567890 + a b a ,
1234567890 + a b a .
The overunderset is one way around the problem using by containing the over- and under- positions for symbols:
1234567890 + b a c + 1234567890 + b a c + 1234567890
1234567890 + b a c ,
1234567890 + b a c .
Reduction to overset
With the under
parameter empty:
1234567890 + b a + 1234567890 + b a + 1234567890
1234567890 + b a ,
1234567890 + b a .
Reduction to underset
With the over
parameter empty:
1234567890 + a b + 1234567890 + a b + 1234567890
1234567890 + a b ,
1234567890 + a b .
See also
Superscript and subscript-related templates
{{sup}} and related templates Combined super/subscripts
[[Template:{{{2}}}|{{{2}}} ]] textsuperscript superscript text [[Template:{{{2}}}|{{{2}}} ]] ([[Template:{{{2}}}|{{{2}}} ]]) textsmall superscript small superscript text [[Template:{{{2}}}|{{{2}}} ]] ([[Template:{{{2}}}|{{{2}}} ]]⧼dot-separator⧽[[Template:{{{2}}}|{{{2}}} ]]) text superscript (rather than: text superscript ) [[Template:{{{2}}}|{{{2}}} ]] ([[Template:{{{2}}}|{{{2}}} ]]⧼dot-separator⧽[[Template:{{{2}}}|{{{2}}} ]]) text small superscript (rather than: text small superscript ) [[Template:{{{2}}}|{{{2}}} ]] ([[Template:{{{2}}}|{{{2}}} ]]) textsuperscript (rather than: textsuperscript ) [[Template:{{{2}}}|{{{2}}} ]] textsubscript subscript text [[Template:{{{2}}}|{{{2}}} ]] ([[Template:{{{2}}}|{{{2}}} ]]) textsmall subscript small subscript text [[Template:{{{2}}}|{{{2}}} ]] textdouble-subscripted double-subscripted text
[[Template:{{{2}}}|{{{2}}} ]] textp=superscript b=subscript p=superscript b=subscript text [[Template:{{{2}}}|{{{2}}} ]] textsup sub sup sub text [[Template:{{{2}}}|{{{2}}} ]] 1.23+4 −2 [[Template:{{{2}}}|{{{2}}} ]] / [[Template:{{{2}}}|{{{2}}} ]] superscript text subscript