Role-task: Difference between revisions
From SemanticOrganization
(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...") |
m (Text replacement - "|field-id=" to "|id=") |
||
Line 4: | Line 4: | ||
|form-unique-number=No | |form-unique-number=No | ||
|template-fields={{Semorg-generator-field | |template-fields={{Semorg-generator-field | ||
| | |id=role | ||
|field-property-id=RO | |field-property-id=RO | ||
|field-name=Rolle | |field-name=Rolle | ||
|field-type=wpg | |field-type=wpg | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
| | |id=name | ||
|field-property-id=NA | |field-property-id=NA | ||
|field-name=Aufgabe | |field-name=Aufgabe | ||
|field-type=txt | |field-type=txt | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
| | |id=description | ||
|field-property-id=DE | |field-property-id=DE | ||
|field-name=Beschreibung | |field-name=Beschreibung | ||
|field-type=txt | |field-type=txt | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
| | |id=hours | ||
|field-property-id=HO | |field-property-id=HO | ||
|field-name=Aufwand | |field-name=Aufwand | ||
Line 26: | Line 26: | ||
|field-suffix=h/Jahr | |field-suffix=h/Jahr | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
| | |id=month | ||
|field-property-id=MO | |field-property-id=MO | ||
|field-name=Monat(e) | |field-name=Monat(e) |
Revision as of 14:24, 22 November 2018
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
<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
{{semorg-category}}
Template
<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
<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" ], ] ];