Page MenuHomePhabricator

Skins using BaseTemplate should be able to register via skin options
Closed, ResolvedPublic

Description

As https://gerrit.wikimedia.org/r/c/mediawiki/skins/BlueSky/+/647359 points out, many skins now only require a single PHP file if using a BaseTemplate

Acceptance criteria

  • The Skin class should not need to define $this->stylename . This should be handled in the constructor and/or inside SkinFactory. It can be derived from name
  • It should be possible to set the name of the PHP class using template option. Note in SkinMustache this is the path to a Mustache file, but here it would be the name of the PHP class.

Event Timeline

I have already suggested this somewhere. Indeed there's no need for a whole class/file to just override two properties

Change 650460 had a related patch set uploaded (by Mainframe98; owner: Mainframe98):
[mediawiki/core@master] Skin: allow specifying template for BaseTemplate skins

https://gerrit.wikimedia.org/r/650460

Change 650460 merged by jenkins-bot:
[mediawiki/core@master] Skin: allow specifying template for BaseTemplate skins

https://gerrit.wikimedia.org/r/650460

Change 651312 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Allow specifying styles path in skin manifest

https://gerrit.wikimedia.org/r/651312

Jdlrobson claimed this task.
Jdlrobson updated the task description. (Show Details)

Sweeetttt! we should file some tickets for existing skins that will be simplified by this change.