Page MenuHomePhabricator

Category listing pages are not populated properly in Parsoid
Closed, DeclinedPublic

Event Timeline

ssastry created this task.Nov 21 2016, 5:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 21 2016, 5:39 PM
ssastry triaged this task as Normal priority.Nov 21 2016, 5:40 PM
ssastry updated the task description. (Show Details)
GWicke added a subscriber: GWicke.EditedDec 22 2016, 8:33 PM

To expand on T148118#2716884: Category listings are a widget rendered by the skin, and are not part of the actual page contents. The information is available through the action API, and can be rendered by the skin / client in a device / context appropriate manner. Some clients might go with simple lists, while others might prefer a category cloud.

Example query: https://en.wikipedia.org/w/api.php?action=query&prop=categories&titles=Albert%20Einstein

If the existing category tree render is preferred, then the null skin idea proposed in T114596 could potentially help to expose the default skin rendering. A small complication for category pages might be that they normally combine page content (category description) with a skin-provided widget (category listing). Ideally, the null skin would only expose the skin portion, and leave the content portion to the client.

ssastry closed this task as Declined.Dec 22 2016, 9:01 PM

@GWicke's argument makes sense to me.

Nemo_bis added a comment.EditedDec 23 2016, 7:45 AM

I'm not sure what's your definition of "skin-provided widget", but categories are an integral part of page content, including on category pages themselves, and should be included just any other content even if generated dynamically.

Anyway, if Parsoid doesn't want to do this then the problem arises of an API to get the entire content of a (category) page, cf. T153980#2897321