Difference between revisions of "Hub-actor"
From SmartHubs
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
− | |template-id= | + | |template-id=HA |
|form-unique-number=No | |form-unique-number=No | ||
|list-headers=living-lab-actor-actor,living-lab-actor-role,living-lab-actor-description | |list-headers=living-lab-actor-actor,living-lab-actor-role,living-lab-actor-description | ||
Line 9: | Line 9: | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
− | |id= | + | |id=hub |
− | |property-id= | + | |property-id=HU |
− | |name= | + | |name=Hub |
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field |
Latest revision as of 12:44, 13 October 2021
Messages
"semorg-hub-actor-template": "semorg-hub-actor",
"semorg-hub-actor-category": "semorg-hub-actor",
"semorg-hub-actor-form": "semorg-hub-actor",
"semorg-form-hub-actor-create-title": "Create Hub-actor",
"semorg-form-hub-actor-edit-title": "Edit Hub-actor",
"semorg-form-hub-actor-template": "hub-actor",
"semorg-form-hub-actor-rows": "hub, actor, role, description",
"semorg-list-hub-actor-headers": "living-lab-actor-actor,living-lab-actor-role,living-lab-actor-description",
"semorg-field-hub-actor-hub-name": "Hub",
"semorg-field-hub-actor-hub-parameters": "",
"semorg-field-hub-actor-actor-name": "Actor",
"semorg-field-hub-actor-actor-parameters": "",
"semorg-field-hub-actor-role-name": "Role",
"semorg-field-hub-actor-role-parameters": "input type=combobox|existing values only|values=Research Institution|Public Administration|Public Institution|Provider|Operator",
"semorg-field-hub-actor-description-name": "Description",
"semorg-field-hub-actor-description-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-hub-actor-create-title}} |edit title={{int:semorg-form-hub-actor-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|hub-actor}} {{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-actor|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-hub-actor-category}}]]{{#semorg-set:hub-actor |hub={{{hub|}}} |actor={{{actor|}}} |role={{{role|}}} |description={{{description|}}} }}{{#semorg-detail:hub-actor}}{{#semorg-table:hub-actor |hub={{{hub|}}} |actor={{{actor|}}} |role={{{role|}}} |description={{{description|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{hub|}}}</td> <td>{{{actor|}}}</td> <td>{{{role|}}}</td> <td>{{{description|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-hub-actor-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:hub-actor |heading={{int:semorg-hub-actor-page-name}} |formlink={{#semorg-forminput:hub-actor}} |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-actor-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['hub-actor'] = [ "id" => "HA","fields" => ["hub" => [ "id" => "HU","type" => "wpg" ],"actor" => [ "id" => "AC","type" => "wpg" ],"role" => [ "id" => "RO","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];