Department
From SemanticOrganization
Messages
"semorg-department-template": "semorg-department",
"semorg-department-category": "semorg-department",
"semorg-department-form": "semorg-department",
"semorg-form-department-create-title": "Create Geschäftsfeld",
"semorg-form-department-edit-title": "Edit Geschäftsfeld",
"semorg-form-department-page-name": "Geschäftsfelder",
"semorg-form-department-template": "department",
"semorg-form-department-rows": "name",
"semorg-list-department-headers": "department-description, department-name",
"semorg-field-department-description-name": "Description",
"semorg-field-department-description-parameters": "",
"semorg-field-department-name-name": "Name",
"semorg-field-department-name-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-department-create-title}}
|edit title={{int:semorg-form-department-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-department-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|department}}
{{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|department|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-department-category}}]]{{#semorg-set:department
|description={{{description|}}}
|name={{{name|}}}
}}{{#semorg-detail:department
|heading={{{name|}}}
}}{{#semorg-table:department
|description={{{description|}}}
|name={{{name|}}}
}}</includeonly>
Row Template
Template:Semorg-department-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{description|}}}</td>
<td>{{{name|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-department-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:department
|heading={{int:semorg-department-page-name}}
|formlink={{#semorg-formlink:department}}
|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-department-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['department'] = [ "id" => "DE","fields" => ["description" => [ "id" => "DE","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ], ] ];