Bücher online kostenlos Kostenlos Online Lesen
Working With MediaWiki

Working With MediaWiki

Titel: Working With MediaWiki Kostenlos Bücher Online Lesen
Autoren: Yaron Koren
Vom Netzwerk:
field={{embedded template|...its fields...}} ... }}"). It is used in conjunction with the "holds template" parameter for the ’field’ tag (see below). Note that the template to be embedded must appear after the template in which it will be embedded.
’end template’ tag
    The ’end template’ tag ends the range of a template. There are no parameters for this tag.
’field’ tag
    The ’field’ tag specifies a field to be placed in a form, corresponding to a template field. The text immediately following the field declaration is the name of the template field. There are a large variety of possible parameters to this tag, some of which can only be used for certain input types. Parameters that can be applied to any field are:
input type= input type
- Specifies the type of input this field will have in the form. If a field corresponds to a semantic property, the form will usually have the correct input type by default; otherwise the default is text. If the corresponding semantic property cannot be automatically determined (e.g. if it’s in a template being called indirectly), you can use the parameter “property” to manually specify it (see below). The allowed set of input types is different for every semantic property type; see here for the full list of options.
hidden
- Specifies that this field will be hidden in the form; used to preserve values in edited pages.
mandatory
- Specifies that this field must be filled in by the user. Note:
mandatory
should not be used in conjunction with
hidden
. Use of both in the same field will cause the mandatory check on any field to fail when the form is saved.
restricted
- Specifies that this field will be editable only by admins/sysops and disabled for all other users. This parameter can also be called as "
restricted= group name
", which restricts editing of the field to the specified user group.
default= default value
- Specifies a default value for this field. For date-related fields, default=now will set the value to the current date and possibly time. For text fields,
default=current user
will set the value to the username of the user adding this page. For the checkbox input type,
default=yes
will check the checkbox by default. (The “checkboxes” input type, on the other hand, like the "listbox" type, requires specifying the actual values, like
default=Value A, Value C
.) You can also include templates, parser functions, and magic words within the "default=" value.
class= class name
- Specifies a CSS class that the input for this field should have.
property= property name
- Specifies that the field corresponds to a certain semantic property, and should thus get the appropriate input type, autocompletion, etc.
list
- Specifies that this field contains a list of values.
delimiter= delimiter
- Specifies the delimiter character or string this field should use, if it represents a list of values; the default is ",".
holds template
- Specifies that this field is meant to hold a multiple-instance template, and does not have its own form input. It is used in conjunction with the "embed in field" parameter for the ’for template’ tag (see above).
    Parameters that can only be applied to fields that hold a list of uploaded files are:
uploadable
- Specifies that a link should be placed next to this field, that opens a popup window to let the user upload a file; see "Uploading files", below.
image preview
- Specifies that a thumbnail of the uploaded image should be placed under the field in the form.
default filename= filename
- Specifies the default filename for files uploaded with this field.
    Parameters that can only be applied to fields of type ’textarea’ are:
rows= num rows
- Specifies the number of rows.
cols= num cols
- Specifies the number of columns.
autogrow
- Sets the textarea to "auto-grow" its height to match that of its contents, so that a scrollbar won’t be needed.
editor= editor type
- Adds a Javascript-based editor to the textarea to make editing its contents more user-friendly. Currently only one value is allowed: "
wikieditor
", for the WikiEditor extension (which must be installed for this to work). If you want to add any additional custom toolbars to WikiEditor, you will need to add them in the JavaScript to (’#free_text’).wikiEditor, just as they exist for (’#wpTextbox1’).wikiEditor.
    Parameters that can only be applied to inputs that have a set of pre-defined values, either that the user must select from (like the “dropdown” input)

Weitere Kostenlose Bücher