cscott added a comment.
T105520 <https://phabricator.wikimedia.org/T105520> (with patch) would provide the ability to customize the class and id of the TOC, which is one part of what WikidataPageBanner is doing. One solution here would be to explictly pass in the TOC in wikitext as `toc=__TOC__` which will insert a `<meta>` tag at the appropriate spot in the page banner, and also serve to suppress the "other" TOC. When `ParserOutput::getText()` generates the TOC on the fly (using the customized class and title from T105520 <https://phabricator.wikimedia.org/T105520>) it will then "magically" be in the right spot in the page banner. I need to verify how the page banner actually ends up on the page, though -- there's some code which is messing around with page properties (which shouldn't really be used, as they end up in the database index!) and if the page banner isn't being inserted in the article body HTML (ie, the stuff returned by ParserOutput::getText()) then the code to dynamically generate the TOC in ::getText() isn't going to find the TOC marker it's looking for. TASK DETAIL https://phabricator.wikimedia.org/T328087 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: cscott Cc: Aklapper, ssastry, cscott, Wikidata-bugs, Lydia_Pintscher
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org