Living-lab: Difference between revisions
From Dreams Knowledge Platform
(Created page with "{{semorg-generator |template-id=LLD |entity-name=Living Lab |page-name=Living Labs |form-page-name=Living Labs |form-unique-number=Yes |rows=name,country,city,location,begin-date,end-date,participating-organizations,focus,description |list-headers=name,city,focus |template-fields={{semorg-generator-field |id=name |property-id=NM |name=Name |type=txt }}{{semorg-generator-field |id=country |property-id=CO |name=Country |type=txt }}{{semorg-generator-field |id=city |propert...") |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
|form-page-name=Living Labs | |form-page-name=Living Labs | ||
|form-unique-number=Yes | |form-unique-number=Yes | ||
|rows=name,country,city,location,begin-date,end-date,participating-organizations,focus,description | |rows=name,country,city,location,begin-date,end-date,participating-organizations,focus,description,interventions | ||
|list-headers=name,city,focus | |list-headers=living-lab-name,living-lab-city,living-lab-focus | ||
|template-fields={{semorg-generator-field | |template-fields={{semorg-generator-field | ||
|id=name | |id=name | ||
| Line 41: | Line 41: | ||
|input-type=datepicker | |input-type=datepicker | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=participating- | |id=participating-organizations | ||
|property-id=PO | |property-id=PO | ||
|name=Participating Organizations | |name=Participating Organizations | ||
|type=txt | |type=txt | ||
|input-type= | |input-type=textarea | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=focus | |id=focus | ||
| Line 61: | Line 60: | ||
|input-type=textarea | |input-type=textarea | ||
|parameters=rows=2 | |parameters=rows=2 | ||
}}{{semorg-generator-field | |||
|id=interventions | |||
|property-id=IV | |||
|name=Interventions | |||
|type=txt | |||
|input-type=textarea | |||
}} | }} | ||
}} | }} | ||
Latest revision as of 14:47, 18 January 2026
Messages
"semorg-living-lab-template": "semorg-living-lab", "semorg-living-lab-category": "semorg-living-lab", "semorg-living-lab-form": "semorg-living-lab", "semorg-living-lab-page-name": "Living Labs", "semorg-living-lab-entity-name": "Living Lab", "semorg-form-living-lab-create-title": "Create Living Lab", "semorg-form-living-lab-edit-title": "Edit Living Lab", "semorg-form-living-lab-page-name": "Living Labs", "semorg-form-living-lab-template": "living-lab", "semorg-form-living-lab-rows": "name,country,city,location,begin-date,end-date,participating-organizations,focus,description,interventions", "semorg-list-living-lab-headers": "living-lab-name,living-lab-city,living-lab-focus", "semorg-field-living-lab-begin-date-name": "Begin Date", "semorg-field-living-lab-begin-date-parameters": "", "semorg-field-living-lab-begin-date-input-type": "datepicker", "semorg-field-living-lab-city-name": "City", "semorg-field-living-lab-city-parameters": "", "semorg-field-living-lab-country-name": "Country", "semorg-field-living-lab-country-parameters": "", "semorg-field-living-lab-description-name": "Description", "semorg-field-living-lab-description-parameters": "rows=2", "semorg-field-living-lab-description-input-type": "textarea", "semorg-field-living-lab-end-date-name": "End Date", "semorg-field-living-lab-end-date-parameters": "", "semorg-field-living-lab-end-date-input-type": "datepicker", "semorg-field-living-lab-focus-name": "Focus", "semorg-field-living-lab-focus-parameters": "rows=2", "semorg-field-living-lab-focus-input-type": "textarea", "semorg-field-living-lab-interventions-name": "Interventions", "semorg-field-living-lab-interventions-parameters": "", "semorg-field-living-lab-interventions-input-type": "textarea", "semorg-field-living-lab-location-name": "Location", "semorg-field-living-lab-location-parameters": "", "semorg-field-living-lab-location-input-type": "leaflet", "semorg-field-living-lab-name-name": "Name", "semorg-field-living-lab-name-parameters": "", "semorg-field-living-lab-participating-organizations-name": "Participating Organizations", "semorg-field-living-lab-participating-organizations-parameters": "", "semorg-field-living-lab-participating-organizations-input-type": "textarea",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-living-lab-create-title}}
|edit title={{int:semorg-form-living-lab-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-living-lab-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|living-lab}}
{{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|living-lab|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-living-lab-category}}]]{{#semorg-set:living-lab
|participating-organizations={{{participating-organizations|}}}
|end-date={{{end-date|}}}
|name={{{name|}}}
|country={{{country|}}}
|interventions={{{interventions|}}}
|location={{{location|}}}
|begin-date={{{begin-date|}}}
|city={{{city|}}}
|focus={{{focus|}}}
|description={{{description|}}}
}}{{#semorg-detail:living-lab}}{{#semorg-table:living-lab
|participating-organizations={{{participating-organizations|}}}
|end-date={{{end-date|}}}
|name={{{name|}}}
|country={{{country|}}}
|interventions={{{interventions|}}}
|location={{{location|}}}
|begin-date={{{begin-date|}}}
|city={{{city|}}}
|focus={{{focus|}}}
|description={{{description|}}}
}}</includeonly>
Row Template
Template:Semorg-living-lab-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{participating-organizations|}}}</td>
<td>{{{end-date|}}}</td>
<td>{{{name|}}}</td>
<td>{{{country|}}}</td>
<td>{{{interventions|}}}</td>
<td>{{{location|}}}</td>
<td>{{{begin-date|}}}</td>
<td>{{{city|}}}</td>
<td>{{{focus|}}}</td>
<td>{{{description|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-living-lab-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:living-lab
|heading={{int:semorg-living-lab-page-name}}
|formlink={{#semorg-formlink:living-lab}}
|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-living-lab-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['living-lab'] = [ "id" => "LLD","fields" => ["participating-organizations" => [ "id" => "PO","type" => "txt" ],"end-date" => [ "id" => "ED","type" => "dat" ],"name" => [ "id" => "NM","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ],"interventions" => [ "id" => "IV","type" => "txt" ],"location" => [ "id" => "LO","type" => "geo" ],"begin-date" => [ "id" => "BD","type" => "dat" ],"city" => [ "id" => "CI","type" => "txt" ],"focus" => [ "id" => "FC","type" => "txt" ],"description" => [ "id" => "DC","type" => "txt" ], ] ];