Difference between revisions of "Reference:InputBox"
m |
Die InputBox Erweiterung ist eine MediaWiki-Extension, mit der HTML-Formulare in Wikiseiten eingebunden werden können.
Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein:
<inputbox>
type=create
placeholder=
bgcolor=#eeeeff
width=
preload=
editintro=Kommentar
buttonlabel=
hidden=
searchbuttonlabel=
break=
namespaces=
prefix=
</inputbox>
Typ
Beschreibung
type=search
Erstellt eine InputBox mit einer vorgegebenen Breite für 50 Zeichen. Die Suche kann über das Eingabefeld gemacht werden.
type=create
Erstellt eine neue Seite mit dem Titel, der in das Eingabefeld eingetragen wird.
type=comment
Fügt in der oben in der im Eingabefeld eingegebenen Seite einen Kommentar ein.
type=commenttitle
Fügt einen Kommentar mit der im Eingabefeld eingegebenen Überschrift ein. Muss zusammen mit dem
<page=>
Parameter genutzt werden.
With InputBox you can integrate HTML forms into wiki pages.
Contents
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 |
type=move |
|
Verschiebt eine Seite (benennt sie um). |
Beispielcode als Vorlage[edit | edit source]
Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein:
<inputbox>
type=
placeholder=
bgcolor=
width=
preload=
editintro=
buttonlabel=
hidden=
searchbuttonlabel=
break=
namespaces=
prefix=
</inputbox>
Konfigurationsmöglichkeiten für die InputBox[edit | edit source]
Parameter |
Typ |
Beschreibung |
bgcolor= |
Alle |
Hintergrundfarbe (HTML Farbwerte z.B. #eeeeff) |
width= |
Alle |
Bestimmt die Breite der Inputbox |
default= |
Alle |
Vorgabe im |
Eingabefeld (wird grau angezeigt) |
||
preload= |
create, comment, commentitle |
Die Seite mit dem |
angegebenen Titel wird vorgeschalten |
||
editintro= |
create, comment |
Vorlagen zum |
Erstellen von Seiten vorschalten |
buttonlabel= |
Alle |
Button-Text |
|
hidden= |
create, comment |
Versteckt die Texteingabe. |
Der Parameter "default" ist nun keine Vorgabe mehr, sondern fixiert den Seitennamen |
||
searchbuttonlabel= |
search, fulltext |
Text für den Volltextsuche-Button |
fulltextbutton= |
search2 |
Zeigt den Volltextsuche-Button bei dem Typ search2 |
break= |
Alle |
Abstand des Eingabefelds zum Button |
labeltext= |
search2 |
Text über dem Eingabefeld |
namespaces= |
search, fulltext |
Namensraum, in dem die Seite erstellt werden soll |
prefix= |
search, fulltext, create |
Text, der dem Seitennamen Vorangestellt werden soll |
placeholder= |
Alle |
Platzhalter, der im Eingabefeld angezeigt werden soll (wird grau angezeigt) |
page= |
comment, move |
Seite auf die verwiesen werden soll |
minor= |
comment, move |
Erstellt kleinere Bearbeitungen |
||
nosummary= |
comment |
Erstellen einer Zusammenfassung bei neuem |
Kommentar nicht gewünscht. |
||
summary= |
comment, move, create |
Erstellt |
eine Zusammenfassung oder gibt Grund an, warum verschoben wurde. |
||
id= |
Alle |
id Attribute für
|
<form></form> |
||
inline= |
search2 |
Macht die InputBox zu einem inline-Element (Keine Rahmenlinie) |
dir= |
Alle |
rtl für das Lesen von rechts nach links oder ltr für |
links nach rechts |
||
preloadparams[]= |
create, comment, commentitle |
Spezifikation von Parametern für die vorgeschaltene Seite (s.o.) |
Weiterführende Links[edit | edit source]
DieWith InputBox Erweiterung ist eine MediaWiki-Extension, mit der HTML-Formulare in Wikiseiten eingebunden werden können. * [http://www.mediawiki.org/wiki/Extension:InputBox Dokumentation der Erweiterung auf mediawiki.org] Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein: <pre><inputbox> type=create placeholder= bgcolor=#eeeeff width= preload= editintro=Kommentar buttonlabel= hidden= searchbuttonlabel= break= namespaces= prefix= </inputbox> </pre> {| class="wikitable contenttable" |- !|Typ !|Beschreibung |- ||type=search ||Erstellt eine InputBox mit einer vorgegebenen Breite für 50 Zeichen. Die Suche kann über das Eingabefeld gemacht werden. |- ||type=create ||Erstellt eine neue Seite mit dem Titel, der in das Eingabefeld eingetragen wird. |- ||type=comment ||Fügt in der oben in der im Eingabefeld eingegebenen Seite einen Kommentar ein. |- ||type=commenttitle ||Fügt einen Kommentar mit der im Eingabefeld eingegebenen Überschrift ein. Muss zusammen mit dem <pre><page=></pre>Parameter genutzt werden. |- ||type=fulltext ||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 |- ||type=move ||<inputbox> type=move </inputbox> ||Verschiebt eine Seite (benennt sie um). |} {| id="mwUw" class="wikitable" |- id="mwVQ" ! id="mwVg"|Type ! id="mwVw"|Beschreibung |- id="mwWA" | id="mwWQ"|type=search2 | id="mwWg"|<form id="bodySearch0.591892461957" class="bodySearch" action="/wiki/Special:Search" name="" data-mw="{" data-ve-attributes="{"></form><div class="bodySearchWrap" data-ve-attributes="{" :="">Bei '''type=search2''' ist der Such-Button auf der rechten Seite neben dem Eingabefeld vorgegeben. Momentan scheint es nicht möglich zu sein andere Parameter mit einzubeziehen. Diese Suchbox durchsucht das gesamte Wiki, indem sie eingesetzt ist. </div> |} {| class="contenttable" style="width: 531px; height: 373px;" border="0" cellspacing="0" cellpadding="5" ==Beispielcode als Vorlage== Um die InputBox zu nutzen, fügen sie folgenden Code in den Inhaltsbereich Ihrer Wiki-Seite ein: <pre><inputbox> type= placeholder= bgcolor= width= preload= editintro= buttonlabel= hidden= searchbuttonlabel= break= namespaces= prefix= </inputbox> </pre> ==Konfigurationsmöglichkeiten für die 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 | style="border: 1px solid #ebecec;"| Hintergrundfarbe (HTML Farbwerte z.B. #eeeeff) |- | style="border: 1px solid #ebecec;"| '''width=''' | style="border: 1px solid #ebecec;"| Alle | style="border: 1px solid #ebecec;"| Bestimmt die Breite der Inputbox |- | style="border: 1px solid #ebecec;"| '''default=''' | style="border: 1px solid #ebecec;"| Alle | style="border: 1px solid #ebecec;"| Vorgabe im Eingabefeld Eingabefeld (wird grau angezeigt) |- | style="border: 1px solid #ebecec;"| '''preload=''' | style="border: 1px solid #ebecec;"|create, comment, commentitle | style="border: 1px solid #ebecec;"| Die Seite mit dem Angegebenenangegebenen Titel wird vorgeschalten |- | style="border: 1px solid #ebecec;"| '''editintro=''' | style="border: 1px solid #ebecec;"| create, comment | style="border: 1px solid #ebecec;"| Vorlagen zum erstellenErstellen von Seiten vorschalten |- | style="border: 1px solid #ebecec;"| '''buttonlabel=''' | style="border: 1px solid #ebecec;"| All types Alle | style="border: 1px solid #ebecec;"| Button-Text |- | style="border: 1px solid #ebecec;"| '''hidden=''' | style="border: 1px solid #ebecec;"| create, comment | style="border: 1px solid #ebecec;"| Versteckt die Texteingabe. Der Parameter Der Parameter "default" ist nun keine Vorgabe mehr, sondern fixiert den Seitennamen |- | style="border: 1px solid #ebecec;"| '''searchbuttonlabel=''' | style="border: 1px solid #ebecec;"| search, fulltext | style="border: 1px solid #ebecec;"| Text für den Volltextsuche-Button |- | 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 |- | style="border: 1px solid #ebecec;"| '''break=''' | style="border: 1px solid #ebecec;"| Alle | style="border: 1px solid #ebecec;"| Abstand des Eingabefelds zum Button |- | style="border: 1px solid #ebecec;"| '''labeltext=''' | style="border: 1px solid #ebecec;"| search2 | style="border: 1px solid #ebecec;"| Text über dem Eingabefeld |- | 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 |- | 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 |- | style="border: 1px solid #ebecec;"| '''placeholder=''' | style="border: 1px solid #ebecec;"| Alle | style="border: 1px solid #ebecec;"| Platzhalter, der im Eingabefeld angezeigt werden soll (wird grau angezeigt) |- | style="border: 1px solid #ebecec;"| '''page=''' | style="border: 1px solid #ebecec;"| comment, move | style="border: 1px solid #ebecec;"| Seite auf die verwiesen werden soll |- | style="border: 1px solid #ebecec;"| '''minor=''' | style="border: 1px solid #ebecec;"| comment, move | style="border: 1px solid #ebecec;"| Erstellt kleinere Erstellt kleinere Bearbeitungen |- | style="border: 1px solid #ebecec;"| '''nosummary=''' | style="border: 1px solid #ebecec;"|comment | style="border: 1px solid #ebecec;"| Erstellen einer Zusammenfassung bei neuem Kommentar nicht Kommentar nicht gewünscht. |- | style="border: 1px solid #ebecec;"| '''summary=''' | style="border: 1px solid #ebecec;"|comment, move, create | style="border: 1px solid #ebecec;"| Erstellt eine Zusammenfassung oder eine Zusammenfassung oder gibt Grund an, warum verschoben wurde. |- | style="border: 1px solid #ebecec;"| '''id=''' | style="border: 1px solid #ebecec;"|Alle | style="border: 1px solid #ebecec;"|id Attribute für <pre> </pre> <form></form> |- | style="border: 1px solid #ebecec;"| '''inline=''' | style="border: 1px solid #ebecec;"|search2 | style="border: 1px solid #ebecec;"| Macht die InputBox zu einem inline-Element (Keine Rahmenlinie) |- | style="border: 1px solid #ebecec;"| '''dir=''' | style="border: 1px solid #ebecec;"|Alle | style="border: 1px solid #ebecec;"| rtl für das Lesen von rechts nach links oder ltr für links nach rechts links nach rechts |- | 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 Links== * [http://www.mediawiki.org/wiki/Extension:InputBox Dokumentation auf mediawiki.org]
Line 1: | Line 1: | ||
− | + | With InputBox you can integrate HTML forms into wiki pages. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ==What kind of InputBoxes can be created?== | ||
{| class="wikitable contenttable" | {| class="wikitable contenttable" | ||
|- | |- | ||
!|Typ | !|Typ | ||
+ | !|Ergebnis | ||
!|Beschreibung | !|Beschreibung | ||
|- | |- | ||
||type=search | ||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 | ||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 | ||type=comment | ||
− | || | + | ||<inputbox> |
+ | type=comment | ||
+ | </inputbox> | ||
+ | ||Adds a new section to the bottom of the page specified in the text box. | ||
|- | |- | ||
||type=commenttitle | ||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 | ||type=fulltext | ||
+ | ||<inputbox> | ||
+ | type=fulltext | ||
+ | </inputbox> | ||
||Sucht nur mit dem Volltextsuche-Button | ||Sucht nur mit dem Volltextsuche-Button | ||
|- | |- | ||
||type=move | ||type=move | ||
+ | ||<inputbox> | ||
+ | type=move | ||
+ | </inputbox> | ||
||Verschiebt eine Seite (benennt sie um). | ||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: | ||
− | + | <pre><inputbox> | |
− | + | type= | |
− | + | placeholder= | |
− | + | bgcolor= | |
− | + | width= | |
− | + | preload= | |
− | + | editintro= | |
+ | buttonlabel= | ||
+ | hidden= | ||
+ | searchbuttonlabel= | ||
+ | break= | ||
+ | namespaces= | ||
+ | prefix= | ||
+ | </inputbox> | ||
+ | </pre> | ||
− | + | ==Konfigurationsmöglichkeiten für die InputBox== | |
− | + | {| class="wikitable contenttable" | |
− | |||
− | |||
− | |||
− | |||
− | {| class="contenttable | ||
|- | |- | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
Line 80: | Line 94: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Hintergrundfarbe (HTML Farbwerte) | + | Hintergrundfarbe (HTML Farbwerte z.B. #eeeeff) |
|- | |- | ||
Line 100: | Line 114: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Vorgabe im | + | Vorgabe im Eingabefeld (wird grau angezeigt) |
|- | |- | ||
Line 108: | 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;"| | ||
− | Die Seite mit dem | + | Die Seite mit dem angegebenen Titel wird vorgeschalten |
|- | |- | ||
Line 118: | Line 132: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Vorlagen zum | + | Vorlagen zum Erstellen von Seiten vorschalten |
|- | |- | ||
Line 125: | Line 139: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Alle | |
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
Line 138: | Line 152: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Versteckt die Texteingabe. | + | Versteckt die Texteingabe. Der Parameter "default" ist nun keine Vorgabe mehr, sondern fixiert den Seitennamen |
|- | |- | ||
Line 228: | Line 242: | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | + | Erstellt kleinere Bearbeitungen | |
|- | |- | ||
Line 236: | Line 250: | ||
| style="border: 1px solid #ebecec;"|comment | | style="border: 1px solid #ebecec;"|comment | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | Erstellen einer Zusammenfassung bei neuem | + | Erstellen einer Zusammenfassung bei neuem Kommentar nicht gewünscht. |
|- | |- | ||
Line 244: | Line 258: | ||
| 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;"| | ||
− | Erstellt | + | Erstellt eine Zusammenfassung oder gibt Grund an, warum verschoben wurde. |
|- | |- | ||
Line 252: | Line 266: | ||
| style="border: 1px solid #ebecec;"|Alle | | style="border: 1px solid #ebecec;"|Alle | ||
| style="border: 1px solid #ebecec;"|id Attribute für | | style="border: 1px solid #ebecec;"|id Attribute für | ||
− | < | + | <form></form> |
|- | |- | ||
Line 268: | Line 282: | ||
| style="border: 1px solid #ebecec;"|Alle | | style="border: 1px solid #ebecec;"|Alle | ||
| style="border: 1px solid #ebecec;"| | | style="border: 1px solid #ebecec;"| | ||
− | rtl für das Lesen von rechts nach links oder ltr für | + | rtl für das Lesen von rechts nach links oder ltr für links nach rechts |
|- | |- | ||
Line 276: | Line 290: | ||
| 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;"| | ||
+ | Spezifikation von Parametern für die vorgeschaltene Seite (s.o.) | ||
|} | |} | ||
+ | |||
+ | ==Weiterführende Links== | ||
+ | * [http://www.mediawiki.org/wiki/Extension:InputBox Dokumentation auf mediawiki.org] |