Page MenuHomePhabricator

Use namespaces= parameter for type=create as well in InputBox
Open, Needs TriagePublicFeature

Assigned To
None
Authored By
Minilexikon
Dec 22 2024, 8:43 PM
Referenced Files
F58043891: grafik.png
Dec 22 2024, 8:48 PM
F58043869: grafik.png
Dec 22 2024, 8:43 PM

Description

Feature summary (what you would like to be able to do and where):
This would enable us to restrict the namespaces in which pages could be created

Additional considerations

  • The syntax to define multiple namespaces as comma-separated list could be improved to the array syntax used by preloadparams[]=
  • Both local and English namespace names as well as numbers (T126882) could be supported
  • We might even provide a dropdown to select the namespace from the list of allowed namespaces (if provided), similar to the search page

grafik.png (132×618 px, 7 KB)

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

  • Validation (T382682) when using a namespace that is not in the list
  • Hard-code a single namespace= to be combined with prefix= if provided

grafik.png (125×642 px, 10 KB)

  • This could even trigger an error message that the user is not allowed to provide any namespace prefix in the page title since it will already be provides and cannot be changed

Benefits (why should this be implemented?):

  • Some wikis don't want certain users to create pages in certain namespaces
  • Usually, when providing an InputBox for page creation, the intention is to create it in a certain specific namespace

Event Timeline

Minilexikon renamed this task from Use namespaces= parameter for type=create as well to Use namespaces= parameter for type=create as well in InputBox.Dec 22 2024, 8:48 PM
Minilexikon updated the task description. (Show Details)