Vorlage:Classgenerator: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
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)))
K (Schützte „Vorlage:Classgenerator“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
 
(kein Unterschied)

Aktuelle Version vom 6. April 2023, 19:20 Uhr

Lua-Fehler in Modul:Error, Zeile 36: attempt to call global '_error' (a nil value)

Documentation icon Template documentation

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.

Zeileerforderlich
Descriptionglobal_description

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

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.

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.

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.

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.

Zeilevorgeschlagen
Cargo tableglobal_cargoTable

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

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!

Boolescherforderlich
Is subobjectglobal_smwIsSubobject

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

Boolescherforderlich
Default restrictedglobal_restrictedTo

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

Zeilevorgeschlagen
Default delimiterglobal_delimiter

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

Zeileerforderlich
Module autocreationglobal_autocreate_module

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

Zeileerforderlich
Template autocreationglobal_autocreate_template

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

Zeileerforderlich
Form autocreationglobal_autocreate_form

Should the form page be created automatically by the template

Zeileerforderlich
Category autocreationglobal_autocreate_category

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

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

Zeileerforderlich
Global costum configglobal_customization

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

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!

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

Zeilevorgeschlagen
Form teaser textform_teaserText

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

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?

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.

Zeileerforderlich
Placeholder textform_createInputPlaceholder

Placeholder text that is shwon in the form create input field

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

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

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

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)

Zeileerforderlich
Create entityform_labelCreate

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

Zeileerforderlich
Edit entityform_labelEdit

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

Zeileerforderlich
Header textform_headerText

This is the text displayed above the form

Zeichenfolgeerforderlich
Notificationform_notification

this notification test will be displayed above your form

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

Zeilevorgeschlagen
Allow free text fieldform_allowsFreeText

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

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.

Zeilevorgeschlagen
Form Buttonsform_buttons

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

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.

Nummererforderlich
textarea default colsform_textareaAttributes_cols

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

Nummererforderlich
textarea default rowsform_textareaAttributes_rows

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

Nummererforderlich
textarea default autogrowform_textareaAttributes_autogrow

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

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

Zeilevorgeschlagen
Form custom configform_customization

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

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!

Zeileerforderlich
Related templatestemplate_templateDocumentationSeeAlso

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

Zeilevorgeschlagen
Template costum configtemplate_customization

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

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

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


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