Role-task: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=RT |form-add-button-text=Aufgabe hinzufügen |form-unique-number=No |template-fields={{Semorg-generator-field |field-id=role |field-property-id...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
|form-add-button-text=Aufgabe hinzufügen
|form-add-button-text=Aufgabe hinzufügen
|form-unique-number=No
|form-unique-number=No
|template-fields={{Semorg-generator-field
|template-fields={{semorg-generator-field
|field-id=role
|id=role
|field-property-id=RO
|property-id=RO
|field-name=Rolle
|name=Rolle
|field-type=wpg
|type=wpg
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=name
|id=name
|field-property-id=NA
|property-id=NA
|field-name=Aufgabe
|name=Aufgabe
|field-type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=description
|id=description
|field-property-id=DE
|property-id=DE
|field-name=Beschreibung
|name=Beschreibung
|field-type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=hours
|id=hours
|field-property-id=HO
|property-id=HO
|field-name=Aufwand
|name=Aufwand
|field-type=num
|prefix=ca.
|field-prefix=ca.
|type=num
|field-suffix=h/Jahr
|suffix=h/Jahr
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=month
|id=month
|field-property-id=MO
|property-id=MO
|field-name=Monat(e)
|name=Monat(e)
|field-type=num
|type=num
}}{{semorg-generator-field
|id=responsible
|property-id=RE
|name=Responsible
|type=wpg
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name
}}
}}
}}
}}

Latest revision as of 14:42, 1 March 2020


Messages

"semorg-role-task-template": "semorg-role-task",
"semorg-form-role-task-add-button-text": "Aufgabe hinzufügen",

"semorg-form-role-task-template": "role-task",
"semorg-form-role-task-rows": "role, responsible, hours, month, name, description",
"semorg-list-role-task-headers": "role-task-role, role-task-responsible, role-task-hours, role-task-month, role-task-name, role-task-description",
"semorg-field-role-task-description-name": "Beschreibung", 
"semorg-field-role-task-description-parameters": "",
"semorg-field-role-task-hours-name": "Aufwand", 
"semorg-field-role-task-hours-parameters": "", 
"semorg-field-role-task-hours-prefix": "ca.", 
"semorg-field-role-task-hours-suffix": "h/Jahr",
"semorg-field-role-task-month-name": "Monat(e)", 
"semorg-field-role-task-month-parameters": "",
"semorg-field-role-task-name-name": "Aufgabe", 
"semorg-field-role-task-name-parameters": "",
"semorg-field-role-task-responsible-name": "Responsible", 
"semorg-field-role-task-responsible-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name",
"semorg-field-role-task-role-name": "Rolle", 
"semorg-field-role-task-role-parameters": "",

Form

Form:Semorg-role-task

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

{{semorg-form-template|role-task}}
 
{{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|role-task|}}

Category

Category:Semorg-role-task

{{semorg-category}}

Template

Template:Semorg-role-task

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-task-category}}]]{{#semorg-set:role-task 
  |role={{{role|}}} 
  |responsible={{{responsible|}}} 
  |hours={{{hours|}}} 
  |month={{{month|}}} 
  |name={{{name|}}} 
  |description={{{description|}}}
}}{{#semorg-detail:role-task}}{{#semorg-table:role-task 
  |role={{{role|}}} 
  |responsible={{{responsible|}}} 
  |hours={{{hours|}}} 
  |month={{{month|}}} 
  |name={{{name|}}} 
  |description={{{description|}}}
}}</includeonly>

Row Template

Template:Semorg-role-task-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{role|}}}</td> 
<td>{{{responsible|}}}</td> 
<td>{{{hours|}}}</td> 
<td>{{{month|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{description|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-role-task-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:role-task
  |heading={{int:semorg-role-task-page-name}}
  |formlink={{#semorg-forminput:role-task}}
  |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-role-task-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['role-task'] = [ "id" => "RT","fields" => ["role" => [ "id" => "RO","type" => "wpg" ],"responsible" => [ "id" => "RE","type" => "wpg" ],"hours" => [ "id" => "HO","type" => "num" ],"month" => [ "id" => "MO","type" => "num" ],"name" => [ "id" => "NA","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];