Difference between revisions of "Network"
From SmartHubs
m (Admin moved page Provider to MH-Project without leaving a redirect) |
|||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id=PRO | |template-id=PRO | ||
− | |page-name= | + | |page-name=Projects |
|entity-name=Provider | |entity-name=Provider | ||
|form-page-name=Providers | |form-page-name=Providers |
Revision as of 08:41, 28 June 2021
Messages
"semorg-network-template": "semorg-network",
"semorg-network-category": "semorg-network",
"semorg-network-form": "semorg-network",
"semorg-network-page-name": "Projects",
"semorg-network-entity-name": "Provider",
"semorg-form-network-create-title": "Create Provider",
"semorg-form-network-edit-title": "Edit Provider",
"semorg-form-network-page-name": "Providers",
"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
<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
{{semorg-category}}
Template
<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
<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
{{semorg-network-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['network'] = [ "id" => "PRO","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" ], ] ];