Project-update

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-project-update-template": "semorg-project-update",
"semorg-project-update-category": "semorg-project-update",
"semorg-project-update-form": "semorg-project-update",
"semorg-project-update-page-name": "Project Updates",
"semorg-project-update-entity-name": "Project Update",
"semorg-form-project-update-create-title": "Create Project Update",
"semorg-form-project-update-edit-title": "Edit Project Update", 
"semorg-form-project-update-page-name": "Project Updates",

"semorg-form-project-update-template": "",
"semorg-form-project-update-rows": "project,date,author,update",
"semorg-list-project-update-headers": "project-update-project,project-update-date,project-update-author,project-update-update",
"semorg-field-project-update-author-name": "Author", 
"semorg-field-project-update-author-parameters": "input type=combobox|values form category=semorg-person|mapping property=Semorg-person-name",
"semorg-field-project-update-date-name": "Date", 
"semorg-field-project-update-date-parameters": "input type=datepicker|size=10",
"semorg-field-project-update-project-name": "Project", 
"semorg-field-project-update-project-parameters": "input type=combobox|values from category=semorg-project|existing values only",
"semorg-field-project-update-update-name": "Update", 
"semorg-field-project-update-update-parameters": "input type=textarea|rows=1|cols=60|autogrow",

Form

Form:Semorg-project-update

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-project-update-create-title}}
   |edit title={{int:semorg-form-project-update-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-project-update-page-name}}/<unique number;start=1>
}}}

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

Category

Category:Semorg-project-update

{{semorg-category}}

Template

Template:Semorg-project-update

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-update-category}}]]{{#semorg-set:project-update 
  |update={{{update|}}} 
  |date={{{date|}}} 
  |author={{{author|}}} 
  |project={{{project|}}}
}}{{#semorg-detail:project-update}}{{#semorg-table:project-update 
  |update={{{update|}}} 
  |date={{{date|}}} 
  |author={{{author|}}} 
  |project={{{project|}}}
}}</includeonly>

Row Template

Template:Semorg-project-update-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{update|}}}</td> 
<td>{{{date|}}}</td> 
<td>{{{author|}}}</td> 
<td>{{{project|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-project-update-overview

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

Project Updates

{{semorg-project-update-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['project-update'] = [ "id" => "PU","fields" => ["update" => [ "id" => "UP","type" => "txt" ],"date" => [ "id" => "DA","type" => "dat" ],"author" => [ "id" => "AU","type" => "wpg" ],"project" => [ "id" => "PR","type" => "wpg" ], ] ];