Extension talk:InputBox

From MediaWiki.org
Jump to: navigation, search

For the page history, see also here. / previous talk on this page

Start a new discussion

Contents

Thread titleRepliesLast modified
Using to add text (such as user for participant list)423:02, 5 February 2012

Using to add text (such as user for participant list)

Anyone had any luck using the Extension to create a "sign-up" style setup where someone clicks the button and sees the edit screen with the sig tildes preloaded? The closest I've seen is using it to create "profiles" with the username appearing as a header.

--Varnent 04:53, 23 December 2011 (UTC)22:47, 21 January 2012

It quite easy to do. New entries are added at the bottom. A quick example:

<inputbox>
type=commenttitle
editintro=Page_title/Intro <!-- Some instructions for users -->
preload=Page_title/Preload
hidden=yes
page=Page_title <!-- Where to post -->
buttonlabel=Button_label
default=
</inputbox>

Page_title/Preload

{{<includeonly>subst:</includeonly>Template_name
|param1=
|param2=
...
}}

Template:Template_name

text1 {{{param1}}}
text2 {{{param2}}}
--~~~~
...
Mikołka23:11, 21 January 2012

Great! I set that up here: Project:WikiProject Extensions/Participants

Only problem now is that you have to click save twice since we don't want a subject/header. Any way to disable that in the settings?

Varnent22:27, 5 February 2012

Each registered user can set it up in the Prefrences/Editing, Advanced options: Prompt me when entering a blank edit summary. I think it should be now turned off by default.

Mikołka22:52, 5 February 2012

That makes sense.  :) I'll tweak the messages to reflect that.

Varnent23:02, 5 February 2012
 
 
 
 
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox