Vorlage:Classgenerator

This is [[MediaWiki:Tagline]]. Set to <code>display:none</code> by chameleon skin.
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}}
Datumerforderlich
Titleglobal_entityTitle

Generic title for the entity.

Einzeiliger Texterforderlich
Descriptionglobal_description

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

Mehrzeiliger Texterforderlich
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.

Einzeiliger Textvorgeschlagen
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.

Einzeiliger Texterforderlich
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.

Einzeiliger Texterforderlich
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.

Einzeiliger Textvorgeschlagen
Cargo tableglobal_cargoTable

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

Einzeiliger Textvorgeschlagen
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!

Wahrheitswerterforderlich
Is subobjectglobal_smwIsSubobject

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

Wahrheitswerterforderlich
Default restrictedglobal_restrictedTo

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

Einzeiliger Textvorgeschlagen
Default delimiterglobal_delimiter

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

Einzeiliger Texterforderlich
Module autocreationglobal_autocreate_module

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

Einzeiliger Texterforderlich
Template autocreationglobal_autocreate_template

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

Einzeiliger Texterforderlich
Form autocreationglobal_autocreate_form

Should the form page be created automatically by the template

Einzeiliger Texterforderlich
Category autocreationglobal_autocreate_category

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

Einzeiliger Texterforderlich
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

Einzeiliger Texterforderlich
Global costum configglobal_customization

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

Mehrzeiliger Textvorgeschlagen
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!

Wahrheitswerterforderlich
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).

Einzeiliger Textvorgeschlagen
Form teaser textform_teaserText

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

Mehrzeiliger Textvorgeschlagen
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?

Einzeiliger Texterforderlich
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.

Einzeiliger Texterforderlich
Placeholder textform_createInputPlaceholder

Placeholder text that is shwon in the form create input field

Einzeiliger Textvorgeschlagen
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''.

Einzeiliger Textvorgeschlagen
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 ''&lt;template-name[field-name]&gt;'' or ''&lt;unique number&gt;''. 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

Einzeiliger Textvorgeschlagen
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''.

Einzeiliger Textvorgeschlagen
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)

Einzeiliger Texterforderlich
Create entityform_labelCreate

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

Einzeiliger Texterforderlich
Edit entityform_labelEdit

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

Einzeiliger Texterforderlich
Header textform_headerText

This is the text displayed above the form

Mehrzeiliger Texterforderlich
Notificationform_notification

this notification test will be displayed above your form

Mehrzeiliger Textoptional
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

Einzeiliger Textvorgeschlagen
Allow free text fieldform_allowsFreeText

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

Wahrheitswerterforderlich
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.

Einzeiliger Textvorgeschlagen
Form Buttonsform_buttons

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

Einzeiliger Textvorgeschlagen
Default sizeform_fieldSize

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

Zahlenwerterforderlich
textarea default colsform_textareaAttributes_cols

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

Zahlenwerterforderlich
textarea default rowsform_textareaAttributes_rows

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

Zahlenwerterforderlich
textarea default autogrowform_textareaAttributes_autogrow

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

Wahrheitswerterforderlich
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).

Einzeiliger Texterforderlich
Form custom configform_customization

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

Mehrzeiliger Textvorgeschlagen
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!

Einzeiliger Texterforderlich
Related templatestemplate_templateDocumentationSeeAlso

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

Einzeiliger Textvorgeschlagen
Template costum configtemplate_customization

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

Mehrzeiliger Textvorgeschlagen
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

Mehrzeiliger Texterforderlich

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