=Weekly reports for WikidataPageBanner extension(GSoC 2015)=
Since some patches were contributed in the Community Bonding Period also, a mention here of them:
* Static banner placeholder: https://gerrit.wikimedia.org/r/#/c/208096/
* Adding 'PAGEBANNER' magic word: https://gerrit.wikimedia.org/r/#/c/209432/
* Adding a template for banner: https://gerrit.wikimedia.org/r/#/c/213576/
==Week 1 May 25-June 1:==
* Got T98152 merged
* Started work on adding options to {{PAGEBANNER}} parser function T100486
* Adding the feature to fetch Wikidata banner under review T98044
* Controlling banner image size from client under review T98031
* Work on adding icons to banner started https://gerrit.wikimedia.org/r/#/c/215029/
==Week 2 June 2-June 9:==
* Feature to fetch Wikidata Banner completed https://gerrit.wikimedia.org/r/#/c/213478/
* First step in adding options to {{PAGEBANNER}} - allow named parameters https://gerrit.wikimedia.org/r/#/c/214672/
* Generating srcset attribute for banner to load image of browser dependent size completed https://gerrit.wikimedia.org/r/#/c/212512/
* phpcs warnings clearned in the extension https://gerrit.wikimedia.org/r/#/c/216108
* Work on adding phpunit tests started https://gerrit.wikimedia.org/r/#/c/216735/
==Week 3 June 10-June 17:==
* Completed providing named parameters for {{PAGABANNER}} function https://gerrit.wikimedia.org/r/#/c/214672/
* Work on php unit tests continuing
* A pertinent issue was custom banners were not seen correctly page preview. This was resolved by adding banner styles to every page on allowed namespace https://phabricator.wikimedia.org/T103140#1383356
* Work on a Table of Contents for the banner was started https://gerrit.wikimedia.org/r/#/c/218672/
==Week 4 June 18-June 25:==
* Work on table of contents was completed and a functional horizontal TOC on banners deployed(https://gerrit.wikimedia.org/r/#/c/218672/) : http://pagebanner.wmflabs.org/wiki/Asia
* Some compatibility issues with TOC are being resolved.
* Ability to add caption image on banner added - https://gerrit.wikimedia.org/r/#/c/214895/
* phpunit tests for banner options and banner added - https://gerrit.wikimedia.org/r/#/c/216735/
==Week 5 June26-July2:==
* TOC added above is manipulated client-side using jquery, which is giving Flash Of Unstyled Content. A better approach was suggested to add TOC on server side, which however was not possible with current mechanism of adding banner. Therefore a change of that mechanism is being undertaken in the patch - https://gerrit.wikimedia.org/r/#/c/221459/ which does the following modifications:
*# Adds the banner only just before page display(i.e BeforePageDisplay hook).
*# This is beneficial because that that point we have all the properties for generating a banner, such as a TOC, together.
*# The parser function only adds banner options to ParserOutput object which are then passed to the OutputPage object, using OutputPageParserOutput hook.
*# Since the parser function is now not returning anything, it can be made to return wikitext such as **[[Category:foo]]** which would solve the problem of adding categories to page depending upon banner.
* For icons, it was suggested to use OOUI, and the patch has been suitably modified for the same - https://gerrit.wikimedia.org/r/#/c/215029/
* The function getBannerUrl is making a call to global wfFindFile() and testing it as yet has been a difficulty - https://gerrit.wikimedia.org/r/#/c/220963/
All new additions can be seen at the test wiki http://pagebanner.wmflabs.org/