Page MenuHomePhabricator

Introduce alternate implementation of HtmlOutputRendererHelper for system messages
Closed, ResolvedPublic

Description

HtmlOutputRendererHelper is a helper object for handling rendering of pages that already exist and are stored in the database (ExistingPageRecord) but there is a special case for pages that don't exist but have content (like system message pages in the MediaWiki: namespace) but do not exist in the DB.

For these kind of pages, HtmlOutputRendererHelper does not know how to treat them so we need a class that will handle how to treat such pages.

Maybe call the class I18nHtmlOutputRendererHelper so we know it's for translation messages or SystemMsgHtmlOutputRenderHelper

This patch: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/856549 currently handles how the HTML for this kinds of patches will be rendered but having a cleaner interface for this is nicer.

Event Timeline

Change 859526 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):

[mediawiki/core@master] Introduce I18nHtmlOutputRendererHelper for system messages

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

daniel triaged this task as Medium priority.Nov 22 2022, 6:39 PM

Change 859526 merged by jenkins-bot:

[mediawiki/core@master] Introduce HtmlMessageOutputHelper for system messages

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

daniel claimed this task.