Knowledge: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Semorg-generator
{{semorg-generator
|template-id=KN
|template-id=KN
|entity-name=Knowledge
|page-name=Knowlegde database
|page-name=Knowlegde database
|entity-name=Knowledge
|form-page-name=Knowledge
|form-unique-number=No
|form-unique-number=Yes
|placeholder=Name of knowledge database entry
|placeholder=Name of knowledge database entry
|rows=title,summary,role
|rows=title,summary,role
Line 9: Line 10:
|template-fields={{semorg-generator-field
|template-fields={{semorg-generator-field
|id=title
|id=title
|property-id=TI
|name=Title
|name=Title
|type=txt
}}{{semorg-generator-field
}}{{semorg-generator-field
|id=summary
|id=summary
Line 33: Line 36:
|name=Last Check
|name=Last Check
|type=dat
|type=dat
}}{{semorg-generator-field
|id=up-to-date-person
|property-id=UP
|type=wpg
}}{{semorg-generator-field
|id=checked
|property-id=CH
|name=Checked
|type=boo
}}{{semorg-generator-field
|id=archived
|property-id=AR
|type=boo
}}
}}
}}
}}

Latest revision as of 13:57, 28 December 2022


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" ], ] ];