Project-partner

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-project-partner-template": "semorg-project-partner",
"semorg-project-partner-category": "semorg-project-partner",
"semorg-project-partner-form": "semorg-project-partner",
"semorg-form-project-partner-create-title": "Create Project-partner",
"semorg-form-project-partner-edit-title": "Edit Project-partner",

"semorg-form-project-partner-template": "project-partner",
"semorg-form-project-partner-rows": "lead-partner, partner, role, project",
"semorg-list-project-partner-headers": "project-partner-lead-partner, project-partner-partner, project-partner-role, project-partner-project",
"semorg-field-project-partner-lead-partner-name": "Lead Partner", 
"semorg-field-project-partner-lead-partner-parameters": "input type=checkbox", 
"semorg-field-project-partner-lead-partner-suffix": "Lead Partner",
"semorg-field-project-partner-partner-name": "Partner", 
"semorg-field-project-partner-partner-fields": "input type=combobox,values from category=semorg-person-legal,mapping property=Semorg-person-name",
"semorg-field-project-partner-project-name": "Project", 
"semorg-field-project-partner-project-parameters": "",
"semorg-field-project-partner-role-name": "Role", 
"semorg-field-project-partner-role-parameters": "",

Form

Form:Semorg-project-partner

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-project-partner-create-title}}
   |edit title={{int:semorg-form-project-partner-edit-title}}<span class="d-none">: <page name></span>
   |page name=
}}}

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

Category

Category:Semorg-project-partner

{{semorg-category}}

Template

Template:Semorg-project-partner

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-partner-category}}]]{{#semorg-set:project-partner 
  |lead-partner={{{lead-partner|}}} 
  |partner={{{partner|}}} 
  |role={{{role|}}} 
  |project={{{project|}}}
}}{{#semorg-detail:project-partner}}{{#semorg-table:project-partner 
  |lead-partner={{{lead-partner|}}} 
  |partner={{{partner|}}} 
  |role={{{role|}}} 
  |project={{{project|}}}
}}</includeonly>

Row Template

Template:Semorg-project-partner-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{lead-partner|}}}</td> 
<td>{{{partner|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{project|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-project-partner-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['project-partner'] = [ "id" => "PP","fields" => ["lead-partner" => [ "id" => "LP","type" => "boo" ],"partner" => [ "id" => "PA","type" => "wpg" ],"role" => [ "id" => "RO","type" => "txt" ],"project" => [ "id" => "PR","type" => "wpg" ], ] ];