Page MenuHomePhabricator

make list of valid namespaces for #autoedit configurable
Closed, ResolvedPublic

Description

The use of parser function #autoedit is currently limited to the list of content namespaces. The scope wherin the parser function is used however should be made independend of content namespaces and furthermode adaptable via a config setting.

I propose a new config variable $wgPageFormsAutoeditNamespaces that defaults to $wgContentNamespaces and can be set in LocalSettings.php to a suitable scope.

Event Timeline

To specify: the target of #autoedit currently must be inside the content namespaces. The new config setting will adapt this scope.

Change 466866 had a related patch set uploaded (by Oetterer; owner: Oetterer):
[mediawiki/extensions/PageForms@master] make list of valid namespaces for #autoedit targets configurable

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

@Yaron_Koren I uploaded a patch for this suggested new feature. I would be happy, if you could have a look at it.

Change 466866 had a related patch set uploaded (by Oetterer; owner: Oetterer):
[mediawiki/extensions/PageForms@master] make list of valid namespaces for #autoedit targets configurable

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

Yes, there's still a PHP validation error - can you see it?

By the way, one other minor note: the name of the extension is "Page Forms", not "PageForms".

oh yes. quite the breaking error ;)

fixed.

Change 466866 merged by jenkins-bot:
[mediawiki/extensions/PageForms@master] make list of valid namespaces for #autoedit targets configurable

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

Great, we did it! And it only took six months. :) Thanks for this patch.

yeah! next time something less complicated, then. ;)