Page MenuHomePhabricator

Automatic ("sticky") boilerplate message for sandbox
Closed, ResolvedPublic

Description

Author: ryancb06

Description:
Would like to see a Mediawiki:Sandbox automaticly included in the
Project:Sandbox as so you will not have to worry about the boilerplate being
deleted so often.


Version: unspecified
Severity: enhancement

Details

Reference
bz3906

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 8:54 PM
bzimport set Reference to bz3906.

rowan.collins wrote:

Hm... this kind of thing has been discussed before (at bug 1046) and it was
decided that it wasn't really worth building special functionality in just for a
sandbox. Even a "sticky template" of the kind you're suggesting would require
some kind of special status for a project's sandbox [or sandboxes?], which is
currently (as far as the software) just any old page. This would probably
require an additional setting somewhere to define where the sandbox resides (to
be adjustable per language and per wiki). And of course, you'd still have to
clear out the content *below* the boilerplate every now and then, manually or
bot-wise...

That said, I'm not dead against this idea, so I won't close it *immediately*, in
case anyone cares to add further thoughts.

PS: For future reference, please try and make bug summaries a full summary of
the bug/feature request, not just a vague page title.

robchur wrote:

No harm in having an extension for it...*cough*

Created attachment 4876
SandboxMessage.php - Implements a mediawiki message on the project sandbox

This extension implements adding a MediaWiki message on top of the Project's Sandbox. Introduces two globals:

$wgSandboxNamespace - This specifies which namespace the sandbox is in. Defaults to NS_PROJECT.

$wgSandboxName - The name of the Sandbox. Defaults to 'Sandbox.'

The message (Mediawiki:$wgSandboxName) is applied before parse, making it a part of the content.

attachment SandboxMessage.php ignored as obsolete

Created attachment 4877
Oops, typo

Attached: