Difference between revisions of "Partner"

From SmartHubs
Jump to: navigation, search
Line 15: Line 15:
 
|id=short-name
 
|id=short-name
 
|property-id=SN
 
|property-id=SN
 +
|type=txt
 +
}}{{semorg-generator-field
 +
|id=hub
 +
|property-id=HU
 +
|name=Hubs
 +
|type=wpg
 +
}}{{semorg-generator-field
 +
|id=role
 +
|property-id=RO
 +
|name=Role
 +
|type=txt
 +
}}{{semorg-generator-field
 +
|id=role-description
 +
|property-id=RD
 
|type=txt
 
|type=txt
 
}}{{semorg-generator-field
 
}}{{semorg-generator-field

Revision as of 15:04, 13 October 2021


Messages

"semorg-partner-template": "semorg-partner",
"semorg-partner-category": "semorg-partner",
"semorg-partner-form": "semorg-partner",
"semorg-partner-page-name": "Partners",
"semorg-partner-entity-name": "Partner",
"semorg-form-partner-create-title": "Create Partner",
"semorg-form-partner-edit-title": "Edit Partner", 
"semorg-form-partner-page-name": "Partners",

"semorg-form-partner-template": "partner",
"semorg-form-partner-rows": "name",
"semorg-list-partner-headers": "partner-name",
"semorg-field-partner-country-responsibility-name": "Country Responsibility", 
"semorg-field-partner-country-responsibility-parameters": "",
"semorg-field-partner-role-description-name": "", 
"semorg-field-partner-role-description-parameters": "",
"semorg-field-partner-hub-name": "Hubs", 
"semorg-field-partner-hub-parameters": "",
"semorg-field-partner-editor-name": "", 
"semorg-field-partner-editor-parameters": "",
"semorg-field-partner-website-name": "", 
"semorg-field-partner-website-parameters": "",
"semorg-field-partner-name-name": "Name", 
"semorg-field-partner-name-parameters": "",
"semorg-field-partner-country-name": "", 
"semorg-field-partner-country-parameters": "",
"semorg-field-partner-short-name-name": "", 
"semorg-field-partner-short-name-parameters": "",
"semorg-field-partner-role-name": "Role", 
"semorg-field-partner-role-parameters": "",
"semorg-field-partner-description-name": "", 
"semorg-field-partner-description-parameters": "",
"semorg-field-partner-city-name": "", 
"semorg-field-partner-city-parameters": "",

Form

Form:Semorg-partner

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

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

Category

Category:Semorg-partner

{{semorg-category}}

Template

Template:Semorg-partner

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-partner-category}}]]{{#semorg-set:partner 
  |country-responsibility={{{country-responsibility|}}} 
  |role-description={{{role-description|}}} 
  |hub={{{hub|}}} 
  |editor={{{editor|}}} 
  |website={{{website|}}} 
  |name={{{name|}}} 
  |country={{{country|}}} 
  |short-name={{{short-name|}}} 
  |role={{{role|}}} 
  |description={{{description|}}} 
  |city={{{city|}}}
}}{{#semorg-detail:partner}}{{#semorg-table:partner 
  |country-responsibility={{{country-responsibility|}}} 
  |role-description={{{role-description|}}} 
  |hub={{{hub|}}} 
  |editor={{{editor|}}} 
  |website={{{website|}}} 
  |name={{{name|}}} 
  |country={{{country|}}} 
  |short-name={{{short-name|}}} 
  |role={{{role|}}} 
  |description={{{description|}}} 
  |city={{{city|}}}
}}</includeonly>

Row Template

Template:Semorg-partner-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{country-responsibility|}}}</td> 
<td>{{{role-description|}}}</td> 
<td>{{{hub|}}}</td> 
<td>{{{editor|}}}</td> 
<td>{{{website|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{country|}}}</td> 
<td>{{{short-name|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{description|}}}</td> 
<td>{{{city|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-partner-overview

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

Partners

{{semorg-partner-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['partner'] = [ "id" => "PAR","fields" => ["country-responsibility" => [ "id" => "CR","type" => "txt" ],"role-description" => [ "id" => "RD","type" => "txt" ],"hub" => [ "id" => "HU","type" => "wpg" ],"editor" => [ "id" => "ED","type" => "wpg" ],"website" => [ "id" => "WE","type" => "uri" ],"name" => [ "id" => "NA","type" => "txt" ],"country" => [ "id" => "CO","type" => "txt" ],"short-name" => [ "id" => "SN","type" => "txt" ],"role" => [ "id" => "RO","type" => "txt" ],"description" => [ "id" => "DE","type" => "txt" ],"city" => [ "id" => "CI","type" => "txt" ], ] ];