Template talk:Equation box 1

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconPhysics Template‑class
WikiProject iconThis template is within the scope of WikiProject Physics, a collaborative effort to improve the coverage of Physics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Thumb right?[edit]

Thumbnail boxes for images have a "right" or "left" function that moves the image-box all the way to the right or left page border. In LaTeX or for this template "Equation Box 1" that works fine for the LEFT border. But what to do, if you'd like a boxed equation (or even a non-boxed one) to go to the RIGHT border, as (for example) part of the introductory infobox-like illustration of an article? Turns out this is hard. You can use enough colons in the Equation Box 1 template to move your equation "all the way over to the right" but if you do, you find that with some other browser your equation box is now not displayed where you wanted it, but is either too far right or not far enough. There is no function to get an equation to display all the way to the right border in any browser, that I can find.

Anybody know of a way to do this? SBHarris 01:35, 25 April 2013 (UTC)[reply]

You could use a < div > like this:

That is:
<div align="right">{{equation box 1|indent=|equation=<math>E=mc^2</math>}}</div>
without indenting the line including the div. Is this what you mean? M∧Ŝc2ħεИτlk 05:31, 25 April 2013 (UTC)[reply]

"Indentation"[edit]

A leading colon is not a valid way of indenting anything. It introduces a description list, and using them this way is first of all invalid HTML (definitions must be preceded by at least one term), and second it is an accessibility error (see MOS:INDENTGAP). Hairy Dude (talk) 12:50, 3 March 2019 (UTC)[reply]

Agree. We should use CSS for this kind of things. --Franklin Yu (talk) 18:26, 26 June 2019 (UTC)[reply]
@Franklin Yu: We now do use CSS for this! (Since this edit.) Even if you as the user pass : or :: to the indent parameter it is automatically translated to a CSS margin property; no definition list should be generated. User:GKFXtalk 18:49, 30 June 2019 (UTC)[reply]

Dark mode[edit]

The equation text is in white over a white background in the android app using the dark theme. You can see this visiting Definite matrix in the android app. Miguelsxvi (talk) 10:50, 31 May 2023 (UTC)[reply]