Hub-additional-service

From SmartHubs
Revision as of 07:21, 5 August 2021 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=HAS |form-add-button-text=Add Additional Service |form-unique-number=No |list-headers=hub-additional-service-service |template-fields={{semorg-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-form-hub-additional-service-add-button-text": "Add Additional Service",

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

Form

Form:Semorg-hub-additional-service

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

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

Category

Category:Semorg-hub-additional-service

{{semorg-category}}

Template

Template:Semorg-hub-additional-service

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

Row Template

Template:Semorg-hub-additional-service-row

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

Overview Page Template

Template:Semorg-hub-additional-service-overview

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

Property Registration

Add the following line to LocalSettings.php:

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