Generator-field: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
m (Text replacement - "|field-" to "|")
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{semorg-generator
|template-id=GF
|template-id=GF
|form-add-button-text=Weiteres Feld hinzufügen
|form-add-button-text=Weiteres Feld hinzufügen
|embed-field=Semorg-generator[template-fields]
|form-unique-number=No
|form-unique-number=No
|template-fields={{Semorg-generator-field
|template-fields={{semorg-generator-field
|id=template
|id=template
|property-id=TE
|property-id=TE
|name=Template
|name=Template
|type=wpg
|type=wpg
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=id
|id=id
|property-id=ID
|property-id=ID
Line 15: Line 14:
|type=txt
|type=txt
|parameters=size=2
|parameters=size=2
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=property-id
|id=property-id
|property-id=PID
|property-id=PID
|type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=name
|id=name
|property-id=NA
|property-id=NA
|name=Anzeigename
|name=Anzeigename
|type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=parameters
|id=parameters
|property-id=PA
|property-id=PA
|name=Parameter
|name=Parameter
|type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=type
|id=type
|property-id=TY
|property-id=TY
Line 35: Line 34:
|type=txt
|type=txt
|parameters=input type=dropdown,values=wpg,txt,num,dat,boo,uri,ema,tel
|parameters=input type=dropdown,values=wpg,txt,num,dat,boo,uri,ema,tel
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=prefix
|id=prefix
|property-id=PR
|property-id=PR
|name=Text vor dem Eingabefeld
|name=Text vor dem Eingabefeld
|type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=suffix
|id=suffix
|property-id=SU
|property-id=SU
|name=Text nach dem Eingabefeld
|name=Text nach dem Eingabefeld
|type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=fields
|id=fields
|property-id=FI
|property-id=FI
Line 51: Line 50:
|type=txt
|type=txt
|parameters=input type=combobox
|parameters=input type=combobox
}}{{Semorg-generator-field
}}{{semorg-generator-field
|id=help
|id=help
|property-id=HE
|property-id=HE
|name=Hilfetext
|name=Hilfetext
|type=txt
|type=txt
}}{{semorg-generator-field
|id=input-type
|property-id=IT
|type=txt
}}{{semorg-generator-field
|id=label
|property-id=LA
|type=txt
}}{{semorg-generator-field
|id=values
|property-id=VA
|type=txt
}}{{semorg-generator-field
|id=size
|property-id=SI
|type=num
}}{{semorg-generator-field
|id=placeholder
|property-id=PL
|type=txt
}}{{semorg-generator-field
|id=intro
|property-id=IN
|type=txt
}}{{semorg-generator-field
|id=rights
|property-id=RI
|name=Rights
|type=txt
|help=Should this field only be shown to users having certain rights?
|size=60
}}
}}
}}
}}

Latest revision as of 14:04, 17 May 2022


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" ], ] ];