Page MenuHomePhabricator

Add number of image results to tab
Closed, ResolvedPublic


The View it! tab on articles should indicate the number of available depicts images. This is particular useful for seeing if no images are available, or if there are more images available than shown in the article.

Event Timeline

SuperHamster created this task.
SuperHamster moved this task from Backlog to In Progress on the View-it! board.
SuperHamster moved this task from In Progress to Done on the View-it! board.

The on-wiki user script makes an API call to fetch the number of hits without returning any results, limiting cost and payload size. The number of results are shown in parentheses in the tab; if there are over 99, the tab will display (99+).

Example shown with 99+ results:

Tab Number Example - Wikipedia.png (284×534 px, 30 KB)

Example shown with 14 results:

Tab Number Example - WikiConference.png (294×888 px, 41 KB)