Acceptance criteria
- Ensure mediawiki.skins.legacy is set in modulestyles in the PARSE API response
- Ensure new modules are added and initialized via wikipage.content hook
Replication steps
- In your preferences @enwiki, have the following set
- Visit an empty page and paste in content :
{{Traffic volume top|name=Mississippi Highway 69|align=right}}
{{Traffic volume row|Northwest of Weaver Road|2,100}}
{{Traffic volume bottom}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{-}}
{{Traffic volume top|name=Mississippi Highway 69|align=left}}
{{Traffic volume row|Northwest of Weaver Road|2,100}}
{{Traffic volume bottom}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{:User:Ponor/sandbox/tabularasa/floatedtable|align=right}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{:User:Ponor/sandbox/tabularasa/floatedtable|align=left}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.- Click "show preview"
- In Realtime Preview, the table is aligned left, instead of right
- Press [Show Preview]:
The resulting table has the right classes, but the browser never gets their definitions
- In your preferences, have the following set
- Observe that the resulting table is right-aligned in the realtime preview panel
- Have all options unset
- In Realtime Preview, the table is left-aligned
- Press [Show Preview]
- The table is right-aligned again, in both previews.
Similar issues can be seen while editing https://en.wikipedia.org/w/index.php?title=Mississippi_Highway_69&action=edit§ion=1
See also T426452
The "Show preview without reloading the page" option is something I would not want to lose: when the page is reloaded, your edit history is gone and nochanges can be undone.
I set up a page on test wiki, thinking I'd be able to reproduce this behavior. But there, everything seemed to be alright.







