Operator

From SmartHubs
Jump to: navigation, search


Messages

"semorg-form-operator-add-button-text": "Add Operator",

"semorg-form-operator-template": "operator",
"semorg-form-operator-rows": "name, hub, type, role",
"semorg-list-operator-headers": "operator-name, operator-hub, operator-type, operator-role",
"semorg-field-operator-name-name": "Name", 
"semorg-field-operator-name-parameters": "",
"semorg-field-operator-hub-name": "Hub", 
"semorg-field-operator-hub-parameters": "",
"semorg-field-operator-type-name": "Type", 
"semorg-field-operator-type-parameters": "",
"semorg-field-operator-role-name": "Role", 
"semorg-field-operator-role-parameters": "",

Form

Form:Semorg-operator

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

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

Category

Category:Semorg-operator

{{semorg-category}}

Template

Template:Semorg-operator

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-operator-category}}]]{{#semorg-set:operator 
  |name={{{name|}}} 
  |hub={{{hub|}}} 
  |type={{{type|}}} 
  |role={{{role|}}}
}}{{#semorg-detail:operator}}{{#semorg-table:operator 
  |name={{{name|}}} 
  |hub={{{hub|}}} 
  |type={{{type|}}} 
  |role={{{role|}}}
}}</includeonly>

Row Template

Template:Semorg-operator-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{name|}}}</td> 
<td>{{{hub|}}}</td> 
<td>{{{type|}}}</td> 
<td>{{{role|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-operator-overview

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

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['operator'] = [ "id" => "OP","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"hub" => [ "id" => "HU","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ],"role" => [ "id" => "RO","type" => "txt" ], ] ];