Allow creation of TemplateStyles in the Module namespace
Open, Needs TriagePublic

Description

The use case in this case is the CS1 set of templates. There are at this point some dozen or two of the core templates and then several hundred derivatives calling those main templates (usually).

Rather than store the TemplateStyles on some random template page, it would be useful to store the TemplateStyles in a subpage of the core module, which is presently Module:Citation/CS1. What Trappist the monk has done (not likely knowing better but clearly getting to the Answer That Works) was this history of that style page. That workflow doesn't seem ideal.

Izno created this task.Aug 1 2018, 4:09 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 1 2018, 4:09 PM
Anomie added a subscriber: Anomie.

Using Special:ChangeContentModel, as seems to be what was done at the linked page, isn't a bad workflow.

OTOH, there's no real reason not to add NS_MODULE to $wgTemplateStylesNamespaces either.

Tgr added a subscriber: Tgr.Aug 20 2018, 11:56 AM

OTOH, there's no real reason not to add NS_MODULE to $wgTemplateStylesNamespaces either.

For enwiki, or in general?

Izno added a comment.Aug 20 2018, 12:26 PM

OTOH, there's no real reason not to add NS_MODULE to $wgTemplateStylesNamespaces either.

For enwiki, or in general?

The task was meant to be 'in-general', for all the same reasons we made TemplateStyles.

Izno added a comment.Aug 20 2018, 12:27 PM

Using Special:ChangeContentModel, as seems to be what was done at the linked page, isn't a bad workflow.

It is if you are not an admin.

OTOH, there's no real reason not to add NS_MODULE to $wgTemplateStylesNamespaces either.

For enwiki, or in general?

In general.

Using Special:ChangeContentModel, as seems to be what was done at the linked page, isn't a bad workflow.

It is if you are not an admin.

Hmm, I didn't notice that content model changes were "temporarily" restricted to admins on Wikimedia wikis. See T85847: Grant editcontentmodel right to all logged in users.

Izno added a comment.Aug 20 2018, 1:19 PM

Hmm, I didn't notice that content model changes were "temporarily" restricted to admins on Wikimedia wikis. See T85847: Grant editcontentmodel right to all logged in users.

😃

MGChecker added a subscriber: MGChecker.
Agabi10 added a subscriber: Agabi10.Sep 1 2018, 2:21 AM
Erutuon added a subscriber: Erutuon.Sep 6 2018, 4:29 AM

Change 467123 had a related patch set uploaded (by MGChecker; owner: MGChecker):
[operations/mediawiki-config@master] Allow creation of TemplateStyles in Module namspace

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

Change 467123 abandoned by MGChecker:
Allow creation of TemplateStyles in Module namspace

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

Change 468316 had a related patch set uploaded (by MGChecker; owner: MGChecker):
[mediawiki/extensions/TemplateStyles@master] Allow extensions to register additional namespaces in extension.json

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

Change 468317 had a related patch set uploaded (by MGChecker; owner: MGChecker):
[mediawiki/extensions/Scribunto@master] Set "TemplateSandboxEditNamespaces" in extension.json

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