Task

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-task-template": "semorg-task",
"semorg-task-category": "semorg-task",
"semorg-task-form": "semorg-task",
"semorg-task-page-name": "Tasks",
"semorg-task-entity-name": "Task",
"semorg-form-task-create-title": "Create Task",
"semorg-form-task-edit-title": "Edit Task", 
"semorg-form-task-page-name": "Tasks",

"semorg-form-task-template": "task",
"semorg-form-task-rows": "title, description, person, group, dates",
"semorg-list-task-headers": "task-title, task-person, task-due-date",
"semorg-field-task-dates-name": "planned till", 
"semorg-field-task-dates-fields": "due-date,done-date",
"semorg-field-task-description-name": "Description", 
"semorg-field-task-description-parameters": "input type=textarea|rows=2|autogrow|cols=60",
"semorg-field-task-done-name": "Done", 
"semorg-field-task-done-parameters": "input type=checkbox",
"semorg-field-task-done-date-name": "Done date", 
"semorg-field-task-done-date-parameters": "input type=datepicker|size=10", 
"semorg-field-task-done-date-prefix": "done at",
"semorg-field-task-due-date-name": "Due date", 
"semorg-field-task-due-date-parameters": "input type=datepicker|size=10",
"semorg-field-task-group-name": "Group", 
"semorg-field-task-group-parameters": "input type=combobox|values from category=semorg-group",
"semorg-field-task-meeting-name": "Meeting", 
"semorg-field-task-meeting-parameters": "",
"semorg-field-task-project-name": "Project", 
"semorg-field-task-project-parameters": "input type=combobox|values from category=semorg-project",
"semorg-field-task-responsible-name": "Responsible", 
"semorg-field-task-responsible-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=semorg-person-name",
"semorg-field-task-title-name": "Title", 
"semorg-field-task-title-parameters": "",

Form

Form:Semorg-task

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

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

Category

Category:Semorg-task

{{semorg-category}}

Template

Template:Semorg-task

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-task-category}}]]{{#semorg-set:task 
  |group={{{group|}}} 
  |done-date={{{done-date|}}} 
  |done={{{done|}}} 
  |title={{{title|}}} 
  |project={{{project|}}} 
  |description={{{description|}}} 
  |due-date={{{due-date|}}} 
  |meeting={{{meeting|}}} 
  |dates={{{dates|}}} 
  |responsible={{{responsible|}}}
}}{{#semorg-detail:task}}{{#semorg-table:task 
  |group={{{group|}}} 
  |done-date={{{done-date|}}} 
  |done={{{done|}}} 
  |title={{{title|}}} 
  |project={{{project|}}} 
  |description={{{description|}}} 
  |due-date={{{due-date|}}} 
  |meeting={{{meeting|}}} 
  |dates={{{dates|}}} 
  |responsible={{{responsible|}}}
}}</includeonly>

Row Template

Template:Semorg-task-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{group|}}}</td> 
<td>{{{done-date|}}}</td> 
<td>{{{done|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{project|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{due-date|}}}</td> 
<td>{{{meeting|}}}</td> 
<td>{{{dates|}}}</td> 
<td>{{{responsible|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-task-overview

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

Tasks

{{semorg-task-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['task'] = [ "id" => "TA","fields" => ["group" => [ "id" => "GR","type" => "wpg" ],"done-date" => [ "id" => "DO","type" => "dat" ],"done" => [ "id" => "DN","type" => "boo" ],"title" => [ "id" => "TI","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"due-date" => [ "id" => "DU","type" => "dat" ],"meeting" => [ "id" => "ME","type" => "wpg" ],"dates" => [ "id" => "DA","type" => "" ],"responsible" => [ "id" => "RE","type" => "wpg" ], ] ];