{"push_id":727795235,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"95ee5aa6647a706f2708f8fcb8f3264442ab627e","before":"95469044b9b13068dd864edfd89ae07cad40c88b","commits":[{"sha":"95ee5aa6647a706f2708f8fcb8f3264442ab627e","author":{"email":"1b9c38f138a545fbc70a9abe49f3802a602f3bbd@gmail.com","name":"Sumit Asthana"},"message":"WikidataPageBanner hook changes and serverside toc\n\nRemove addDefaultBanner(ArticleViewHeader hook) and add OutputPageParserOutput\nhook. The banner is now generated only at the last stage, i.e. in\nBeforePageDisplay hook. This is being done so that all properties required for\nbanner are available before generating it, such as a TOC.  The custom banner is\nhandled by setting banner parameters in the parser function, which are then\npropagated to addBanner(BeforePageDisplay hook), where banner is generated. The\nhook checks if banners parameters have been set and generates banner from them,\nelse adds a default banner. The banner is added using prependHtml() which adds\n  html content at the beginning of main content, i.e. div#content. prependHtml()\n  is a replcement of addHTML() earlier used in ArticleViewHeader as it prepends\n  banner html just before main body of page, where it should occur.\nAdditional advantage of this is that properties such as [[Category:foo]] can be\npassed in parser function as return which will be parsed and added to page as\nbanner property on that page.  The only disadvantage of this approach, is that\nparser function will not determine banner position.\nRename 'loadModules' to 'addBanner' and fix its documentation.\nPhpunit tests modified as per new strucutre.\nMove toc to server side as a banner parameter.\nSplit toc module in style and script modules and style module at top and script\nat bottom.\nHide banner toc in Skin Minerva.\n\nBug: T103569\nChange-Id: Iff1ac56fdb3f691f0cabe31e4e34aa78e5ac48d8","distinct":true,"url":"https://api.github.com/repos/wikimedia/mediawiki-extensions-WikidataPageBanner/commits/95ee5aa6647a706f2708f8fcb8f3264442ab627e"}]}