(Die Seite wurde neu angelegt: „<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section -->{{#invoke:Classgenerator|main|{{BASEPAGEN…“) |
imported>Oetterer K (Schützte „Vorlage:Classgenerator“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))) |
||
Zeile 1: | Zeile 1: | ||
− | <!-- Start your template code here. for tipps and tools for template development, please refer to our help-section -->{{#invoke:Classgenerator|main|{{BASEPAGENAME}}}}<!--Last line of your template code--><noinclude> | + | <!-- Start your template code here. for tipps and tools for template development, please refer to our help-section |
+ | -->{{#invoke:Classgenerator|main|{{BASEPAGENAME}}}}<!--Last line of your template code--><noinclude> | ||
{{documentation}} | {{documentation}} | ||
+ | |||
<!-- Add categories to the /doc subpage, not here! --> | <!-- Add categories to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Version vom 7. Oktober 2022, 16:56 Uhr
Lua-Fehler in Modul:Error, Zeile 36: attempt to call global '_error' (a nil value)
Description
This template uses Lua: |
An object class used on this wiki. The object class complex encompasses a base module, a class module, a template, a category page (if desired) and a form. Including documentation if necessary.
Kategorie: Category:Generated classes
Data Storage
This template does not store any persistent data.
Parameters
An object class used on this wiki. The object class complex encompasses a base module, a class module, a template, a category page (if desired) and a form. Including documentation if necessary.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Änderungsdatum | global_edit_timestamp | Das Datum der entsprechenden Revision. Womit das Datum der aktuellen Revision das Datum der letzten Änderung ist.
| Datum | erforderlich |
Title | global_entityTitle | Generic title for the entity. | Zeile | erforderlich |
Description | global_description | A short description of the entity. Will be displayed on the template documentation page, for example. | Zeichenfolge | erforderlich |
Category | global_category | The mediawiki category, the entity is placed into. If left empty or set to NIL, no categegory tag will be placed an object page. No category page will be created. | Zeile | vorgeschlagen |
Gardening category | global_gardeningCategory_chooser | This field lets you choose, whether you want to have a gardening category for this class and - if so - if you want an individual one or the global category. | Zeile | erforderlich |
Gardening category name | global_gardeningCategory | This is the name of the class's gardning category. Objects/class entities with implausible/erroneous input will be placed in this category automatically. | Zeile | erforderlich |
Namespace | global_namespace | If you put this entity on a special namespace, name it here. NOTE: You have to be precise. This is case sensitive. But omit the colon. NOTE: Remember to add the namespace in your LocalSettings.php. | Zeile | vorgeschlagen |
Cargo table | global_cargoTable | The name of the cargo table to store class's data in, if you use data store cargo. | Zeile | vorgeschlagen |
Store objects semantically | global_smwUseStorage | If you use dataStore smw, set this to true if you actually want persistant smw data to be stored for that class! | Boolesch | erforderlich |
Is subobject | global_smwIsSubobject | When using datastore smw, should this be stored as subobject (and not as normal data)? | Boolesch | erforderlich |
Default restricted | global_restrictedTo | You can define a default for the 'restricted' attribute of your fields here. | Zeile | vorgeschlagen |
Default delimiter | global_delimiter | The default delimiter used on multivalue fields. Can be overwritten by each paramter. | Zeile | erforderlich |
Module autocreation | global_autocreate_module | Should the module pages and their documentation page be created automatically by the template | Zeile | erforderlich |
Template autocreation | global_autocreate_template | Should the template page and its documentation page be created automatically by the template | Zeile | erforderlich |
Form autocreation | global_autocreate_form | Should the form page be created automatically by the template | Zeile | erforderlich |
Category autocreation | global_autocreate_category | Should the category page - if there is any - be created automatically by the template | Zeile | erforderlich |
Property autocreation | global_autocreate_property | Should the property pages - if store smw is active and the class stores its data sematically - be created automatically by the template | Zeile | erforderlich |
Global costum config | global_customization | This field allows you to add custimized entries to your global-configuration. Use one 'fieldname = value,' entry per line. | Zeichenfolge | vorgeschlagen |
Create form | form_enable | Do you want to create a form for this class? Note: When you don't want to have a form _page_, but need this to be a part of another form (as a holds-template form), set this to true! | Boolesch | erforderlich |
Form name | form_name | The name of the form, i.e. the form will be placed an page [[Form:Formname]]. If you don't need an actual form page, leave this empty (e.g. if this is a prot of another form as holds-template or such). | Zeile | vorgeschlagen |
Form teaser text | form_teaserText | This is the text displayed on the form:name page (before you see the actual form) | Zeichenfolge | vorgeschlagen |
Form create link | form_typeCreateLink | This field lets you choose, what kind of object create link is provided to the user on the form page: is there none, a formlink, or a forminput field? | Zeile | erforderlich |
Inputfield Infotext | form_createInfotext | This is the short text that appears right above the input field. Short being the important part. Please limit yourself to a short sentence. | Zeile | erforderlich |
Placeholder text | form_createInputPlaceholder | Placeholder text that is shwon in the form create input field | Zeile | vorgeschlagen |
Create input query string | form_createInputQueryString | You can use this option to pass information to the form; this information generally takes the form of ''templateName[fieldName]=value''. It should look like a typical URL query string; an example would be ''query string=namespace=User&User[Is_employee]=yes''. | Zeile | vorgeschlagen |
Create link page name | form_createLinkPageName | With this, you can have the name of the page created by the form to be set automatically. You can use any of the parameters ''<template-name[field-name]>'' or ''<unique number>''. The latter takes options start=x, unique, random, and a number (length of id string, default 6). Note: this cannot start with the UNIQUE NUMBER tag due to a bug in Semantic Forms!IMPORTANT: If you want to use this, you have to add the output of your class's sfGenerateFormInfoTag() in comments to your form page!!!. Class generator produces the appropriate content, you have to paste it into your form page anew, every time you change this value here. This is a workaround for a semantic forms bug. see https://phabricator.wikimedia.org/T123230 for more information | Zeile | vorgeschlagen |
Create link query string | form_createLinkQueryString | You can use this option to pass information to the form; this information generally takes the form of ''templateName[fieldName]=value''. It should look like a typical URL query string; an example would be ''query string=namespace=User&User[Is_employee]=yes''. | Zeile | vorgeschlagen |
Create link type | form_createLinkType | This field lets you choose, what kind of form link is used to link to the form page: is it a plain link or a button (with parameter submission via get or post) | Zeile | erforderlich |
Create entity | form_labelCreate | Label for the signal/action for 'create entity'. Shows on buttons and and the form label. | Zeile | erforderlich |
Edit entity | form_labelEdit | Label for the signal/action for 'edit entity'. Shows on buttons and and the form label. | Zeile | erforderlich |
Header text | form_headerText | This is the text displayed above the form | Zeichenfolge | erforderlich |
Notification | form_notification | this notification test will be displayed above your form | Zeichenfolge | optional |
Sections | form_sectionList | If you want to have hl2 sections of text after the datafields and before the freetext/formbutton, name them here. Use strings for names of section headlines | Zeile | vorgeschlagen |
Allow free text field | form_allowsFreeText | Should there be a free text field right before the form buttons? | Boolesch | erforderlich |
Free text preload | form_freeTextPreload | When this is set your free text will have a preload= statement. The contents of the page you enter here will be used as preload template text for the free text field. | Zeile | vorgeschlagen |
Form Buttons | form_buttons | Which buttons other than 'save' and 'cancel' should appera below the form | Zeile | vorgeschlagen |
Default size | form_fieldSize | Here, you define a default 'size' for input fields. You will still be able to overwrite this in your parameter definition. | Nummer | erforderlich |
textarea default cols | form_textareaAttributes_cols | You can set a default for the columns attribute of your textarea fields | Nummer | erforderlich |
textarea default rows | form_textareaAttributes_rows | You can set a default for the rows attribute of your textarea fields | Nummer | erforderlich |
textarea default autogrow | form_textareaAttributes_autogrow | You can set a default for the autogrow attribute of your textarea fields | Boolesch | erforderlich |
textarea default editor | form_textareaAttributes_editor | You can set a default for the editor attribute of your textarea fields. As of now, semantic forms only supports wikieditor (or none). | Zeile | vorgeschlagen |
Form custom config | form_customization | This field allows you to add customized entries to your form-configuration. Use one 'fieldname = value,' entry per line. | Zeichenfolge | vorgeschlagen |
Template name | template_name | The name of your template. i.e.: your template can be found on the page [[Template:nameOfYourTemplate]]. Unless there is a very good reason, this should be the same as your class's name! | Zeile | erforderlich |
Related templates | template_templateDocumentationSeeAlso | Used in the see also-section of your template documentation. Please omit the template: from each entry! | Zeile | vorgeschlagen |
Template costum config | template_customization | This field allows you to add custimized entries to your template-configuration. Use one 'fieldname = value,' entry per line. | Zeichenfolge | vorgeschlagen |
Parameters | parameter_parameter | This is your list of parameters. You put all data here, that you would like to handle - be it data you process normally, data you would only like to gather vai form or data you simply want to store | Zeichenfolge | erforderlich |
Usage
See also