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 or $1/header.

I don't think that anyone has never created a /doc or /header subpage under a JSON article so I think it will not create any strange impact. Anyway, thanks to the system message, it could be personalized per-wiki to overcome every need.

Event Timeline

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
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

Is this still desired? Also, I would suggest $1/header, since this wouldn't be documentation per-se

Is this still desired? Also, I would suggest $1/header, since this wouldn't be documentation per-se

This sounds better!