Page MenuHomePhabricator

Page editing difference (Collapse/Expand) between test and test2: One shows [Expand] on the right, one expands by clicking the text
Closed, DeclinedPublic

Description

The code below produces different results on test.wikipedia.org and test2.wikipedia.org. On test.wikipedia.com, collapsible text can only be expanded by selecting the "[Expand]" on the far right, whereas on test2.wikipedia.org, the text is expanded by clicking on "Check engine oil level."

Test2.jpg (296×1 px, 94 KB)

Test.jpg (286×1 px, 93 KB)

==Process==

Process examples to communicate issues and templates to coders and editors. Test.  

====Drop down menu example====

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-EngineOil">

:# Run vehicle to warm oil.   
:# Switch ignition OFF, wait at least 3 minutes to allow oil to flow back into pan.   
:# Remove dipstick and clean before reinserting back into tube.   
:# Remove dipstick again to read oil level. Ensure oil level is between MIN & MAX positions.   
:# Check oil level on instrument panel. Level will be slightly above the mid point of the oil gauge when engine is running hot. See Image
:# Test line
</div>

Further, on mediawiki 1.29.0, another problem exists that I was unable to test on test2.wikipedia.org, as it requires submission approval. On mediawiki 1.29.0, when a textual change is made in the "Edit" field, code is stripped. The following happens:

In the code below, if "Test" is removed, it changes the way collapsible text is viewed. Instead of clicking on the text to expand, a [Collapse]/[Expand] appears, as it did it my test on test.wikipedia.org.

Before:

==Process==

Process examples to communicate issues and templates to coders and editors. Test.  

====Drop down menu example====

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-EngineOil">

:# Run vehicle to warm oil.   
:# Switch ignition OFF, wait at least 3 minutes to allow oil to flow back into pan.   
:# Remove dipstick and clean before reinserting back into tube.   
:# Remove dipstick again to read oil level. Ensure oil level is between MIN & MAX positions.   
:# Check oil level on instrument panel. Level will be slightly above the mid point of the oil gauge when engine is running hot. See Image
:# Test line
</div>

After:

==Process==

Process examples to communicate issues and templates to coders and editors. Test.  

====Drop down menu example====

* <span class="mw-customtoggle-EngineOil" style="color:#36c">Check engine oil level</span>
<div class="mw-collapsible mw-collapsed">

:# Run vehicle to warm oil.   
:# Switch ignition OFF, wait at least 3 minutes to allow oil to flow back into pan.   
:# Remove dipstick and clean before reinserting back into tube.   
:# Remove dipstick again to read oil level. Ensure oil level is between MIN & MAX positions.   
:# Check oil level on instrument panel. Level will be slightly above the mid point of the oil gauge when engine is running hot. See Image
:# Test line
</div>

Thank you in advance for your assistance with determining the source of this. I would be happy to assist if you require additional information.

Event Timeline

Aklapper renamed this task from Page Editing Error (Collapse/Expand) to Page editing difference (Collapse/Expand) between test and test2: One shows [Expand] on the right, one expands by clicking the text.Sep 25 2017, 10:16 PM

Thanks for reporting this.

So I'm not sure if there is an issue, as test has a different configuration than test2? :)

I can't reproduce this problem. I created pages with your code snippet on both wikis:

They both look identical to me (like in your first screenshot).

I cannot reproduce this either anymore. Not sure why.
Closing task as declined as we cannot reproduce anymore. :-/

For the record, this issue still exists in MW 1.27.3 but seems to be fixed in later versions [1.33] (confirmed by testing at https://test.wikipedia.org/w/index.php?title=T176657&action=history). Anyway of backporting the fix?