Provider

From SmartHubs
Jump to: navigation, search


Messages

"semorg-provider-template": "semorg-provider",
"semorg-provider-category": "semorg-provider",
"semorg-provider-form": "semorg-provider",
"semorg-provider-page-name": "Providers",
"semorg-provider-entity-name": "Provider",
"semorg-form-provider-create-title": "Create Provider",
"semorg-form-provider-edit-title": "Edit Provider", 
"semorg-form-provider-page-name": "Providers",

"semorg-form-provider-template": "provider",
"semorg-form-provider-rows": "name, website, description",
"semorg-list-provider-headers": "provider-name,provider-hubs",
"semorg-field-provider-name-name": "Name", 
"semorg-field-provider-name-parameters": "",
"semorg-field-provider-website-name": "Website", 
"semorg-field-provider-website-parameters": "",
"semorg-field-provider-description-name": "Description", 
"semorg-field-provider-description-parameters": "",

Form

Form:Semorg-provider

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

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

Category

Category:Semorg-provider

{{semorg-category}}

Template

Template:Semorg-provider

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

Row Template

Template:Semorg-provider-row

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

Overview Page Template

Template:Semorg-provider-overview

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

Providers

{{semorg-provider-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['provider'] = [ "id" => "PV","fields" => ["name" => [ "id" => "NA","type" => "txt" ],"website" => [ "id" => "WE","type" => "uri" ],"description" => [ "id" => "DE","type" => "txt" ], ] ];