When using Realtime Preview and Live preview, the templates listed at "Template used in this preview" at the bottom of the page lose the edit link and protection status on the right
See screenshot:
Description
Description
Details
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/core | master | +159 -39 | Dynamically update template list for live preview |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T41272 Bugs in "Live preview" feature (tracking) | |||
Open | Samwilson | T321032 When using preview, the edit link and protection status is lost in "Template used in this preview" |
Event Timeline
Comment Actions
One issue with this is that the existing edit link says 'edit' or 'show source' as appropriate given the current user's rights. To do this in live preview I think will require a separate API call to find out if the templates are editable. That's not too bad is it?
Comment Actions
Change 844318 had a related patch set uploaded (by Samwilson; author: Samwilson):
[mediawiki/core@master] Dynamically update template list for live preview
Comment Actions
Test wiki created on Patch demo by Shizhao using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/7a50bbe023/w
This comment was removed by Shizhao.
Comment Actions
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/844318/comments/b1a0b3ec_9bbe2069
template list always appears