Knowledge

From SemanticOrganization
Jump to: navigation, search


Messages

"semorg-knowledge-template": "semorg-knowledge",
"semorg-knowledge-category": "semorg-knowledge",
"semorg-knowledge-form": "semorg-knowledge",
"semorg-knowledge-page-name": "Knowlegde database",
"semorg-knowledge-entity-name": "Knowledge",
"semorg-form-knowledge-create-title": "Create Knowledge",
"semorg-form-knowledge-edit-title": "Edit Knowledge", 
"semorg-form-knowledge-page-name": "Knowledge",
"semorg-forminput-knowledge-placeholder": "Name of knowledge database entry",
"semorg-form-knowledge-template": "knowledge",
"semorg-form-knowledge-rows": "title,summary,role",
"semorg-list-knowledge-headers": "knowledge-title,knowledge-summary,knowledge-role",
"semorg-field-knowledge-archived-name": "", 
"semorg-field-knowledge-archived-parameters": "",
"semorg-field-knowledge-checked-name": "Checked", 
"semorg-field-knowledge-checked-parameters": "",
"semorg-field-knowledge-role-name": "Responsible role", 
"semorg-field-knowledge-role-parameters": "input type=combobox|values from category=semorg-role|mapping property=semorg-role-name",
"semorg-field-knowledge-summary-name": "Summary", 
"semorg-field-knowledge-summary-parameters": "input type=textarea|cols=60|autogrow|rows=2",
"semorg-field-knowledge-tag-name": "Tags", 
"semorg-field-knowledge-tag-parameters": "input type=tokens|values from property=semorg-knowledge-tag",
"semorg-field-knowledge-title-name": "Title", 
"semorg-field-knowledge-title-parameters": "",
"semorg-field-knowledge-up-to-date-date-name": "Last Check", 
"semorg-field-knowledge-up-to-date-date-parameters": "",
"semorg-field-knowledge-up-to-date-person-name": "", 
"semorg-field-knowledge-up-to-date-person-parameters": "",

Form

Form:Semorg-knowledge

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

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

Category

Category:Semorg-knowledge

{{semorg-category}}

Template

Template:Semorg-knowledge

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-knowledge-category}}]]{{#semorg-set:knowledge 
  |archived={{{archived|}}} 
  |up-to-date-date={{{up-to-date-date|}}} 
  |title={{{title|}}} 
  |checked={{{checked|}}} 
  |summary={{{summary|}}} 
  |up-to-date-person={{{up-to-date-person|}}} 
  |role={{{role|}}} 
  |tag={{{tag|}}}
}}{{#semorg-detail:knowledge}}{{#semorg-table:knowledge 
  |archived={{{archived|}}} 
  |up-to-date-date={{{up-to-date-date|}}} 
  |title={{{title|}}} 
  |checked={{{checked|}}} 
  |summary={{{summary|}}} 
  |up-to-date-person={{{up-to-date-person|}}} 
  |role={{{role|}}} 
  |tag={{{tag|}}}
}}</includeonly>

Row Template

Template:Semorg-knowledge-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{archived|}}}</td> 
<td>{{{up-to-date-date|}}}</td> 
<td>{{{title|}}}</td> 
<td>{{{checked|}}}</td> 
<td>{{{summary|}}}</td> 
<td>{{{up-to-date-person|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{tag|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-knowledge-overview

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

Knowlegde database

{{semorg-knowledge-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['knowledge'] = [ "id" => "KN","fields" => ["archived" => [ "id" => "AR","type" => "boo" ],"up-to-date-date" => [ "id" => "UD","type" => "dat" ],"title" => [ "id" => "TI","type" => "txt" ],"checked" => [ "id" => "CH","type" => "boo" ],"summary" => [ "id" => "SU","type" => "txt" ],"up-to-date-person" => [ "id" => "UP","type" => "wpg" ],"role" => [ "id" => "RO","type" => "wpg" ],"tag" => [ "id" => "TA","type" => "txt" ], ] ];