Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Overunderset/doc

From Wikipedia, the free encyclopedia

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

[edit]

The code is:

{{underoverset|base|over|under}} or {{overunderset|base|over|under}}
which outputs as overbaseunder.

where:

base
the main symbol,
over
the symbol above the main symbol,
under
the symbol underneath the main symbol.

Application

[edit]

Combined overset and underset

[edit]

The effect of {{overunderset|b|a|c}} can be achieved by nesting {{underset|c|{{overset|a|b}}}} (or, equivalently, nesting underset into overset):

fooofoo + abc + foofoofooo + abc = fooofooo

but combining underset and overset may cause problems with vertical offset, particularly when there is only one combined application of templates on a line:

foodoodeee + foodoodaa,
foodoodaaa + foodoodee.

Using {{overunderset|base|over|under}} is one way around the problem by containing the over- and under- positions for symbols:

fooofoo + abc + foofooofooo + abc = fooofooo
foodoodeee + foodoodaa,
foodoodaaa + foodoodee.

Reduction to overset

[edit]

With the under parameter empty:

1234567890 + ba + 1234567890 + ba + 1234567890
1234567890 + ba,
1234567890 + ba.

Reduction to underset

[edit]

With the over parameter empty:

1234567890 + ab + 1234567890 + ab + 1234567890
1234567890 + ab,
1234567890 + ab.

See also

[edit]