Role-task: Difference between revisions
From SemanticOrganization
m (Text replacement - "|field-id=" to "|id=") |
No edit summary |
||
(One intermediate revision 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={{ | |template-fields={{semorg-generator-field | ||
|id=role | |id=role | ||
| | |property-id=RO | ||
| | |name=Rolle | ||
| | |type=wpg | ||
}}{{ | }}{{semorg-generator-field | ||
|id=name | |id=name | ||
| | |property-id=NA | ||
| | |name=Aufgabe | ||
| | |type=txt | ||
}}{{ | }}{{semorg-generator-field | ||
|id=description | |id=description | ||
| | |property-id=DE | ||
| | |name=Beschreibung | ||
| | |type=txt | ||
}}{{ | }}{{semorg-generator-field | ||
|id=hours | |id=hours | ||
| | |property-id=HO | ||
| | |name=Aufwand | ||
| | |prefix=ca. | ||
| | |type=num | ||
| | |suffix=h/Jahr | ||
}}{{ | }}{{semorg-generator-field | ||
|id=month | |id=month | ||
| | |property-id=MO | ||
| | |name=Monat(e) | ||
|field-type= | |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
<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" ], ] ];