Difference between revisions of "Network"

From SmartHubs
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=PR |page-name=Providers |entity-name=Provider |form-page-name=Providers |form-unique-number=Yes |display-title=<nowiki>{{{name|}}}</nowiki> |li...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Semorg-generator
 
{{Semorg-generator
|template-id=PR
+
|template-id=NE
|page-name=Providers
+
|page-name=Networks
|entity-name=Provider
+
|entity-name=Project
|form-page-name=Providers
+
|form-page-name=Projects
 
|form-unique-number=Yes
 
|form-unique-number=Yes
 
|display-title=<nowiki>{{{name|}}}</nowiki>
 
|display-title=<nowiki>{{{name|}}}</nowiki>
Line 13: Line 13:
 
|type=txt
 
|type=txt
 
|parameters=mandatory
 
|parameters=mandatory
}}{{semorg-generator-field
 
|id=living-lab
 
|property-id=LL
 
|name=Living Lab
 
|type=wpg
 
|parameters=values from category=semorg-living-lab,mapping property=semorg-living-lab-name
 
}}{{semorg-generator-field
 
|id=responsible-partner
 
|property-id=RP
 
|name=Responsible Partner
 
|type=wpg
 
|parameters=values from category=semorg-partner,mapping property=Semorg-partner-name
 
 
}}{{semorg-generator-field
 
}}{{semorg-generator-field
 
|id=website
 
|id=website
Line 40: Line 28:
 
|property-id=CI
 
|property-id=CI
 
|name=City
 
|name=City
|type=txt
 
}}{{semorg-generator-field
 
|id=region
 
|property-id=RE
 
|name=Region
 
|type=txt
 
}}{{semorg-generator-field
 
|id=nuts-3
 
|property-id=NU
 
|name=Nuts-3
 
|type=txt
 
}}{{semorg-generator-field
 
|id=lau-2
 
|property-id=LA
 
|name=Lau-2
 
 
|type=txt
 
|type=txt
 
}}{{semorg-generator-field
 
}}{{semorg-generator-field
Line 63: Line 36:
 
|parameters=values from property=semorg-provider-country
 
|parameters=values from property=semorg-provider-country
 
}}{{semorg-generator-field
 
}}{{semorg-generator-field
|id=network
+
|id=project-research
|property-id=NE
+
|property-id=PRR
|name=Network
+
|name=Research Projects
 
|type=wpg
 
|type=wpg
|parameters=values from category=semorg-network,mapping property=semorg-network-name
 
}}{{semorg-generator-field
 
|id=operation-start
 
|property-id=OS
 
|name=Operation Start
 
|type=dat
 
|parameters=datepicker
 
}}{{semorg-generator-field
 
|id=grey-literature-1
 
|property-id=G1
 
|name=Grey literature priority 1
 
|type=txt
 
|parameters=textarea
 
}}{{semorg-generator-field
 
|id=grey-literature-2
 
|property-id=G2
 
|name=Grey literature priority 2
 
|type=txt
 
|parameters=textarea
 
}}{{semorg-generator-field
 
|id=grey-literature-3
 
|property-id=G3
 
|name=Grey literature priority 3
 
|type=txt
 
|parameters=textarea
 
 
}}
 
}}
 
}}
 
}}

Latest revision as of 10:34, 29 September 2021


Messages

"semorg-network-template": "semorg-network",
"semorg-network-category": "semorg-network",
"semorg-network-form": "semorg-network",
"semorg-network-page-name": "Networks",
"semorg-network-entity-name": "Project",
"semorg-form-network-create-title": "Create Project",
"semorg-form-network-edit-title": "Edit Project", 
"semorg-form-network-page-name": "Projects",

"semorg-form-network-template": "network",
"semorg-form-network-rows": "city, project-research, description, website, name, country",
"semorg-list-network-headers": "provider-name,provider-city,provider-network",
"semorg-field-network-city-name": "City", 
"semorg-field-network-city-parameters": "",
"semorg-field-network-project-research-name": "Research Projects", 
"semorg-field-network-project-research-parameters": "",
"semorg-field-network-description-name": "Description", 
"semorg-field-network-description-parameters": "textarea",
"semorg-field-network-website-name": "Website", 
"semorg-field-network-website-parameters": "",
"semorg-field-network-name-name": "Name", 
"semorg-field-network-name-parameters": "mandatory",
"semorg-field-network-country-name": "Country", 
"semorg-field-network-country-parameters": "values from property=semorg-provider-country",

Form

Form:Semorg-network

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-network-create-title}}
   |edit title={{int:semorg-form-network-edit-title}}<span class="d-none">: <page name></span>
   |page name={{int:semorg-form-network-page-name}}/<unique number;start=1>
}}}

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

Category

Category:Semorg-network

{{semorg-category}}

Template

Template:Semorg-network

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-network-category}}]]{{#semorg-set:network 
  |city={{{city|}}} 
  |project-research={{{project-research|}}} 
  |description={{{description|}}} 
  |website={{{website|}}} 
  |name={{{name|}}} 
  |country={{{country|}}}
}}{{#semorg-detail:network
  |heading={{{name|}}}
}}{{#semorg-table:network 
  |city={{{city|}}} 
  |project-research={{{project-research|}}} 
  |description={{{description|}}} 
  |website={{{website|}}} 
  |name={{{name|}}} 
  |country={{{country|}}}
}}</includeonly>

Row Template

Template:Semorg-network-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{city|}}}</td> 
<td>{{{project-research|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{website|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{country|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-network-overview

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

Networks

{{semorg-network-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['network'] = [ "id" => "NE","fields" => ["city" => [ "id" => "CI","type" => "txt" ],"project-research" => [ "id" => "PRR","type" => "wpg" ],"description" => [ "id" => "DE","type" => "txt" ],"website" => [ "id" => "WE","type" => "uri" ],"name" => [ "id" => "NA","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ], ] ];