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:
or that are suggested (the “autocomplete” and “combobox” inputs):
values= possible values
- Specifies a set of either possible values or autocompletion values (depending on the input type) that this field can have, overriding whatever set of values may have been set from the semantic property. This set of values is separated by commas by default, but the delimiter can be modified using the
delimiter=
parameter.
values from property= property name
- Similar to
values=
, but gets its values from the set of all values that a certain property points to.
values from category= category name
- Similar to
values=
, but gets its values from the names of all pages belonging to a specific category.
values from concept= concept name
- Similar to values=, but gets its values from the names of all pages belonging to a specific concept.
values from namespace= namespace name
- Similar to
values=
, but gets its values from the names of all pages belonging to a specific namespace. (To get values from the main namespace, use "Main" for the namespace name, or just leave it blank.)
values from url= URL identifier
- Used only for autocompletion. Specifies that autocompletion should be based on the values retrieved from an outside URL; see here for how to do this.
remote autocompletion
- Specifies that autocompletion values should be retrieved dynamically from the server, instead of directly from a list of values hidden in the page’s HTML.
existing values only
- Set a combo box to only allow the autocomplete values, and not any arbitrary values, thus having it function even more like a dropdown.
show on select= value 1 => element ID 1 ; value 2 => element ID 2 ; etc
. - Can be used for inputs of type ’checkbox’, ’checkboxes’, ’radiobutton’, ’dropdown’ and ’listbox’ to specify that one or more tags with a certain ID should only be displayed to the user if a certain value (or values) is selected within that input. For inputs of type ’checkbox’, simply “
show on select= element ID
” should be used.
values dependent on= template name [ field name ]
- Can be used for inputs of type ’combobox’, ’text with autocomplete’ and ’textarea with autocomplete’. Specifies that the current set of allowed values for this field depends on the values a user selected, or will select, for another field in the form.
    Other parameters that can be added for certain input types:
size=size
- Used for text entries, combobox and listbox. Specifies the width of a text entry or combobox, or the height of a listbox.
placeholder= placeholder text
- Used for text and textarea fields. Specifies help text that is displayed in the input before the user clicks on it.
maxlength= maximum length
- Used for text and textarea fields. Specifies the maximum allowed length of the input.
include timezone
- Used for inputs of type ’datetime’; specifies that a time zone field should be included.
’standard input’ tag
    The standard input tag is used for nine different inputs that usually appear at the bottom of every form. The text immediately after “
standard input|
” is the name of each input. The most notable of these inputs is ’free text’, which is a textarea that holds all the non-template text in a page. The other seven are form elements such as the "Save" and "Preview" buttons; see here for the full list. The ’free text’ input has more elaborate handling than the other standard inputs; see “The free text input” for its allowed parameters.
    For the other standard input types, the allowed parameters are:
label= label name
- Specifies the text associated with this input on the form.
class= label name
- Specifies the CSS class for this input.
style= label name
- Specifies the CSS style for this input.
    In addition, the ’watch’ input type can take in the parameter ’checked’, which checks the “Watch this page” checkbox by default.
Allowed input types for data types
    Each defined Semantic MediaWiki data type has a default input type, and, when applicable, a default input size as well. Additionally, some data types have special handling if the field holds a delimited list of values, instead of just a single value.
    Here are the defaults and the other allowed input types for each data type, for single values:

    Date type
Default input type
Default size
Other allowed input types
Page
text with autocomplete
35
text, combobox, textarea, textarea with autocomplete, category
String
text
35
text with

Weitere Kostenlose Bücher