Page MenuHomePhabricator

Sandboxlink-editintro-pagename does not do what the documentation says it does
Closed, InvalidPublic

Description

on hewiki, [[:he:Mediawiki:Sandboxlink-editintro-pagename]] contains the name of an existing page.

according to the documentation, i expected the content of this page to show above the edit window. this does not happen.

peace.

Event Timeline

Kipod raised the priority of this task from to Needs Triage.
Kipod updated the task description. (Show Details)
Kipod subscribed.
Kipod set Security to None.

The edit notice only appears when you go to your sandbox by clicking the link in the personal menu (which appends 'editintro' param into the URL). The notice doesn't appear everytime you go to your sandbox (eg. typing Special:Mypage/sandbox directly) That's how it worked even in the gadget, IIRC.

The edit notice only appears when you go to your sandbox by clicking the link in the personal menu (which appends 'editintro' param into the URL). The notice doesn't appear everytime you go to your sandbox (eg. typing Special:Mypage/sandbox directly) That's how it worked even in the gadget, IIRC.

no, it doesn't. with the gadget, clicking the link have put you in "action=edit" with the appropriate "editintro=" parameter,
with the extension, clicking the menu item puts you in "view" mode, and the "edit" and "edit source" do not have the appropriate editintro.

i think this is actually better to link to "view", but we need to modify the "edit" and "edit source" links with the appropriate "editintro"

currently, editintro only appears when *creating* the page, we expect it to appear when editing, even if the page already exists (since every user's sandbox name is different, there is no sane way to do it outside of the extension, short of reviving the gadget...).

peace.

Hmm… wouldn't this use case be better served by using an editnotice? You could edit "MediaWiki:Editnotice-2" to include something like {{#ifeq: {{SUBPAGENAME}} | sandbox | Whatever editnotice stuff goes here. }}

(By the way, the documentation does say "When the sandbox page doesn't exist, the page title to use for the 'editintro' and 'preload' parameters of the link.", emphasis mine.)

Hmm… wouldn't this use case be better served by using an editnotice? You could edit "MediaWiki:Editnotice-2" to include something like {{#ifeq: {{SUBPAGENAME}} | sandbox | Whatever editnotice stuff goes here. }}

Thanks. this was useful.

(you are correct regarding the documentation. however, the name of this variable, "Sandboxlink-editintro-pagename" led me to think of it as "editintro", when in fact it's not, in practice it's "creation intro").

peace.

matmarex claimed this task.

:)

I see you already implemented it on the wiki, yay!