Difference between revisions of "Reference:InputBox"
With InputBox you can integrate HTML forms into wiki pages.
Contents
- 1 What kind of InputBoxes can be created?
- 2 Beispielcode als Vorlage
- 3Konfigurationsmöglichkeiten für die Configuration Possibilities for InputBox
- 4 Weiterführende Links Related Links
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 " |
||
prefix= |
search, fulltext, create |
Text, der dem Seitennamen Vorangestellt werden soll |
placeholder= |
Alle |
Platzhalter, der im Eingabefeld angezeigt werden soll (wird grau angezeigt)
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.) |
Specify parameters to the preload text. |
Related Links[edit | edit source]
With InputBox you can integrate HTML forms into wiki pages. ==What kind of InputBoxes can be created?== {| class="wikitable contenttable" |- !|Typ !|Ergebnis !|Beschreibung |- ||type=search ||<inputbox> type=create </inputbox> ||Creates a search box which has a default width of 50 characters. Information added in the text box is searched for. |- ||type=search2 ||<inputbox> type=search2 </inputbox> || 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 ||<inputbox> type=create </inputbox> ||Creates a new page. Information added in the text box is the name of the page which is edited. |- ||type=comment ||<inputbox> type=comment </inputbox> ||Adds a new section to the bottom of the page specified in the text box. |- ||type=commenttitle ||<inputbox> type=commenttitle </inputbox> ||Adds a new section with the section header typed into the text box. The title can be specified with <code>default=</code> parameter. The page has to be specified with <code>page=</code> parameter. |- ||type=fulltext ||<inputbox> type=fulltext </inputbox> ||Sucht nur mit dem Volltextsuche-Button Search only with the fulltext search button, without the 'Go' button. |- ||type=move ||<inputbox> type=move </inputbox> ||Verschiebt eine Seite (benennt sie um). |} ==Beispielcode als Vorlage== Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein:Move (rename) a page to a different name. |} ==Beispielcode als Vorlage== For using the InputBos, please insert the following code into the content field of the wiki article: <pre><inputbox> type= placeholder= bgcolor= width= preload= editintro= buttonlabel= hidden= searchbuttonlabel= break= namespaces= prefix= </inputbox> </pre> ==Konfigurationsmöglichkeiten für dieConfiguration Possibilities for InputBox== {| class="wikitable contenttable" |- | style="border: 1px solid #ebecec;"| '''Parameter''' | style="border: 1px solid #ebecec;"| Typ | style="border: 1px solid #ebecec;"| Beschreibung |- | style="border: 1px solid #ebecec;"| '''bgcolor=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Hintergrundfarbe (HTML Farbwerte z.BSets the table background color (HTML color values, e.g. #eeeeff) |- | style="border: 1px solid #ebecec;"| '''width=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Bestimmt die Breite der Inputbox Sets the width of the InputBox in characters. |- | style="border: 1px solid #ebecec;"| '''default=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Vorgabe im Eingabefeld (wird grau angezeigt)Default text to put in the InputBox (displayed in grey |- | style="border: 1px solid #ebecec;"| '''preload=''' | style="border: 1px solid #ebecec;"|create, comment, commentitle | style="border: 1px solid #ebecec;"| 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. |- | style="border: 1px solid #ebecec;"| '''editintro=''' | style="border: 1px solid #ebecec;"| create, comment | style="border: 1px solid #ebecec;"| Vorlagen zum Erstellen von Seiten vorschalten The page which is given under this parameter will be shown, as instructions, ''above'' the editing window. |- | style="border: 1px solid #ebecec;"| '''buttonlabel=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Button-Text This label will be used for the main button of the form. |- | style="border: 1px solid #ebecec;"| '''hidden=''' | style="border: 1px solid #ebecec;"| create, comment | style="border: 1px solid #ebecec;"| Versteckt die Texteingabe. Der Parameter "default" ist nun keine Vorgabe mehr, sondern fixiert den Seitennamen This specifies that there is no InputBox. It is used with parameter "default", now not being a default, but the fixed value of the name of the page. |- | style="border: 1px solid #ebecec;"| '''searchbuttonlabel=''' | style="border: 1px solid #ebecec;"| search, fulltext | style="border: 1px solid #ebecec;"| Text für den Volltextsuche-Button This label will be used for the "Search full text" button of the search form. |- | style="border: 1px solid #ebecec;"| '''fulltextbutton=''' | style="border: 1px solid #ebecec;"| search2 | style="border: 1px solid #ebecec;"| Zeigt den Volltextsuche-Button bei dem Typ search2 Show the full text search button on search2 form |- | style="border: 1px solid #ebecec;"| '''break=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Abstand des Eingabefelds zum Button Whether or not to insert a line break between the input box and the button(s). Defaults to '''yes''' (use a line break). |- | style="border: 1px solid #ebecec;"| '''labeltext=''' | style="border: 1px solid #ebecec;"| search2 | style="border: 1px solid #ebecec;"| Text über dem Eingabefeld to print beside the button |- | style="border: 1px solid #ebecec;"| '''namespaces=''' | style="border: 1px solid #ebecec;"| search, fulltext | style="border: 1px solid #ebecec;"| Namensraum, in dem die Seite erstellt werden soll Support for namespace checkboxes in fulltext search. With "<code>Main'''**'''</code>", main article namespace is checked by default. |- | style="border: 1px solid #ebecec;"| '''prefix=''' | style="border: 1px solid #ebecec;"| search, fulltext, create | style="border: 1px solid #ebecec;"| Text, der dem Seitennamen Vorangestellt werden soll * Narrow down search to pages beginning with certain prefix. Note this only works with certain search back-ends, currently only latest [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:lucene-search 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. |- | style="border: 1px solid #ebecec;"| '''placeholder=''' | style="border: 1px solid #ebecec;"| Alle All types | style="border: 1px solid #ebecec;"| Platzhalter, der im Eingabefeld angezeigt werden soll (wird grau angezeigt) Define placeholder text that will display in the input box when it is empty. |- | style="border: 1px solid #ebecec;"| '''page=''' | style="border: 1px solid #ebecec;"| comment, move | style="border: 1px solid #ebecec;"| Seite auf die verwiesen werden soll Page to posts comment to, or page to move |- | style="border: 1px solid #ebecec;"| '''minor=''' | style="border: 1px solid #ebecec;"| comment, move | style="border: 1px solid #ebecec;"| Erstellt kleinere BearbeitungenMinor edit. |- | style="border: 1px solid #ebecec;"| '''nosummary=''' | style="border: 1px solid #ebecec;"|comment | style="border: 1px solid #ebecec;"| Erstellen einer Zusammenfassung bei neuem Kommentar nicht gewünschtEdit summary (headline) not required for new comment. |- | style="border: 1px solid #ebecec;"| '''summary=''' | style="border: 1px solid #ebecec;"|comment, move, create | style="border: 1px solid #ebecec;"| Erstellt eine Zusammenfassung oder gibt Grund an, warum verschoben wurdeEdit summary or move reason. |- | style="border: 1px solid #ebecec;"| '''id=''' | style="border: 1px solid #ebecec;"|Alle All types | style="border: 1px solid #ebecec;"|id Attribute für attribute for<form></form> . |- | style="border: 1px solid #ebecec;"| '''inline=''' | style="border: 1px solid #ebecec;"|search2 | style="border: 1px solid #ebecec;"| Macht dieMake the InputBox zu einembe an inline-Element (Keine Rahmenlinie) element (no line break at beginning). |- | style="border: 1px solid #ebecec;"| '''dir=''' | style="border: 1px solid #ebecec;"|Alle All types | style="border: 1px solid #ebecec;"| rtl für das Lesen von rechts nach links oder ltr für links nach rechts Right to left (rtl) or left to right (ltr). Defaults to directionality of the page's language. |- | style="border: 1px solid #ebecec;"| '''preloadparams[]=''' | style="border: 1px solid #ebecec;"|create, comment, commentitle | style="border: 1px solid #ebecec;"| Spezifikation von Parametern für die vorgeschaltene Seite (s.o.) |} ==Weiterführende LinksSpecify parameters to the preload text. |} ==Related Links== * [http://www.mediawiki.org/wiki/Extension:InputBox Dokumentation aufDocumentation at mediawiki.org]
Line 47: | Line 47: | ||
type=fulltext | type=fulltext | ||
</inputbox> | </inputbox> | ||
− | || | + | ||Search only with the fulltext search button, without the 'Go' button. |
|- | |- | ||
||type=move | ||type=move | ||
Line 53: | Line 53: | ||
type=move | type=move | ||
</inputbox> | </inputbox> | ||
− | || | + | ||Move (rename) a page to a different name. |
|} | |} | ||
==Beispielcode als Vorlage== | ==Beispielcode als Vorlage== | ||
− | + | For using the InputBos, please insert the following code into the content field of the wiki article: | |
<pre><inputbox> | <pre><inputbox> | ||
Line 74: | Line 74: | ||
</pre> | </pre> | ||
− | == | + | ==Configuration Possibilities for InputBox== |
{| class="wikitable contenttable" | {| class="wikitable contenttable" | ||
|- | |- | ||
Line 91: | Line 91: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Sets the table background color (HTML color values, e.g. #eeeeff) | |
|- | |- | ||
Line 101: | Line 101: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Sets the width of the InputBox in characters. | |
|- | |- | ||
Line 111: | Line 111: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Default text to put in the InputBox (displayed in grey | |
|- | |- | ||
Line 122: | Line 122: | ||
| style="border: 1px solid #ebecec;"|create, comment, commentitle | | style="border: 1px solid #ebecec;"|create, comment, commentitle | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | The page under this title will be preloaded into the blank editbox when a new page is created. | |
|- | |- | ||
Line 132: | Line 132: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | The page which is given under this parameter will be shown, as instructions, ''above'' the editing window. | |
|- | |- | ||
Line 139: | Line 139: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | This label will be used for the main button of the form. | |
|- | |- | ||
Line 152: | Line 152: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | This specifies that there is no InputBox. | |
+ | |||
+ | It is used with parameter "default", now not being a default, but the fixed value of the name of the page. | ||
|- | |- | ||
Line 162: | Line 164: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | This label will be used for the "Search full text" button of the search form. | |
|- | |- | ||
Line 172: | Line 174: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Show the full text search button on search2 form | |
|- | |- | ||
Line 179: | Line 181: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Whether or not to insert a line break between the input box and the button(s). Defaults to '''yes''' (use a line break). | |
|- | |- | ||
Line 192: | Line 194: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Text | + | Text to print beside the button |
|- | |- | ||
Line 202: | Line 204: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Support for namespace checkboxes in fulltext search. | |
+ | |||
+ | With "<code>Main'''**'''</code>", main article namespace is checked by default. | ||
|- | |- | ||
Line 212: | Line 216: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | * Narrow down search to pages beginning with certain prefix. Note this only works with certain search back-ends, currently only latest [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:lucene-search 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. | ||
|- | |- | ||
Line 219: | Line 227: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | All types | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Define placeholder text that will display in the input box when it is empty. | |
|- | |- | ||
Line 232: | Line 240: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Page to posts comment to, or page to move | |
|- | |- | ||
Line 242: | Line 250: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Minor edit. | |
|- | |- | ||
Line 250: | Line 258: | ||
| style="border: 1px solid #ebecec;"|comment | | style="border: 1px solid #ebecec;"|comment | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Edit summary (headline) not required for new comment. | |
|- | |- | ||
Line 258: | Line 266: | ||
| style="border: 1px solid #ebecec;"|comment, move, create | | style="border: 1px solid #ebecec;"|comment, move, create | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Edit summary or move reason. | |
|- | |- | ||
Line 264: | Line 272: | ||
'''id=''' | '''id=''' | ||
− | | style="border: 1px solid #ebecec;"| | + | | style="border: 1px solid #ebecec;"|All types |
− | | style="border: 1px solid #ebecec;"|id | + | | style="border: 1px solid #ebecec;"|id attribute for<form></form>. |
− | <form></form> | ||
− | |||
|- | |- | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
Line 274: | Line 280: | ||
| style="border: 1px solid #ebecec;"|search2 | | style="border: 1px solid #ebecec;"|search2 | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Make the InputBox be an inline element (no line break at beginning). | |
|- | |- | ||
Line 280: | Line 286: | ||
'''dir=''' | '''dir=''' | ||
− | | style="border: 1px solid #ebecec;"| | + | | style="border: 1px solid #ebecec;"|All types |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | rtl | + | Right to left (rtl) or left to right (ltr). Defaults to directionality of the page's language. |
|- | |- | ||
Line 290: | Line 296: | ||
| style="border: 1px solid #ebecec;"|create, comment, commentitle | | style="border: 1px solid #ebecec;"|create, comment, commentitle | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Specify parameters to the preload text. | |
|} | |} | ||
− | == | + | ==Related Links== |
− | * [http://www.mediawiki.org/wiki/Extension:InputBox | + | * [http://www.mediawiki.org/wiki/Extension:InputBox Documentation at mediawiki.org] |