Process: Difference between revisions
From SemanticOrganization
m (Text replacement - "|field-id=" to "|id=") |
m (Text replacement - "|field-" to "|") |
||
Line 3: | Line 3: | ||
|template-fields={{Semorg-generator-field | |template-fields={{Semorg-generator-field | ||
|id=title | |id=title | ||
| | |property-id=TI | ||
| | |name=Titel | ||
| | |type=txt | ||
| | |parameters=input type=text,size=60 | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=description | |id=description | ||
| | |property-id=DE | ||
| | |name=Beschreibung | ||
| | |type=txt | ||
| | |parameters=input type=textarea,autogrow,rows=1,columns=80 | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=owner | |id=owner | ||
| | |property-id=OW | ||
| | |name=Prozessverantwortung | ||
| | |type=wpg | ||
| | |parameters=input type=combobox,values from property=semorg-person,mapping property=Semorg-person-name | ||
}}{{Semorg-generator-field | }}{{Semorg-generator-field | ||
|id=visualization | |id=visualization | ||
| | |property-id=VI | ||
| | |name=Visualisierung | ||
| | |type=wpg | ||
| | |parameters=uploadable,values from namespace=File | ||
}} | }} | ||
}} | }} |
Latest revision as of 14:24, 22 November 2018
Messages
"semorg-process-template": "semorg-process", "semorg-process-category": "semorg-process", "semorg-process-form": "semorg-process", "semorg-form-process-create-title": "Create Process", "semorg-form-process-edit-title": "Edit Process", "semorg-form-process-template": "process", "semorg-form-process-rows": "owner, visualization, title, description", "semorg-list-process-headers": "process-owner, process-visualization, process-title, process-description", "semorg-field-process-description-name": "Beschreibung", "semorg-field-process-description-parameters": "input type=textarea|autogrow|rows=1|columns=80", "semorg-field-process-owner-name": "Prozessverantwortung", "semorg-field-process-owner-parameters": "input type=combobox|values from property=semorg-person|mapping property=Semorg-person-name", "semorg-field-process-title-name": "Titel", "semorg-field-process-title-parameters": "input type=text|size=60", "semorg-field-process-visualization-name": "Visualisierung", "semorg-field-process-visualization-parameters": "uploadable|values from namespace=File",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-process-create-title}} |edit title={{int:semorg-form-process-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|process}} {{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|process|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-process-category}}]]{{#semorg-set:process |owner={{{owner|}}} |visualization={{{visualization|}}} |title={{{title|}}} |description={{{description|}}} }}{{#semorg-detail:process}}{{#semorg-table:process |owner={{{owner|}}} |visualization={{{visualization|}}} |title={{{title|}}} |description={{{description|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{owner|}}}</td> <td>{{{visualization|}}}</td> <td>{{{title|}}}</td> <td>{{{description|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-process-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:process |heading={{int:semorg-process-page-name}} |formlink={{#semorg-forminput:process}} |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-process-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['process'] = [ "id" => "PS","fields" => ["owner" => [ "id" => "OW","type" => "wpg" ],"visualization" => [ "id" => "VI","type" => "wpg" ],"title" => [ "id" => "TI","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];