Page MenuHomePhabricator

Allow 'hiding' the inputbox
Closed, ResolvedPublic

Description

Author: webmaster

Description:
There have been a couple of instances when I have come across the need for a button that automates page creation functionality, but in such a strict, guided manner that the input box itself is not needed, just the button.

For instance:

<inputbox>
type=create
default=User:{{PAGENAME}}
buttonlabel=Create your user page!
editintro=MediaWiki:CreateUserPageMessage
preload=Template:UserPageTemplate
inputboxhidden=true <- This is what I mean, I would suggest something similar
</inputbox>

This would create a button which I could put on a new user's talk page. All the new user would have to do is hit the button and be taken to their userpage, which would be preloaded with a userpage template and with a nice friendly message at the top explaining how/why to create a user page.

Example: http://www.bartendersdatabase.com/index.php/User_talk:Kokomo
(Currently, it leaves the inputbox so the new user could accidently modify its contents and create a userpage for some other, possibly non-existant user)

Talk about making it EASY for newbies... :)

I foresee great and wide application of such functionality.


Version: unspecified
Severity: enhancement
URL: http://www.bartendersdatabase.com/index.php/User_talk:Kokomo

Details

Reference
bz10152

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:50 PM
bzimport set Reference to bz10152.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Write another extension, then.

ayg wrote:

It seems like it would be straightforward and reasonable to allow a "hidden" parameter for each field in Inputbox. Writing another extension seems pointless.

webmaster wrote:

I am already working on this for my own wiki... and yes, it is pretty simple and straight-forward.

If I come up with anything decent enough to include in Wikipedia, I will submit a test-patch.

Reopening, as I will be working on it, as per Rob's suggestion that I do it, myself.

webmaster wrote:

Brion added it in r15558, but no one documented it and I didn't find that bug when I searched! ;)

"hidden = yes"

works on en wikipedia as of the time of this writing.

Closing as resolved, duplicate of Bug 4971.
Cheers!

*** This bug has been marked as a duplicate of bug 4971 ***