Hub-service

From SmartHubs
Revision as of 07:21, 5 August 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-form-hub-service-add-button-text": "Add Mobility-related Service",

"semorg-form-hub-service-template": "hub-service",
"semorg-form-hub-service-rows": "number-users, service, hub, note, status",
"semorg-list-hub-service-headers": "hub-service-service",
"semorg-field-hub-service-number-users-name": "Number of Users", 
"semorg-field-hub-service-number-users-parameters": "",
"semorg-field-hub-service-service-name": "Service", 
"semorg-field-hub-service-service-parameters": "",
"semorg-field-hub-service-hub-name": "Hub", 
"semorg-field-hub-service-hub-parameters": "",
"semorg-field-hub-service-note-name": "Note", 
"semorg-field-hub-service-note-parameters": "",
"semorg-field-hub-service-status-name": "Status", 
"semorg-field-hub-service-status-parameters": "",

Form

Form:Semorg-hub-service

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

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

Category

Category:Semorg-hub-service

{{semorg-category}}

Template

Template:Semorg-hub-service

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-hub-service-category}}]]{{#semorg-set:hub-service 
  |number-users={{{number-users|}}} 
  |service={{{service|}}} 
  |hub={{{hub|}}} 
  |note={{{note|}}} 
  |status={{{status|}}}
}}{{#semorg-detail:hub-service}}{{#semorg-table:hub-service 
  |number-users={{{number-users|}}} 
  |service={{{service|}}} 
  |hub={{{hub|}}} 
  |note={{{note|}}} 
  |status={{{status|}}}
}}</includeonly>

Row Template

Template:Semorg-hub-service-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{number-users|}}}</td> 
<td>{{{service|}}}</td> 
<td>{{{hub|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{status|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-hub-service-overview

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

[[]]

{{semorg-hub-service-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['hub-service'] = [ "id" => "HS","fields" => ["number-users" => [ "id" => "NU","type" => "num" ],"service" => [ "id" => "SE","type" => "wpg" ],"hub" => [ "id" => "HU","type" => "wpg" ],"note" => [ "id" => "NO","type" => "txt" ],"status" => [ "id" => "ST","type" => "txt" ], ] ];