Project: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{semorg-generator
|template-id=PJ
|template-id=PJ
|form-titles=Projekt
|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
|field-id=title
|id=title
|field-property-id=TT
|property-id=TT
|field-type=txt
|type=txt
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=start
|id=short-title
|field-property-id=ST
|property-id=SH
|field-type=dat
|name=Short Title
}}{{Semorg-generator-field
|type=txt
|field-id=end
}}{{semorg-generator-field
|field-property-id=EN
|id=start
|field-type=dat
|property-id=ST
}}{{Semorg-generator-field
|type=dat
|field-id=contact-person
}}{{semorg-generator-field
|field-property-id=CP
|id=end
|field-type=wpg
|property-id=EN
}}{{Semorg-generator-field
|type=dat
|field-id=desc
}}{{semorg-generator-field
|field-property-id=DE
|id=contact-person
|field-type=txt
|property-id=CP
}}{{Semorg-generator-field
|type=wpg
|field-id=team-intern
}}{{semorg-generator-field
|field-property-id=TI
|id=description
|field-type=wpg
|property-id=DE
}}{{Semorg-generator-field
|type=txt
|field-id=team-extern
}}{{semorg-generator-field
|field-property-id=TE
|id=team-internal
|field-type=wpg
|property-id=TI
|type=wpg
}}{{semorg-generator-field
|id=team-external
|property-id=TE
|type=wpg
}}{{semorg-generator-field
|id=department
|property-id=DP
|name=Department
|type=wpg
}}{{semorg-generator-field
|id=milestone
|property-id=MI
|name=Milestone
|type=wpg
}}{{semorg-generator-field
|id=closed
|property-id=CL
|name=Closed
|type=boo
|suffix=closed
|parameters=input type=checkbox
}}{{semorg-generator-field
|id=closed-date
|property-id=CLD
|name=closed at
|prefix=closed at
|type=dat
}}{{semorg-generator-field
|id=budget
|property-id=BU
|name=Budget
|type=num
}}{{semorg-generator-field
|id=openproject-id
|property-id=OP
|name=OpenProject ID
|type=num
|parameters=size=10
}}{{semorg-generator-field
|id=toggl-id
|property-id=TO
|name=Toggl ID
|type=num
|parameters=size=10
}}{{semorg-generator-field
|id=target-group
|property-id=TG
|name=Target Group
|type=wpg
|parameters=input type=combobox,property=semorg-project-target-group
}}{{semorg-generator-field
|id=phase
|property-id=PH
|name=Phase
|type=txt
|parameters=input type=combobox,property=semorg-project-phase
}}{{semorg-generator-field
|id=strategic-objective
|property-id=SO
|name=Strategic Objective
|type=txt
|parameters=input type=combobx,property=semorg-project-strategic-objective
}}{{semorg-generator-field
|id=status
|property-id=SU
|name=Status
|type=txt
|parameters=input type=combobox,property=semorg-project-status
}}{{semorg-generator-field
|id=type
|property-id=TY
|name=Type
|type=txt
|parameters=input type=combobx,property=semorg-project-type
}}{{semorg-generator-field
|id=topic
|property-id=TP
|name=Topics
|type=wpg
|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=homepage
|property-id=HO
|name=Homepage
|type=uri
}}{{semorg-generator-field
|id=tag
|property-id=TA
|name=Tags
|type=txt
}}{{semorg-generator-field
|id=outlook
|property-id=OL
|name=Outlook
|type=txt
}}{{semorg-generator-field
|id=active
|property-id=AC
|name=active
|type=boo
}}{{semorg-generator-field
|id=picture
|property-id=PI
|name=Picture
|type=wpg
|size=50
|parameters=uploadable
}}{{semorg-generator-field
|id=description-long
|property-id=DEL
|name=Long Description
|type=txt
|input-type=textarea
|parameters=rows=2
}}
}}
}}
}}

Latest revision as of 14:17, 6 December 2024


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-description-long-name": "Long Description", 
"semorg-field-project-description-long-parameters": "rows=2", 
"semorg-field-project-description-long-input-type": "textarea",
"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

Form:Semorg-project

<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

Category:Semorg-project

{{semorg-category}}

Template

Template:Semorg-project

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-category}}]]{{#semorg-set:project 
  |description-long={{{description-long|}}} 
  |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 
  |description-long={{{description-long|}}} 
  |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

Template:Semorg-project-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{description-long|}}}</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" => ["description-long" => [ "id" => "DEL","type" => "txt" ],"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" ], ] ];