Knowledge: Difference between revisions
From SemanticOrganization
(Created page with "{{Semorg-generator |template-id=MA |page-name=Manuals |entity-name=Manual |form-unique-number=No |placeholder=Name of manual entry |rows=title,summary,role |list-headers=manua...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id= | |template-id=KN | ||
|page-name= | |page-name=Knowlegde database | ||
|entity-name= | |entity-name=Knowledge | ||
|form-unique-number=No | |form-unique-number=No | ||
|placeholder=Name of | |placeholder=Name of knowledge database entry | ||
|rows=title,summary,role | |rows=title,summary,role | ||
|list-headers= | |list-headers=knowledge-title,knowledge-summary,knowledge-role | ||
|template-fields={{semorg-generator-field | |template-fields={{semorg-generator-field | ||
|id=title | |id=title | ||
Line 27: | Line 27: | ||
|name=Tags | |name=Tags | ||
|type=txt | |type=txt | ||
|parameters=input type=tokens,values from property=semorg- | |parameters=input type=tokens,values from property=semorg-knowledge-tag | ||
}} | }} | ||
}} | }} |
Revision as of 15:52, 13 June 2019
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-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
<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= }}} {{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
{{semorg-category}}
Template
<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
<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-forminput: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
{{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" ], ] ];