Page MenuHomePhabricator

Using "Image" generates a "div-span-flip" Lint error
Open, HighPublic

Description

https://www.mediawiki.org/wiki/Extension:Quiz generates Miscellaneous Tidy Replacement Issues with a div-span-flip lint error when Image (<code>{[[Image:]]...|type="{}"}</code>) is included in the quiz text.

For examples, see any of the /Quiz pages on https://en.wikiversity.org/wiki/Special:LintErrors/misc-tidy-replacement-issues.

Event Timeline

Aklapper renamed this task from Extension:Quiz Image Generates div-span-flip Lint Error to Using "Image" generates a "div-span-flip" Lint error.Jan 12 2019, 2:52 PM

Change 483992 had a related patch set uploaded (by Tacsipacsi; owner: Tacsipacsi):
[mediawiki/extensions/Quiz@master] Use <div> for question text instead of <span>

https://gerrit.wikimedia.org/r/483992

Tacsipacsi triaged this task as High priority.

Confirming that this issue is still present as of August 2020.

https://en.wikiversity.org/w/index.php?title=Charges/Interactions/Quiz&action=submit

The relevant line in the code being:

{[[Image:3D Vector.svg|100px|thumb|right]] For standard basis, or unit, vectors ('''i''', '''j''', '''k''') and vector components of '''a''' ('''a'''<sub>x</sub>, '''a'''<sub>y</sub>, '''a'''<sub>z</sub>), what are the right ascension, declination, and value of a?
|type="[]"}
- if the x-axis is the longitude of the Greenwich meridian, and '''a'''<sub>x</sub> equals '''a'''<sub>y</sub>, then RA equals 6<sup>h</sup>
+ if the x-axis is the longitude of the Greenwich meridian, and '''a'''<sub>x</sub> equals '''a'''<sub>y</sub>, then RA equals 3<sup>h</sup>
+ the value of '''a''' is given by <math>a = \sqrt{a^2_x + a^2_y + a^2_z}</math>
- if '''a'''<sub>x</sub> equals '''a'''<sub>y</sub> equals '''a'''<sub>z</sub>, then the declination is -45°
+ if '''a'''<sub>x</sub> equals '''a'''<sub>y</sub> equals '''a'''<sub>z</sub>, then the declination is +45°

I appreciate there was a patch submitted... but the last review on it was in April 2019.