Living-lab

From Dreams Knowledge Platform
Revision as of 14:26, 26 February 2025 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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",
"semorg-list-living-lab-headers": "name,city,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-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-organization-name": "Participating Organizations", 
"semorg-field-living-lab-participating-organization-parameters": "values from property=semorg-living-lab-participating-organization", 
"semorg-field-living-lab-participating-organization-input-type": "tokens",

Form

Form:Semorg-living-lab

<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

Category:Semorg-living-lab

{{semorg-category}}

Template

Template:Semorg-living-lab

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-living-lab-category}}]]{{#semorg-set:living-lab 
  |end-date={{{end-date|}}} 
  |name={{{name|}}} 
  |country={{{country|}}} 
  |participating-organization={{{participating-organization|}}} 
  |location={{{location|}}} 
  |begin-date={{{begin-date|}}} 
  |city={{{city|}}} 
  |focus={{{focus|}}} 
  |description={{{description|}}}
}}{{#semorg-detail:living-lab}}{{#semorg-table:living-lab 
  |end-date={{{end-date|}}} 
  |name={{{name|}}} 
  |country={{{country|}}} 
  |participating-organization={{{participating-organization|}}} 
  |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>{{{end-date|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{country|}}}</td> 
<td>{{{participating-organization|}}}</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

Living Labs

{{semorg-living-lab-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['living-lab'] = [ "id" => "LLD","fields" => ["end-date" => [ "id" => "ED","type" => "dat" ],"name" => [ "id" => "NM","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ],"participating-organization" => [ "id" => "PO","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" ], ] ];