Page MenuHomePhabricator

Exploratory: Add support for templates
Open, Needs TriagePublicFeature

Description

Problem

Currently, the WhoColor API does not tokenise templates (anything inside {{ }}).

Therefore, we do not highlight or show revision information for things like tables, infoboxes and citations.

Solution

It may be worth investigating:

  1. Do we want to support templates?
  2. How easy would it be?

I think it would be possible for the WhoColor API to return revision information for templates in the same way it does for links (although not at the per-word level granularity, for the same reason as T231990).

We could set this to false, and see what happens. However, I cannot say what the side-effects might be.

Event Timeline

My preliminary thoughts are that it would be very useful to support templates, if possible. I'm not yet sure if this would need to be a spike (to determine if this is possible & how it could be done) or if the work is more straight-forward. We'll discuss this as a team.

Update: We have discussed this work as a team. We cannot display relevant contributor data for templates when WWT is enabled, since we don't get template data from the WhoColor API. For this reason, we'll want users to clearly understand that, while template content remains viewable in WWT, they cannot apply WWT functionality (e.g. hover & click for contributor data) to templates.

This will require some design planning to recommend the best course of action, which will be done in the following ticket: T232776.

Update: The design work is complete, and a ticket has been written to handle the template behavior: T235130

ifried renamed this task from Add support for templates to Exploratory: Add support for templates.Oct 15 2019, 8:44 PM
MusikAnimal subscribed.

Not actually a WikiWho problem. WhoColor API returns the data for templates, it's just a matter of figuring out how to make this work UI-wise.