Page MenuHomePhabricator

When using preview, the edit link and protection status is lost in "Template used in this preview"
Open, Needs TriagePublic5 Estimated Story Points

Description

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:

Screenshot 2022-10-18 at 15-10-37 Editing REVISIONTIMESTAMP test_1 - Test Wikipedia.png (204×440 px, 8 KB)

Event Timeline

Shizhao renamed this task from When using preview, the edit link is lost in "Template used in this preview" to When using preview, the edit link and protection status is lost in "Template used in this preview".Oct 18 2022, 7:24 AM
Shizhao updated the task description. (Show Details)

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?

Change 844318 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] Dynamically update template list for live preview

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

This comment was removed by Shizhao.