Difference between revisions of "Additional-service"

From SmartHubs
Jump to: navigation, search
Line 20: Line 20:
 
|type=wpg
 
|type=wpg
 
|parameters=values from category=semorg-additional-service-category,mapping property=Semorg-additional-service-category-name
 
|parameters=values from category=semorg-additional-service-category,mapping property=Semorg-additional-service-category-name
 +
}}{{semorg-generator-field
 +
|id=note
 +
|property-id=NO
 +
|type=txt
 
}}
 
}}
 
}}
 
}}

Revision as of 09:11, 16 August 2021


Messages

"semorg-additional-service-template": "semorg-additional-service",
"semorg-additional-service-category": "semorg-additional-service",
"semorg-additional-service-form": "semorg-additional-service",
"semorg-additional-service-page-name": "Additional Services",
"semorg-additional-service-entity-name": "Additional Service",
"semorg-form-additional-service-create-title": "Create Additional Service",
"semorg-form-additional-service-edit-title": "Edit Additional Service", 
"semorg-form-additional-service-page-name": "Additional Services",

"semorg-form-additional-service-template": "additional-service",
"semorg-form-additional-service-rows": "name,category",
"semorg-list-additional-service-headers": "mode-name,mode-category",
"semorg-field-additional-service-category-name": "Category", 
"semorg-field-additional-service-category-parameters": "values from category=semorg-additional-service-category|mapping property=Semorg-additional-service-category-name",
"semorg-field-additional-service-icon-name": "", 
"semorg-field-additional-service-icon-parameters": "",
"semorg-field-additional-service-note-name": "", 
"semorg-field-additional-service-note-parameters": "",
"semorg-field-additional-service-name-name": "Name", 
"semorg-field-additional-service-name-parameters": "mandatory",

Form

Form:Semorg-additional-service

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

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

Category

Category:Semorg-additional-service

{{semorg-category}}

Template

Template:Semorg-additional-service

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-additional-service-category}}]]{{#semorg-set:additional-service 
  |category={{{category|}}} 
  |icon={{{icon|}}} 
  |note={{{note|}}} 
  |name={{{name|}}}
}}{{#semorg-detail:additional-service
  |heading={{{name}}}
}}{{#semorg-table:additional-service 
  |category={{{category|}}} 
  |icon={{{icon|}}} 
  |note={{{note|}}} 
  |name={{{name|}}}
}}</includeonly>

Row Template

Template:Semorg-additional-service-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{category|}}}</td> 
<td>{{{icon|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{name|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-additional-service-overview

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

Additional Services

{{semorg-additional-service-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['additional-service'] = [ "id" => "AS","fields" => ["category" => [ "id" => "CA","type" => "wpg" ],"icon" => [ "id" => "IC","type" => "txt" ],"note" => [ "id" => "NO","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ], ] ];