Project-team: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
|name=Team | |name=Team | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | |||
|id=team-internal | |||
|name=Team (internally) | |||
|parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | |parameters=input type=combobox,values from category=semorg-person-user,mapping property=Semorg-person-name | ||
}}{{semorg-generator-field | |||
|id=team-external | |||
|name=Team (externally) | |||
|parameters=input type=combobox,values from category=semorg-person-contact | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=role | |id=role |
Revision as of 16:46, 27 May 2019
Messages
"semorg-project-team-template": "semorg-project-team", "semorg-project-team-category": "semorg-project-team", "semorg-project-team-form": "semorg-project-team", "semorg-form-project-team-create-title": "Create Project-team", "semorg-form-project-team-edit-title": "Edit Project-team", "semorg-form-project-team-template": "project-team", "semorg-form-project-team-rows": "end-date, role, team-external, team-internal, team, main-responsible, project, start-date", "semorg-list-project-team-headers": "project-team-end-date, project-team-role, project-team-team-external, project-team-team-internal, project-team-team, project-team-main-responsible, project-team-project, project-team-start-date", "semorg-field-project-team-end-date-name": "End date", "semorg-field-project-team-end-date-parameters": "input type=datepicker|size=10", "semorg-field-project-team-main-responsible-name": "", "semorg-field-project-team-main-responsible-parameters": "input type=checkbox", "semorg-field-project-team-main-responsible-suffix": "Main Responsible", "semorg-field-project-team-project-name": "Project", "semorg-field-project-team-project-parameters": "", "semorg-field-project-team-role-name": "Role", "semorg-field-project-team-role-parameters": "", "semorg-field-project-team-start-date-name": "Start date", "semorg-field-project-team-start-date-parameters": "input type=datepicker|size=10", "semorg-field-project-team-team-name": "Team", "semorg-field-project-team-team-parameters": "", "semorg-field-project-team-team-external-name": "Team (externally)", "semorg-field-project-team-team-external-parameters": "input type=combobox|values from category=semorg-person-contact", "semorg-field-project-team-team-internal-name": "Team (internally)", "semorg-field-project-team-team-internal-parameters": "input type=combobox|values from category=semorg-person-user|mapping property=Semorg-person-name",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-project-team-create-title}} |edit title={{int:semorg-form-project-team-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|project-team}} {{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|project-team|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-team-category}}]]{{#semorg-set:project-team |end-date={{{end-date|}}} |role={{{role|}}} |team-external={{{team-external|}}} |team-internal={{{team-internal|}}} |team={{{team|}}} |main-responsible={{{main-responsible|}}} |project={{{project|}}} |start-date={{{start-date|}}} }}{{#semorg-detail:project-team}}{{#semorg-table:project-team |end-date={{{end-date|}}} |role={{{role|}}} |team-external={{{team-external|}}} |team-internal={{{team-internal|}}} |team={{{team|}}} |main-responsible={{{main-responsible|}}} |project={{{project|}}} |start-date={{{start-date|}}} }}</includeonly>
Row Template
Template:Semorg-project-team-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{end-date|}}}</td> <td>{{{role|}}}</td> <td>{{{team-external|}}}</td> <td>{{{team-internal|}}}</td> <td>{{{team|}}}</td> <td>{{{main-responsible|}}}</td> <td>{{{project|}}}</td> <td>{{{start-date|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-project-team-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:project-team |heading={{int:semorg-project-team-page-name}} |formlink={{#semorg-forminput:project-team}} |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-project-team-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['project-team'] = [ "id" => "PT","fields" => ["end-date" => [ "id" => "ED","type" => "dat" ],"role" => [ "id" => "RO","type" => "txt" ],"team-external" => [ "id" => "TE","type" => "wpg" ],"team-internal" => [ "id" => "TI","type" => "wpg" ],"team" => [ "id" => "TM","type" => "wpg" ],"main-responsible" => [ "id" => "MR","type" => "boo" ],"project" => [ "id" => "PR","type" => "wpg" ],"start-date" => [ "id" => "SD","type" => "dat" ], ] ];