Cookies helfen uns bei der Bereitstellung des IMT HilfeWikis. Bei der Nutzung vom IMT HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.Weitere Informationen

Vorlage:Classgenerator

IMT HilfeWiki - das Wiki
Wechseln zu:Navigation, Suche

Fehler

Diese Seite befindet sich in einem ungültigen Namesraum. Eingestellt ist Class, festgestellt wurde: Vorlage
Pflichtfeld global_autocreate_form fehlt!
Pflichtfeld form_enable fehlt!
Pflichtfeld template_name fehlt!
Pflichtfeld global_delimiter fehlt!
Pflichtfeld global_gardeningCategory_chooser fehlt!
Pflichtfeld global_description fehlt!
Pflichtfeld global_autocreate_category fehlt!
Pflichtfeld global_autocreate_template fehlt!
Pflichtfeld global_entityTitle fehlt!
Pflichtfeld parameter_parameter fehlt!
Pflichtfeld global_edit_timestamp fehlt!
Pflichtfeld global_autocreate_module fehlt!
Documentation icon Template documentation[view] [edit] [history] [purge]

Description

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.

Vorlagenparameter

ParameterBeschreibungTypStatus
Änderungsdatumglobal_edit_timestamp

Das Datum der entsprechenden Revision. Womit das Datum der aktuellen Revision das Datum der letzten Änderung ist.

Standard
{{REVISIONTIMESTAMP}}
Beispiel
leer
Autowert
leer
Datumerforderlich
Titleglobal_entityTitle

Generic title for the entity.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Descriptionglobal_description

A short description of the entity. Will be displayed on the template documentation page, for example.

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgeerforderlich
Categoryglobal_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Gardening categoryglobal_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Gardening category nameglobal_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Namespaceglobal_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Cargo tableglobal_cargoTable

The name of the cargo table to store class's data in, if you use data store cargo.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Store objects semanticallyglobal_smwUseStorage

If you use dataStore smw, set this to true if you actually want persistant smw data to be stored for that class!

Standard
leer
Beispiel
leer
Autowert
leer
Boolescherforderlich
Is subobjectglobal_smwIsSubobject

When using datastore smw, should this be stored as subobject (and not as normal data)?

Standard
leer
Beispiel
leer
Autowert
leer
Boolescherforderlich
Default restrictedglobal_restrictedTo

You can define a default for the 'restricted' attribute of your fields here.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Default delimiterglobal_delimiter

The default delimiter used on multivalue fields. Can be overwritten by each paramter.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Module autocreationglobal_autocreate_module

Should the module pages and their documentation page be created automatically by the template

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Template autocreationglobal_autocreate_template

Should the template page and its documentation page be created automatically by the template

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Form autocreationglobal_autocreate_form

Should the form page be created automatically by the template

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Category autocreationglobal_autocreate_category

Should the category page - if there is any - be created automatically by the template

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Property autocreationglobal_autocreate_property

Should the property pages - if store smw is active and the class stores its data sematically - be created automatically by the template

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Global costum configglobal_customization

This field allows you to add custimized entries to your global-configuration. Use one 'fieldname = value,' entry per line.

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgevorgeschlagen
Create formform_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!

Standard
leer
Beispiel
leer
Autowert
leer
Boolescherforderlich
Form nameform_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).

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Form teaser textform_teaserText

This is the text displayed on the form:name page (before you see the actual form)

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgevorgeschlagen
Form create linkform_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?

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Inputfield Infotextform_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Placeholder textform_createInputPlaceholder

Placeholder text that is shwon in the form create input field

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Create input query stringform_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''.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Create link page nameform_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

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Create link query stringform_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''.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Create link typeform_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)

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Create entityform_labelCreate

Label for the signal/action for 'create entity'. Shows on buttons and and the form label.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Edit entityform_labelEdit

Label for the signal/action for 'edit entity'. Shows on buttons and and the form label.

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Header textform_headerText

This is the text displayed above the form

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgeerforderlich
Notificationform_notification

this notification test will be displayed above your form

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgeoptional
Sectionsform_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

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Allow free text fieldform_allowsFreeText

Should there be a free text field right before the form buttons?

Standard
leer
Beispiel
leer
Autowert
leer
Boolescherforderlich
Free text preloadform_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.

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Form Buttonsform_buttons

Which buttons other than 'save' and 'cancel' should appera below the form

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Default sizeform_fieldSize

Here, you define a default 'size' for input fields. You will still be able to overwrite this in your parameter definition.

Standard
leer
Beispiel
leer
Autowert
leer
Nummererforderlich
textarea default colsform_textareaAttributes_cols

You can set a default for the columns attribute of your textarea fields

Standard
leer
Beispiel
leer
Autowert
leer
Nummererforderlich
textarea default rowsform_textareaAttributes_rows

You can set a default for the rows attribute of your textarea fields

Standard
leer
Beispiel
leer
Autowert
leer
Nummererforderlich
textarea default autogrowform_textareaAttributes_autogrow

You can set a default for the autogrow attribute of your textarea fields

Standard
leer
Beispiel
leer
Autowert
leer
Boolescherforderlich
textarea default editorform_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).

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Form custom configform_customization

This field allows you to add customized entries to your form-configuration. Use one 'fieldname = value,' entry per line.

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgevorgeschlagen
Template nametemplate_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!

Standard
leer
Beispiel
leer
Autowert
leer
Zeileerforderlich
Related templatestemplate_templateDocumentationSeeAlso

Used in the see also-section of your template documentation. Please omit the template: from each entry!

Standard
leer
Beispiel
leer
Autowert
leer
Zeilevorgeschlagen
Template costum configtemplate_customization

This field allows you to add custimized entries to your template-configuration. Use one 'fieldname = value,' entry per line.

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgevorgeschlagen
Parametersparameter_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

Standard
leer
Beispiel
leer
Autowert
leer
Zeichenfolgeerforderlich

Usage

{{Classgenerator
|global_edit_timestamp=
|global_entityTitle=
|global_description=
|global_category=
|global_gardeningCategory_chooser=
|global_gardeningCategory=
|global_namespace=
|global_cargoTable=
|global_smwUseStorage=
|global_smwIsSubobject=
|global_restrictedTo=
|global_delimiter=
|global_autocreate_module=
|global_autocreate_template=
|global_autocreate_form=
|global_autocreate_category=
|global_autocreate_property=
|global_customization=
|form_enable=
|form_name=
|form_teaserText=
|form_typeCreateLink=
|form_createInfotext=
|form_createInputPlaceholder=
|form_createInputQueryString=
|form_createLinkPageName=
|form_createLinkQueryString=
|form_createLinkType=
|form_labelCreate=
|form_labelEdit=
|form_headerText=
|form_notification=
|form_sectionList=
|form_allowsFreeText=
|form_freeTextPreload=
|form_buttons=
|form_fieldSize=
|form_textareaAttributes_cols=
|form_textareaAttributes_rows=
|form_textareaAttributes_autogrow=
|form_textareaAttributes_editor=
|form_customization=
|template_name=
|template_templateDocumentationSeeAlso=
|template_customization=
|parameter_parameter=
}}

See also