For some use cases that require wikitext editing (ours is T235753), it’s necessary to be able to link to some URL that will always load some wikitext editor, regardless of user preferences or wiki setup.
Options:
- action=edit: May load VisualEditor.
- action=submit: Always loads an old wikitext editor (WikiEditor aka 2010 Wikitext Editor, or default MediaWiki <textarea> aka 2003 Wikitext Editor), even if a new wikitext editor (2017 Wikitext Editor) is available.
- veaction=editsource: Loads 2017 Wikitext Editor if available, loads no editor at all otherwise.
- action=edit&veaction=editsource: Currently identical to action=edit, i. e. VisualEditor / 2017 Wikitext Editor ignores the veaction.
Related tasks:
- T121242: Provide a GET URL option on action=edit to force loading the wikitext editor, not the visual editor, regardless of preference – sounds similar, but I think that task is more specifically for getting an old wikitext editor, not any wikitext editor.
- T166597: Consolidate edit URLs – general cleanup