Department: Difference between revisions
From SemanticOrganization
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=DE | |template-id=DE | ||
|form-page-name=Geschäftsfelder | |form-page-name=Geschäftsfelder | ||
|form-unique-number=Yes | |form-unique-number=Yes | ||
|display-title=<nowiki>{{{name|}}}</nowiki> | |display-title=<nowiki>{{{name|}}}</nowiki> | ||
|rows=name | |rows=name | ||
|template-fields={{semorg-generator-field | |||
|template-fields={{ | |id=name | ||
| | |property-id=NA | ||
| | |name=Name | ||
| | |type=txt | ||
|field-type=txt | }}{{semorg-generator-field | ||
|id=description | |||
|property-id=DE | |||
|name=Description | |||
|type=txt | |||
}} | }} | ||
|form-titles=Geschäftsfeld | |||
}} | }} |
Latest revision as of 19:49, 8 March 2021
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" ], ] ];