Generator-field

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-generator-field-template": "semorg-generator-field",
"semorg-form-generator-field-add-button-text": "Weiteres Feld hinzufügen",

"semorg-form-generator-field-template": "generator-field",
"semorg-form-generator-field-rows": "property-id, name, size, suffix, placeholder, id, fields, type, values, rights, help, label, intro, template, parameters, input-type, prefix",
"semorg-list-generator-field-headers": "generator-field-property-id, generator-field-name, generator-field-size, generator-field-suffix, generator-field-placeholder, generator-field-id, generator-field-fields, generator-field-type, generator-field-values, generator-field-rights, generator-field-help, generator-field-label, generator-field-intro, generator-field-template, generator-field-parameters, generator-field-input-type, generator-field-prefix",
"semorg-field-generator-field-fields-name": "Felder", 
"semorg-field-generator-field-fields-parameters": "input type=combobox",
"semorg-field-generator-field-help-name": "Hilfetext", 
"semorg-field-generator-field-help-parameters": "",
"semorg-field-generator-field-id-name": "ID des Attributs", 
"semorg-field-generator-field-id-parameters": "size=2",
"semorg-field-generator-field-input-type-name": "", 
"semorg-field-generator-field-input-type-parameters": "",
"semorg-field-generator-field-intro-name": "", 
"semorg-field-generator-field-intro-parameters": "",
"semorg-field-generator-field-label-name": "", 
"semorg-field-generator-field-label-parameters": "",
"semorg-field-generator-field-name-name": "Anzeigename", 
"semorg-field-generator-field-name-parameters": "",
"semorg-field-generator-field-parameters-name": "Parameter", 
"semorg-field-generator-field-parameters-parameters": "",
"semorg-field-generator-field-placeholder-name": "", 
"semorg-field-generator-field-placeholder-parameters": "",
"semorg-field-generator-field-prefix-name": "Text vor dem Eingabefeld", 
"semorg-field-generator-field-prefix-parameters": "",
"semorg-field-generator-field-property-id-name": "", 
"semorg-field-generator-field-property-id-parameters": "",
"semorg-field-generator-field-rights-name": "Rights", 
"semorg-field-generator-field-rights-parameters": "", 
"semorg-field-generator-field-rights-help": "Should this field only be shown to users having certain rights?", 
"semorg-field-generator-field-rights-size": "60",
"semorg-field-generator-field-size-name": "", 
"semorg-field-generator-field-size-parameters": "",
"semorg-field-generator-field-suffix-name": "Text nach dem Eingabefeld", 
"semorg-field-generator-field-suffix-parameters": "",
"semorg-field-generator-field-template-name": "Template", 
"semorg-field-generator-field-template-parameters": "",
"semorg-field-generator-field-type-name": "Typ", 
"semorg-field-generator-field-type-parameters": "input type=dropdown|values=wpg|txt|num|dat|boo|uri|ema|tel",
"semorg-field-generator-field-values-name": "", 
"semorg-field-generator-field-values-parameters": "",

Form

Form:Semorg-generator-field

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-generator-field-create-title}}
   |edit title={{int:semorg-form-generator-field-edit-title}}<span class="d-none">: <page name></span>
   |page name=
}}}

{{semorg-form-template|generator-field}}
 
{{semorg-form-standard-inputs}}
</includeonly>

as embedded:

Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template. The second parameter of the semorg-form-template-embed call should be the target field, specified with <feature>[<field>] (e.g. meeting-group[files] or {{int:semorg-meeting-group-template}}[files] to respect template customization).

{{semorg-form-template-embed|generator-field|}}

Category

Category:Semorg-generator-field

{{semorg-category}}

Template

Template:Semorg-generator-field

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-generator-field-category}}]]{{#semorg-set:generator-field 
  |property-id={{{property-id|}}} 
  |name={{{name|}}} 
  |size={{{size|}}} 
  |suffix={{{suffix|}}} 
  |placeholder={{{placeholder|}}} 
  |id={{{id|}}} 
  |fields={{{fields|}}} 
  |type={{{type|}}} 
  |values={{{values|}}} 
  |rights={{{rights|}}} 
  |help={{{help|}}} 
  |label={{{label|}}} 
  |intro={{{intro|}}} 
  |template={{{template|}}} 
  |parameters={{{parameters|}}} 
  |input-type={{{input-type|}}} 
  |prefix={{{prefix|}}}
}}{{#semorg-detail:generator-field}}{{#semorg-table:generator-field 
  |property-id={{{property-id|}}} 
  |name={{{name|}}} 
  |size={{{size|}}} 
  |suffix={{{suffix|}}} 
  |placeholder={{{placeholder|}}} 
  |id={{{id|}}} 
  |fields={{{fields|}}} 
  |type={{{type|}}} 
  |values={{{values|}}} 
  |rights={{{rights|}}} 
  |help={{{help|}}} 
  |label={{{label|}}} 
  |intro={{{intro|}}} 
  |template={{{template|}}} 
  |parameters={{{parameters|}}} 
  |input-type={{{input-type|}}} 
  |prefix={{{prefix|}}}
}}</includeonly>

Row Template

Template:Semorg-generator-field-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{property-id|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{size|}}}</td> 
<td>{{{suffix|}}}</td> 
<td>{{{placeholder|}}}</td> 
<td>{{{id|}}}</td> 
<td>{{{fields|}}}</td> 
<td>{{{type|}}}</td> 
<td>{{{values|}}}</td> 
<td>{{{rights|}}}</td> 
<td>{{{help|}}}</td> 
<td>{{{label|}}}</td> 
<td>{{{intro|}}}</td> 
<td>{{{template|}}}</td> 
<td>{{{parameters|}}}</td> 
<td>{{{input-type|}}}</td> 
<td>{{{prefix|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-generator-field-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:generator-field
  |heading={{int:semorg-generator-field-page-name}}
  |formlink={{#semorg-forminput:generator-field}}
  |links={{{links|}}}
  |query={{{query|}}}
  |sort={{{sort|}}}
  |order={{{order|}}}
  |limit={{{limit|}}}
  |filter links={{{filter links|}}}
  |filters={{{filters|}}}
  |category={{{category|}}}
  |headers={{{headers|}}}
  |row template={{{row template|}}}
  |tableclass={{{tableclass|}}}
  |title={{{title|}}}
  |sums={{{sums|}}}
  |csv={{{csv|}}}
  |default={{{default|}}}
  |returnto={{{returnto|}}}
  |help={{{help|}}}
}}</includeonly>

Overview Page

[[]]

{{semorg-generator-field-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['generator-field'] = [ "id" => "GF","fields" => ["property-id" => [ "id" => "PID","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"size" => [ "id" => "SI","type" => "num" ],"suffix" => [ "id" => "SU","type" => "txt" ],"placeholder" => [ "id" => "PL","type" => "txt" ],"id" => [ "id" => "ID","type" => "txt" ],"fields" => [ "id" => "FI","type" => "txt" ],"type" => [ "id" => "TY","type" => "txt" ],"values" => [ "id" => "VA","type" => "txt" ],"rights" => [ "id" => "RI","type" => "txt" ],"help" => [ "id" => "HE","type" => "txt" ],"label" => [ "id" => "LA","type" => "txt" ],"intro" => [ "id" => "IN","type" => "txt" ],"template" => [ "id" => "TE","type" => "wpg" ],"parameters" => [ "id" => "PA","type" => "txt" ],"input-type" => [ "id" => "IT","type" => "txt" ],"prefix" => [ "id" => "PR","type" => "txt" ], ] ];