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