Project: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
Line 145: Line 145:
|size=50
|size=50
|parameters=uploadable
|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" ], ] ];