Service

From SmartHubs
Jump to: navigation, search


Messages

"semorg-service-template": "semorg-service",
"semorg-service-category": "semorg-service",
"semorg-service-form": "semorg-service",
"semorg-service-page-name": "Services",
"semorg-service-entity-name": "Service",
"semorg-form-service-create-title": "Create Service",
"semorg-form-service-edit-title": "Edit Service", 
"semorg-form-service-page-name": "Services",

"semorg-form-service-template": "service",
"semorg-form-service-rows": "name,category",
"semorg-list-service-headers": "mode-name,mode-category",
"semorg-field-service-name-name": "Name", 
"semorg-field-service-name-parameters": "mandatory",
"semorg-field-service-note-name": "", 
"semorg-field-service-note-parameters": "",
"semorg-field-service-category-name": "Category", 
"semorg-field-service-category-parameters": "values from category=semorg-service-category|mapping property=Semorg-service-category-name",
"semorg-field-service-icon-name": "", 
"semorg-field-service-icon-parameters": "",

Form

Form:Semorg-service

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-service-create-title}}
   |edit title={{int:semorg-form-service-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-service-page-name}}/<unique number;start=1>
}}}

{{semorg-form-template|service}}
 
{{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:Semorg-service

{{semorg-category}}

Template

Template:Semorg-service

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-service-category}}]]{{#semorg-set:service 
  |name={{{name|}}} 
  |note={{{note|}}} 
  |category={{{category|}}} 
  |icon={{{icon|}}}
}}{{#semorg-detail:service
  |heading={{{name}}}
}}{{#semorg-table:service 
  |name={{{name|}}} 
  |note={{{note|}}} 
  |category={{{category|}}} 
  |icon={{{icon|}}}
}}</includeonly>

Row Template

Template:Semorg-service-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{name|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{category|}}}</td> 
<td>{{{icon|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-service-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:service
  |heading={{int:semorg-service-page-name}}
  |formlink={{#semorg-formlink:service}}
  |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

Services

{{semorg-service-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['service'] = [ "id" => "SER","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"note" => [ "id" => "NO","type" => "txt" ],"category" => [ "id" => "CA","type" => "wpg" ],"icon" => [ "id" => "IC","type" => "txt" ], ] ];