Hygiene: Move tagButton code into a template

Improves readability of WikiGrokDialogB.

Change-Id: I19e4c4a5d298e8784782eb88a84b40699eb991d3
Merge "Hygiene: Move tagButton code into a template"