Last modified on 23 December 2005, at 03:33

Help:Inputbox

This is a copy of the master help page at m:Help:Inputbox. Do not edit this page. Edits will be lost in the next update from the master page. Either edit the master help page for all projects at Meta, or edit the project-specific text at Template:Ph:Inputbox. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.


Editing overview

Starting a new page

  1. Page name

Referencing

  1. Links
  2. Piped links
  3. Interwiki linking
  4. Variables
  5. URLs
  6. Anchors

Formatting

  1. Formulas
  2. Lists
  3. Tables
  4. HTML in wikitext
  5. Image & File uploads
  6. Image page

Organizing

  1. Sections
  2. Templates
  3. Categories
  4. Redirects
  5. Namespaces
  6. Renaming (moving) a page

Fixing mistakes and vandalism

  1. Reverting edits
  2. Testing

Saving effort

  1. Editing shortcuts
  2. Editing toolbar
  3. Magic words

Communicating

  1. Edit summary
  2. Talk page
  3. Edit conflict
  4. Minor edit

Special characters

  1. Turkish characters
  2. Romanian characters

Extensions

  1. WikiHiero syntax — warning: lots of images! (for Egyptian hieroglyphs)
  2. EasyTimeline syntax

Frequently Asked Questions


The inputbox extension is a MediaWiki extension by Erik Möller to add predefined HTML forms to wiki pages. It was originally created for the purpose of adding a Create an article box to Wikinews. It requires MediaWiki 1.5 and an extensions script (see Installation below).

General syntaxEdit

Inputboxes are constructed like this:

 <inputbox>
 type=box type
 parameter1=value
 parameter2=value
 </inputbox>

The type parameter is mandatory. All other parameters are optional.

Box typesEdit

Type Description Example
type=search

Generates a search box with a width of 50 characters. The button labels can be specified, see below; the defaults are MediaWiki:Tryexact and MediaWiki:Searchfulltext. The text field specifies the search criteria.

type=create

Allows creating a new page. Note especially the preload= and editintro= options below. The button label can be specified, see below; the default is MediaWiki:Createarticle. The text field specifies which page is to be edited.


type=comment

Add one or more sections to an existing page, or create a page, with an edit summary that is automatically the same as the (first) new section header. The button label can be specified, see below; the default is MediaWiki:Postcomment; note that this message is also used in the sidebar of the old "Standard" skin. The text field specifies which page is to be edited.


ParametersEdit

Parameter
Scope
Description Example

bgcolor=
All types

Sets the table background color (HTML color values). Do not use quotes.

<inputbox>
type=search
bgcolor=#eeeeff
</inputbox>

produces:

width=
All types

Sets the width of the inputbox in characters.

<inputbox>
type=create
width=6
</inputbox>

produces:


default=
All types

Default text to put in the inputbox.

<inputbox>
type=comment
default=User talk:Eloquence
</inputbox>

produces:


preload=

comment, create

The text of the page under this title will be loaded into the blank editbox when a new page is created. Enter the title of a non-existent page in the example inputbox, and click "Create" to test this effect.

<inputbox>
type=create
preload=Template:Standard content for new page
</inputbox>

produces:


editintro=
comment, create

The text of the page under this title will be added, as instructions, before the submission form for new pages or comments. Enter the title of a non-existent page in the example inputbox, and click "Create" to test this effect.

<inputbox>
type=create
editintro=Template:Instructions
</inputbox>

produces:


buttonlabel=
All types

This label will be used for the main button of the form.

<inputbox>
type=comment
buttonlabel=Add new rumor
</inputbox>

produces:


searchbuttonlabel=
search

This label will be used for the "Search full text" button of the search form.

<inputbox>
type=search
searchbuttonlabel=Dig deeper
</inputbox>

produces:

Applying create to an existing page simply gives the edit page. In that case editintro and preload are ignored.

CaveatsEdit

InstallationEdit

  1. Download and save the file inputbox.php to the extensions folder of your MediaWiki installation.
  2. Open and edit the LocalSettings.php file by adding the following line near the bottom:
require_once("extensions/inputbox.php");

NOTE: Make sure that it is still above the closing php tag so that it looks like this:

require_once("extensions/inputbox.php");
?>

ExamplesEdit

Wikiquote-specific contentEdit

Links to other help pagesEdit

Help contents - all pages in the Help namespace: Meta b: c: n: w: q: wikisource wiktionary


Reading: Overview | Go | Search | URL | Namespace | Page name | Section | Link | Backlinks | Piped link | Interwiki link | Redirect | Variable | Category
Tracking changes: Recent | (enhanced) | Related | Watching pages | Page history | Diff | User contributions | Edit summary | Minor edit
Logging in and preferences: Logging in | Preferences | User style
Editing: Overview | New page | Images/files | Image description page | Special characters | Formula | Table | EasyTimeline | Template intro | Renaming (moving) a page | Automatic conversion of wikitext | Talk page | Testing | rlc
Projects: Meta (master page) | Wikibooks | Wikicommons | Wikinews | Wikipedia | Wikiquote | Wikisource | Wiktionary
For other languages see Meta.

[[Category:Wikiquote help]