Hub-mode

From SmartHubs
Revision as of 19:23, 3 August 2021 by Admin (talk | contribs) (Created page with "{{Semorg-generator |template-id=HM |form-add-button-text=Add Mode |form-unique-number=No |list-headers=hub-mode-mode,hub-mode-provider |template-fields={{semorg-generator-fiel...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Messages

"semorg-form-hub-mode-add-button-text": "Add Mode",

"semorg-form-hub-mode-template": "hub-mode",
"semorg-form-hub-mode-rows": "number-users, status, hub, number-rides, provider, mode, electrified, note",
"semorg-list-hub-mode-headers": "hub-mode-mode,hub-mode-provider",
"semorg-field-hub-mode-number-users-name": "Number of Users", 
"semorg-field-hub-mode-number-users-parameters": "",
"semorg-field-hub-mode-status-name": "Status", 
"semorg-field-hub-mode-status-parameters": "",
"semorg-field-hub-mode-hub-name": "Hub", 
"semorg-field-hub-mode-hub-parameters": "",
"semorg-field-hub-mode-number-rides-name": "Number of Rides", 
"semorg-field-hub-mode-number-rides-parameters": "",
"semorg-field-hub-mode-provider-name": "Provider", 
"semorg-field-hub-mode-provider-parameters": "",
"semorg-field-hub-mode-mode-name": "Mode", 
"semorg-field-hub-mode-mode-parameters": "",
"semorg-field-hub-mode-electrified-name": "electrified?", 
"semorg-field-hub-mode-electrified-parameters": "",
"semorg-field-hub-mode-note-name": "", 
"semorg-field-hub-mode-note-parameters": "",

Form

Form:Semorg-hub-mode

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

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

Category

Category:Semorg-hub-mode

{{semorg-category}}

Template

Template:Semorg-hub-mode

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

Row Template

Template:Semorg-hub-mode-row

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

Overview Page Template

Template:Semorg-hub-mode-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['hub-mode'] = [ "id" => "HM","fields" => ["number-users" => [ "id" => "NU","type" => "num" ],"status" => [ "id" => "ST","type" => "txt" ],"hub" => [ "id" => "HU","type" => "wpg" ],"number-rides" => [ "id" => "NR","type" => "num" ],"provider" => [ "id" => "PR","type" => "wpg" ],"mode" => [ "id" => "MO","type" => "wpg" ],"electrified" => [ "id" => "EL","type" => "txt" ],"note" => [ "id" => "NO","type" => "txt" ], ] ];