Network

From SmartHubs
Revision as of 10:34, 29 September 2021 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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" ], ] ];