Page MenuHomePhabricator

Banners do not show up in mobile editor preview or new beta feature "wikitext editor"
Open, Stalled, HighPublic

Description

This impacts several projects including: Wikivoyages, cawiki, euwiki

Not sure why... but it would be useful for editing there :)

To reproduce:
Install WikidataPageBanner and MobileFrontend extension
Create a page "Test page" with text "{{PAGEBANNER:Agra banner Taj Mahal.jpg|originx=right}}" in the Vector skin.
Click preview and you'll see the banner in the preview.

Mobile site issue

Navigate to the mobile site using the 'Mobile view' link at the bottom of the desktop page.
Click the edit icon in the mobile mode for the same page.
Click next in the overlay
In the preview the banner is not present.

Wikitext editor issue

Enable the new wikitext editor feature
Click "Erakutsi aurreikuspena"
In the preview the banner is not present

Expected:
The banner should be rendering in the mobile editor and wikitext editor preview.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Backlog on the Wikidata-Page-Banner board.
Jdlrobson subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson edited projects, added MobileFrontend, good first task; removed Wikidata.
Jdlrobson set Security to None.

Hey, I'm new to Mediawiki and was hoping to try solving this task as it is marked "Easy"

@Jdlrobson Could you give more information on this ? What is the "mobile editor preview" ?
I'm not very familiar with the terminology. A little more detail on steps to reproduce this would help.

Hi @TasneemLo thanks for the input! I've updated the description. Let me know if anything is still not clear! :)

Given that mobile editor uses api to fetch the wikitext and preview it, WikidataPageBanner would first need to handle 'action=parse' and return the banner HTML. See T107941

Jdlrobson changed the task status from Open to Stalled.Oct 1 2015, 8:58 PM

We'll need to add an API endpoint first!

Jdlrobson renamed this task from Banners do not show up in mobile editor preview to Banners do not show up in mobile editor preview or new beta feature "wikitext editor".Jul 27 2017, 7:28 PM
Jdlrobson added a project: VisualEditor.
Jdlrobson updated the task description. (Show Details)

Rather than page properties, which are stored and indexed in a separate database table, probably ParserOutput::setExtensionData() would be sufficient for this use case.