Displaying the results in different formats

Nikhil Kumar
2 min readJun 15, 2018

--

This week was really interesting. My task was to show the results of Special:Drilldown page in different formats(map, timeline and gallery).

I had to show the results in map format if for a table, there exist a field which contains data of type coordinates. In doing that I also added $wgCargoDefaultMapService settings to cargo for choosing the default map format amongst “GoogleMapsService” or “OpenLayers”. After this subtask the results were like:

Map Format

After this I added the feature to show the results in timeline Format if for a table, there exists a field of data type Date or DateTime. After this subtask, results were something like:

Timeline Format

The last format to be added was gallery format, which shows all the files associated with the results.

Gallery format

Then finally I added a tab navigation if there are more than one results format

Tabs

Patches for all the above mentioned tasks are:
1. https://gerrit.wikimedia.org/r/436982
2. https://gerrit.wikimedia.org/r/435786
3. https://gerrit.wikimedia.org/r/438026

--

--