Anomie added a comment.

A straight forward approach to this would be passing RevisionSlots (including inherited slots, after PST) to ContentHandler::getParserOutput. The relevant code is in WikiPage::prepareContentForEdit (resp. PageUpdater::prepareContentForEdit).

Note that there's plenty of other code that calls Content::getParserOutput().

Chances are the better method for doing it is to go via Parser::fetchCurrentRevisionOfTitle(), or directly through ParserOptions::getCurrentRevisionCallback() if a Parser isn't available.


TASK DETAIL
https://phabricator.wikimedia.org/T187935

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Anomie
Cc: Anomie, Aklapper, -jem-, Lokal_Profil, Smalyshev, TomT0m, Liuxinyu970226, daniel, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, LawExplorer, Susannaanas, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to