Page MenuHomePhabricator

Allow to display something above articles with JSON, JS and CSS content-models
Open, Needs TriagePublic

Description

Preamble

I just find out that actually there is no way to put a message above an article that has a JSON content model (example JSON page).

Actual situation

They already exist some ways to put content above a page, like:

Having said that, it seems that no system message is displayed above a JSON page and as far as I know it does not exist an MediaWiki:Article-nonwiki-header-page-name or whatever.

Proposal

Like the behaviour of every Scribunto module, for articles with the JSON content model we could automatically try to display a subpage and transclude it on the top.

So we can create a new system message called MediaWiki:Article-nonwiki-header-page-name or whatsoever to keep the value of that subpage like $1/doc.

I don't think that anyone has never created a /doc subpage under a JSON article so I think it will not create any strange impact.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 6 2018, 1:51 PM
valerio.bozzolan renamed this task from Add a system message to display something above pages with content-model different from wikitext to Allow to display something above articles with JSON content-model.Oct 6 2018, 1:52 PM
Nirmos added a subscriber: Nirmos.Oct 7 2018, 7:25 AM
valerio.bozzolan renamed this task from Allow to display something above articles with JSON content-model to Allow to display something above articles with JSON, JS and CSS content-models.Oct 8 2018, 10:01 PM