No categories assigned

Inputbox

< Manual:Create pages

The extension InputBox provides a form field on a wiki page. This field allows users to automatically create a new page with a predefined page name. This page can - optionally - be created in a particular namespace.

Input box for creating a new page
Input box for creating a new page


A typical example for using an input box is the creation of meeting minutes, which have to follow a consistent naming convention. The inputbox by copying the following code into any wiki page:

<inputbox>
type=create
default={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}
prefix=Minutes:IT/Jour fixe/
preload=Template:Minutes_general
buttonlabel=Create new minutes
break=no
width=30
useve=true
</inputbox>

Description of the inputbox elements:

Element Value Description
type create The purpose of the infobox is to create a new page
default Default text as suggestion for the new page name. In our example: The current date.
prefix path The path to the new page, if it is created as a subpage and/or in a specific namespace.
  • Example without namespace: IT/Jour Fixe/
  • Example with namespace (the namespace has to already exist): Minutes:HR/
preload path to the template Loads the default text for the meeting minutes from a template. If you do not use a template, you can delete this line. If the template is not found, an empty page is created.
buttonlabel Text Label for the submit button.
break no Places the submit button next to the input field.
width 30 Width of the input field in characters.
useve true Opens the new page in visual editing mode.

Show the latest minutes

If you want to display links to the latest meeting minutes directly under the input box, you can add the following query in the source text under the input box:

Previous minutes:
<div>
{{#ask:[[~IT/Jour Fixe/*]]
|limit=5
|sort=creation date
|order=desc
|format=ul
|default=There are no pervious minutes.
|searchlabel= &#8594; More IT-Jour Fixe minutes
}}
</div>

Description of the query elements for displaying previous meeting minutes:

Name Wert
#ask [[ ]] create Type of meeting minutes to show. You can show the path to the subpages if you are working with subpages, followed by an asterisk *. Alternatively, you can enter a category, if your minutes are associated with a particular category, e.g., category IT-minutes.
limit number Number of minutes to show. I additional minutes exist, a more... link will be shown.
sort creation date Sort the minutes by creation date.
order desc Sort order is descending (latest first)
format ul Show the links to the minutes as a bullet list.
default text Default text when no minutes are found.
search label text Bezeichnung für den Link zu weiteren Protokollen (erscheint nur, wenn es mehr Protkolle gibt als im Wert für limit angegeben.

Template:Box Links

Attachments

Discussions