Template talk:Textdisp right

From Wikisource
Jump to: navigation, search

This template may be used to display equations with a right-flushed label and left-flushed text.

Usage[edit]

 {{textdisp_right|text|eq|label}}

The template has three unnamed arguments; the first two of them mandatory.

  • The first argument is the text on the left of the equation.
  • The second argument is the equation to be displayed.
  • The optional third argument is the equation's label.

Effects[edit]

The first argument, the text, is displayed flushed-left. The second argument, the equation, is displayed centred at full width. The third argument, the label, is displayed flushed-right. If the label is omitted, the empty string is used.

Example[edit]

 {{textdisp_right|As all Wikisourcerors know,|2+2<5|(1)}}

produces:

As all Wikisourcerors know, 2+2<5 (1)

Caveats[edit]

  • Equation width is maximised; this may lead to early line-breaking in the other two arguments if they contain breakable whitespace.

Limitations[edit]

  • If the total length of all arguments is too great, unintended line-breaking and overlapping may occur.

See also[edit]