Difference between revisions of "Reference:InputBox"

With InputBox you can integrate HTML forms into wiki pages.  


What kind of InputBoxes can be created?[edit | edit source]

Typ Ergebnis Beschreibung
type=search

Creates a search box which has a default width of 50 characters. Information added in the text box is searched for.
type=search2
 

For type=search2 the default location for the search button is to the right. Currently, it does not seem to be possible to add other parameters to this type of input box. This search box searches the entire wiki that it is placed on.

type=create

Creates a new page. Information added in the text box is the name of the page which is edited.
type=comment

Adds a new section to the bottom of the page specified in the text box.
type=commenttitle

Adds a new section with the section header typed into the text box. The title can be specified with default= parameter. The page has to be specified with page= parameter. 
type=fulltext Sucht nur mit dem Volltextsuche-Button
Search only with the fulltext search button, without the 'Go' button.
type=move

Verschiebt eine Seite (benennt sie um)Move (rename) a page to a different name.

Beispielcode als Vorlage[edit | edit source]

Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein: For using the InputBos, please insert the following code into the content field of the wiki article: 

<inputbox>
type=
placeholder= 
bgcolor=
width=
preload= 
editintro=
buttonlabel= 
hidden=
searchbuttonlabel=
break=
namespaces= 
prefix=
</inputbox>

Konfigurationsmöglichkeiten für die Configuration Possibilities for InputBox[edit | edit source]

Parameter

Typ

Beschreibung

bgcolor=

Alle

Hintergrundfarbe (HTML Farbwerte z.BAll types

Sets the table background color (HTML color values, e.g. #eeeeff)

width=

Alle

Bestimmt die Breite der Inputbox All types

Sets the width of the InputBox in characters.

default=

Alle

Vorgabe im Eingabefeld (wird grau angezeigt) All types

Default text to put in the InputBox (displayed in grey

preload=

create, comment, commentitle

Die Seite mit dem angegebenen Titel wird vorgeschalten The page under this title will be preloaded into the blank editbox when a new page is created.

editintro=

create, comment Vorlagen zum Erstellen von Seiten vorschalten

The page which is given under this parameter will be shown, as instructions, above the editing window.

buttonlabel=

Alle

Button-Text All types

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

hidden=

create, comment Versteckt die Texteingabe. Der Parameter

This specifies that there is no InputBox.

It is used with parameter "default" ist nun keine Vorgabe mehr, sondern fixiert den Seitennamen , now not being a default, but the fixed value of the name of the page.

searchbuttonlabel=

search, fulltext Text für den Volltextsuche-Button

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

fulltextbutton=

search2 Zeigt den Volltextsuche-Button bei dem Typ search2

Show the full text search button on search2 form

break=

Alle

Abstand des Eingabefelds zum Button All types

Whether or not to insert a line break between the input box and the button(s). Defaults to yes (use a line break).

labeltext=

search2

Text über dem Eingabefeld to print beside the button

namespaces=

search, fulltext

Namensraum, in dem die Seite erstellt werden soll

Support for namespace checkboxes in fulltext search.

With "Main**", main article namespace is checked by default.

prefix=

search, fulltext, create

Text, der dem Seitennamen Vorangestellt werden soll

placeholder=

Alle

Platzhalter, der im Eingabefeld angezeigt werden soll (wird grau angezeigt)
  • Narrow down search to pages beginning with certain prefix. Note this only works with certain search back-ends, currently only latest Extension:lucene-search. Defaults to empty string (search all pages).
  • Create new page beginning with a certain prefix.
  • In type=move, the prefix is prepended to the default parameter.

Remark: underscores aren't recognized as spaces.

placeholder=

All types

Define placeholder text that will display in the input box when it is empty.

page=

comment, move Seite auf die verwiesen werden soll

Page to posts comment to, or page to move

minor=

comment, move Erstellt kleinere

Bearbeitungen Minor edit.

nosummary=

comment

Erstellen einer Zusammenfassung bei neuem Kommentar nicht gewünschtEdit summary (headline) not required for new comment.

summary=

comment, move, create

Erstellt eine Zusammenfassung oder gibt Grund an, warum verschoben wurdeEdit summary or move reason.

id=

Alle
All types id Attribute für <form><attribute for<form></form>.

inline=

search2

Macht die InputBox zu einem inline-Element (Keine Rahmenlinie) Make the InputBox be an inline element (no line break at beginning).

dir=

Alle rtl für das Lesen von rechts nach links oder ltr für links nach rechts  All types

Right to left (rtl) or left to right (ltr). Defaults to directionality of the page's language.

preloadparams[]=

create, comment, commentitle

Spezifikation von Parametern für die vorgeschaltene Seite (s.o.)

Weiterführende Links

Specify parameters to the preload text.

Related Links[edit | edit source]


Attachments

Discussions