Page MenuHomePhabricator

Page creation should have drop-down to specify content model
Open, LowPublicFeature

Description

Feature summary (what you would like to be able to do and where):

Currently, on page creation, the content model of a page is seemingly based on a combination of namespace and pagename. In summary:

  • By default, is wikitext.
  • Anything in Module: namespace is Scribunto
  • Anything in user: or MediaWiki: namespaces and ending in .css is CSS
  • Anything in user: or MediaWiki: namespaces and ending in .js is JavaScript
  • Other conditions that I've missed. (The above isn't quite right, but it's the basic idea).

To create a non-wikitext page, e.g. a plain text page, a user needs to do a two-step tango, and first create the page, and then go to Special:ChangeContentModel (either via Special:PageInfo, or by typing into the box).

Propose that page creation should have a drop-down that lists content model(s) that the user is permitted to make. The default would be set as above.

Benefits:

This would reduce a 2-step process to a 1-step process.

It would allow wikis with locally-specified non-standard content models to specify them on page creation.

Disadvantages:

Would add extra clutter to the page creation page, and MediaWiki is overcluttered already.

Event Timeline

Would add extra clutter to the page creation page.

I think most wikis do not need to change content models often, so availability can be configured as option.

Pppery subscribed.

Yeah, I agree with Wargo - this is a rare enough use case on most wikis that the current situation of having to manually go do Special:ChangeContentModel is fine.

(And you can create a page with a non-standard content model using that special page as is)

I thought about something like this a couple weeks ago. I'm sympathetic to the desire, but also generally agree that we shouldn't have such a dropdown.

Maybe it would be reasonable to add something to the set of URL parameters and then people who need it as a common use case can access it via script for the real power users or just a simple ?contentmodel=wikitext appended to a URL.

Or perhaps a [[Special:NewPage]] with a dropdown would also be fine? This would also help us get out of having to tell new users "make a red link and then click the red link" type of discussion that often occurs.