SkipperGuide:Interne Dokumentation/InputBox

Version vom 5. Dezember 2009, 14:53 Uhr von Peter (Diskussion | Beiträge) (InputBox-Doku)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

Installation

1. Create the folder InputBox in the extensions folder.

2. Download and save the files

  1. InputBox.php
  2. InputBox.i18n.php
  3. InputBox.classes.php and
  4. InputBox.hooks.php
...to the extensions/InputBox/ folder of your MediaWiki installation.


3. In LocalSettings.php add the following line with the other "require_once" lines: <source lang="php">require_once($IP.'/extensions/InputBox/InputBox.php');</source>


Test der Installation

Wiki code

<inputbox>
type=search
width=42
buttonlabel=Go
searchbuttonlabel=Search
break=no
</inputbox>

Result

This kind was found on the main page of a Wikipedia. It could be used for starting new articles, since it doesn’t go to the edit box of articles that already exist.