Manual:Extension/InputBox: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''InputBox''' extension allows to automatically create a new page via an input field with a specific page name and - optionally - in a specific namespace.
The '''InputBox''' extension allows to automatically create a new page via an input field with a specific page name and - optionally - in a specific namespace.


== Creating meeting minutes from an inputbox ==
<br />
<br />
[[File:inputbox-en.png|alt=Inputbox to create a wiki page|center|thumb|450x450px|Inputbox to create a wiki page]]
[[File:inputbox-en.png|alt=Inputbox to create a wiki page|center|thumb|450x450px|Inputbox to create a wiki page]]
Line 13: Line 14:
width=30
width=30
useve=true
useve=true
arialabel=New minutes
</inputbox>
</inputbox>
</syntaxhighlight>
</syntaxhighlight>
Line 103: Line 105:
|Text
|Text
|Label for the link to additional results (is shown only if there are more results than the defined  ''limit]''
|Label for the link to additional results (is shown only if there are more results than the defined  ''limit]''
|}{{Box Links|Thema1=[https://www.mediawiki.org/wiki/Extension:InputBox/de www.mediawiki.org/wiki/Extension:InputBox/de]}}
|}{{Box Links-en|Topic1=[https://www.mediawiki.org/wiki/Extension:InputBox/de www.mediawiki.org/wiki/Extension:InputBox]}}




[[en:{{FULLPAGENAME}}]]
[[en:{{FULLPAGENAME}}]]
[[de:Handbuch:Erweiterung/Inputbox]]
[[de:Handbuch:Erweiterung/Inputbox]]

Latest revision as of 13:36, 10 October 2022

The InputBox extension allows to automatically create a new page via an input field with a specific page name and - optionally - in a specific namespace.

Creating meeting minutes from an inputbox


Inputbox to create a wiki page
Inputbox to create a wiki page


A typical example of this is creating meeting minutes that follow a consistent content structure. The following code can be added to the source code of a page:

<inputbox>
type=create
default={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}
prefix=Meeting:IT/Jour fixe/
preload=Meeting:Standard minutes
buttonlabel=New minutes
break=no
width=30
useve=true
arialabel=New minutes
</inputbox>

Description of the settings:

Wert
type create Creates a new page
default Suggestion for a name for the new page; here in the example: current edate
prefix Seitenpfad Path to a namespace or subpage.
preload Pfad zur Vorlage Loads the default text for the new page from a template, if you are not using a template, this line can be deleted. If the template is not found, a blank page is created.
buttonlabel Text Text that is shown on the button.
break no Places the button behind the text field rather than below.
width 30 Size of the inputbox in characters
useve true Opens the new page directly in visual editing mode

Show latest minutes

If you want to display links to the last 5 meeting minutes by creation date directly below the input box, you can add the following query in the source code below the input box, specifying the path to the logs in the square brackets in the #ask query (i.e. the prefix-path from the inputbox followed by a *:

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

Beschreibung der Einstellungen zur Anzeige der letzten Protokolle:

Name Wert
#ask [[ ]] create The path to the minutes is pecified here. Alternatively, the category if the logs are assigned to a category.
limit Zahl Number of results. Below, a more... link will be shown
sort creation date Sorting of resulst by creation date
order desc Ordered descending
format ul Results format is an unordered list
default Text Text to show if no results exist
search label Text Label for the link to additional results (is shown only if there are more results than the defined limit]

Related info



To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions