Project: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id=PJ | |template-id=PJ | ||
|form-unique-number=No | |form-unique-number=No | ||
|placeholder=Projektname | |placeholder=Projektname | ||
|rows=title,run-time,contact-person,desc,team-intern,team-extern,budget | |rows=title,run-time,contact-person,desc,team-intern,team-extern,budget | ||
|list-headers=project-title,project-start,project-end,project-contact-person | |list-headers=project-title,project-start,project-end,project-contact-person | ||
|template-fields={{semorg-generator-field | |template-fields={{semorg-generator-field | ||
|id=title | |id=title | ||
|property-id=TT | |property-id=TT | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=short-title | |id=short-title | ||
|property-id=SH | |property-id=SH | ||
|name=Short Title | |name=Short Title | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=start | |id=start | ||
|property-id=ST | |property-id=ST | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=end | |id=end | ||
|property-id=EN | |property-id=EN | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=contact-person | |id=contact-person | ||
|property-id=CP | |property-id=CP | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=description | |id=description | ||
|property-id=DE | |property-id=DE | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=team-internal | |id=team-internal | ||
|property-id=TI | |property-id=TI | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=team-external | |id=team-external | ||
|property-id=TE | |property-id=TE | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=department | |id=department | ||
|property-id=DP | |property-id=DP | ||
|name=Department | |name=Department | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=milestone | |id=milestone | ||
|property-id=MI | |property-id=MI | ||
|name=Milestone | |name=Milestone | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=closed | |id=closed | ||
|property-id=CL | |property-id=CL | ||
|name=Closed | |name=Closed | ||
|type=boo | |type=boo | ||
|suffix=closed | |suffix=closed | ||
|parameters=input type=checkbox | |parameters=input type=checkbox | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=budget | |id=budget | ||
|property-id=BU | |property-id=BU | ||
|name=Budget | |name=Budget | ||
|type=num | |type=num | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=openproject-id | |id=openproject-id | ||
|property-id=OP | |property-id=OP | ||
|name=OpenProject ID | |name=OpenProject ID | ||
|type=num | |type=num | ||
|parameters=size=10 | |parameters=size=10 | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=toggl-id | |id=toggl-id | ||
|property-id=TO | |property-id=TO | ||
|name=Toggl ID | |name=Toggl ID | ||
|type=num | |type=num | ||
|parameters=size=10 | |parameters=size=10 | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=target-group | |id=target-group | ||
|property-id=TG | |property-id=TG | ||
|name=Target Group | |name=Target Group | ||
|type=txt | |type=txt | ||
|parameters=input type=combobox,property=semorg-project-target-group | |parameters=input type=combobox,property=semorg-project-target-group | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=phase | |id=phase | ||
|property-id=PH | |property-id=PH | ||
|name=Phase | |name=Phase | ||
|type=txt | |type=txt | ||
|parameters=input type=combobox,property=semorg-project-phase | |parameters=input type=combobox,property=semorg-project-phase | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=strategic-objective | |id=strategic-objective | ||
|property-id=SO | |property-id=SO | ||
|name=Strategic Objective | |name=Strategic Objective | ||
|type=txt | |type=txt | ||
|parameters=input type=combobx,property=semorg-project-strategic-objective | |parameters=input type=combobx,property=semorg-project-strategic-objective | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=status | |id=status | ||
|property-id=SU | |property-id=SU | ||
|name=Status | |name=Status | ||
|type=txt | |type=txt | ||
|parameters=input type=combobox,property=semorg-project-status | |parameters=input type=combobox,property=semorg-project-status | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=type | |id=type | ||
|property-id=TY | |property-id=TY | ||
|name=Type | |name=Type | ||
|type=txt | |type=txt | ||
|parameters=input type=combobx,property=semorg-project-type | |parameters=input type=combobx,property=semorg-project-type | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=topic | |id=topic | ||
|property-id=TP | |property-id=TP | ||
|name=Topics | |name=Topics | ||
|type=wpg | |type=wpg | ||
|parameters=input type=tokens,values from category=semorg-topic,mapping property=Semorg-topic-name,list | |parameters=input type=tokens,values from category=semorg-topic,mapping property=Semorg-topic-name,list | ||
| | }}{{semorg-generator-field | ||
|id=partners | |||
|property-id=PA | |||
|name=Partners | |||
}}{{semorg-generator-field | |||
|id=people | |||
|property-id=PE | |||
|name=Team | |||
}} | }} | ||
}} | }} |
Revision as of 18:55, 2 March 2021
Messages
"semorg-project-template": "semorg-project", "semorg-project-category": "semorg-project", "semorg-project-form": "semorg-project", "semorg-form-project-create-title": "Create Project", "semorg-form-project-edit-title": "Edit Project", "semorg-forminput-project-placeholder": "Projektname", "semorg-form-project-template": "project", "semorg-form-project-rows": "title,run-time,contact-person,desc,team-intern,team-extern,budget", "semorg-list-project-headers": "project-title,project-start,project-end,project-contact-person", "semorg-field-project-active-name": "active", "semorg-field-project-active-parameters": "", "semorg-field-project-budget-name": "Budget", "semorg-field-project-budget-parameters": "", "semorg-field-project-closed-name": "Closed", "semorg-field-project-closed-parameters": "input type=checkbox", "semorg-field-project-closed-suffix": "closed", "semorg-field-project-closed-date-name": "closed at", "semorg-field-project-closed-date-parameters": "", "semorg-field-project-closed-date-prefix": "closed at", "semorg-field-project-contact-person-name": "", "semorg-field-project-contact-person-parameters": "", "semorg-field-project-department-name": "Department", "semorg-field-project-department-parameters": "", "semorg-field-project-description-name": "", "semorg-field-project-description-parameters": "", "semorg-field-project-end-name": "", "semorg-field-project-end-parameters": "", "semorg-field-project-homepage-name": "Homepage", "semorg-field-project-homepage-parameters": "", "semorg-field-project-milestone-name": "Milestone", "semorg-field-project-milestone-parameters": "", "semorg-field-project-openproject-id-name": "OpenProject ID", "semorg-field-project-openproject-id-parameters": "size=10", "semorg-field-project-outlook-name": "Outlook", "semorg-field-project-outlook-parameters": "", "semorg-field-project-partners-name": "Partners", "semorg-field-project-partners-parameters": "", "semorg-field-project-phase-name": "Phase", "semorg-field-project-phase-parameters": "input type=combobox|property=semorg-project-phase", "semorg-field-project-picture-name": "Picture", "semorg-field-project-picture-parameters": "uploadable", "semorg-field-project-picture-size": "50", "semorg-field-project-short-title-name": "Short Title", "semorg-field-project-short-title-parameters": "", "semorg-field-project-start-name": "", "semorg-field-project-start-parameters": "", "semorg-field-project-status-name": "Status", "semorg-field-project-status-parameters": "input type=combobox|property=semorg-project-status", "semorg-field-project-strategic-objective-name": "Strategic Objective", "semorg-field-project-strategic-objective-parameters": "input type=combobx|property=semorg-project-strategic-objective", "semorg-field-project-tag-name": "Tags", "semorg-field-project-tag-parameters": "", "semorg-field-project-target-group-name": "Target Group", "semorg-field-project-target-group-parameters": "input type=combobox|property=semorg-project-target-group", "semorg-field-project-team-external-name": "", "semorg-field-project-team-external-parameters": "", "semorg-field-project-team-internal-name": "", "semorg-field-project-team-internal-parameters": "", "semorg-field-project-title-name": "", "semorg-field-project-title-parameters": "", "semorg-field-project-toggl-id-name": "Toggl ID", "semorg-field-project-toggl-id-parameters": "size=10", "semorg-field-project-topic-name": "Topics", "semorg-field-project-topic-parameters": "input type=tokens|values from category=semorg-topic|mapping property=Semorg-topic-name|list", "semorg-field-project-type-name": "Type", "semorg-field-project-type-parameters": "input type=combobx|property=semorg-project-type",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-project-create-title}} |edit title={{int:semorg-form-project-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|project}} {{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|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-category}}]]{{#semorg-set:project |contact-person={{{contact-person|}}} |outlook={{{outlook|}}} |start={{{start|}}} |homepage={{{homepage|}}} |budget={{{budget|}}} |openproject-id={{{openproject-id|}}} |department={{{department|}}} |title={{{title|}}} |milestone={{{milestone|}}} |type={{{type|}}} |team-external={{{team-external|}}} |tag={{{tag|}}} |phase={{{phase|}}} |target-group={{{target-group|}}} |picture={{{picture|}}} |topic={{{topic|}}} |closed-date={{{closed-date|}}} |partners={{{partners|}}} |toggl-id={{{toggl-id|}}} |status={{{status|}}} |description={{{description|}}} |end={{{end|}}} |active={{{active|}}} |team-internal={{{team-internal|}}} |short-title={{{short-title|}}} |closed={{{closed|}}} |strategic-objective={{{strategic-objective|}}} }}{{#semorg-detail:project}}{{#semorg-table:project |contact-person={{{contact-person|}}} |outlook={{{outlook|}}} |start={{{start|}}} |homepage={{{homepage|}}} |budget={{{budget|}}} |openproject-id={{{openproject-id|}}} |department={{{department|}}} |title={{{title|}}} |milestone={{{milestone|}}} |type={{{type|}}} |team-external={{{team-external|}}} |tag={{{tag|}}} |phase={{{phase|}}} |target-group={{{target-group|}}} |picture={{{picture|}}} |topic={{{topic|}}} |closed-date={{{closed-date|}}} |partners={{{partners|}}} |toggl-id={{{toggl-id|}}} |status={{{status|}}} |description={{{description|}}} |end={{{end|}}} |active={{{active|}}} |team-internal={{{team-internal|}}} |short-title={{{short-title|}}} |closed={{{closed|}}} |strategic-objective={{{strategic-objective|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{contact-person|}}}</td> <td>{{{outlook|}}}</td> <td>{{{start|}}}</td> <td>{{{homepage|}}}</td> <td>{{{budget|}}}</td> <td>{{{openproject-id|}}}</td> <td>{{{department|}}}</td> <td>{{{title|}}}</td> <td>{{{milestone|}}}</td> <td>{{{type|}}}</td> <td>{{{team-external|}}}</td> <td>{{{tag|}}}</td> <td>{{{phase|}}}</td> <td>{{{target-group|}}}</td> <td>{{{picture|}}}</td> <td>{{{topic|}}}</td> <td>{{{closed-date|}}}</td> <td>{{{partners|}}}</td> <td>{{{toggl-id|}}}</td> <td>{{{status|}}}</td> <td>{{{description|}}}</td> <td>{{{end|}}}</td> <td>{{{active|}}}</td> <td>{{{team-internal|}}}</td> <td>{{{short-title|}}}</td> <td>{{{closed|}}}</td> <td>{{{strategic-objective|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-project-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:project |heading={{int:semorg-project-page-name}} |formlink={{#semorg-forminput:project}} |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-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['project'] = [ "id" => "PJ","fields" => ["contact-person" => [ "id" => "CP","type" => "wpg" ],"outlook" => [ "id" => "OL","type" => "txt" ],"start" => [ "id" => "ST","type" => "dat" ],"homepage" => [ "id" => "HO","type" => "uri" ],"budget" => [ "id" => "BU","type" => "num" ],"openproject-id" => [ "id" => "OP","type" => "num" ],"department" => [ "id" => "DP","type" => "wpg" ],"title" => [ "id" => "TT","type" => "txt" ],"milestone" => [ "id" => "MI","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ],"team-external" => [ "id" => "TE","type" => "wpg" ],"tag" => [ "id" => "TA","type" => "txt" ],"phase" => [ "id" => "PH","type" => "txt" ],"target-group" => [ "id" => "TG","type" => "wpg" ],"picture" => [ "id" => "PI","type" => "wpg" ],"topic" => [ "id" => "TP","type" => "wpg" ],"closed-date" => [ "id" => "CLD","type" => "dat" ],"partners" => [ "id" => "PA","type" => "" ],"toggl-id" => [ "id" => "TO","type" => "num" ],"status" => [ "id" => "SU","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ],"end" => [ "id" => "EN","type" => "dat" ],"active" => [ "id" => "AC","type" => "boo" ],"team-internal" => [ "id" => "TI","type" => "wpg" ],"short-title" => [ "id" => "SH","type" => "txt" ],"closed" => [ "id" => "CL","type" => "boo" ],"strategic-objective" => [ "id" => "SO","type" => "txt" ], ] ];