Additional-service-category

From SmartHubs
Jump to: navigation, search


Messages

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

"semorg-form-additional-service-category-template": "additional-service-category",
"semorg-form-additional-service-category-rows": "name",
"semorg-list-additional-service-category-headers": "additional-service-category-name",
"semorg-field-additional-service-category-name-name": "Name", 
"semorg-field-additional-service-category-name-parameters": "mandatory",
"semorg-field-additional-service-category-note-name": "", 
"semorg-field-additional-service-category-note-parameters": "",
"semorg-field-additional-service-category-icon-name": "", 
"semorg-field-additional-service-category-icon-parameters": "",

Form

Form:Semorg-additional-service-category

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

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

Category:Semorg-additional-service-category

{{semorg-category}}

Template

Template:Semorg-additional-service-category

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

Row Template

Template:Semorg-additional-service-category-row

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

Overview Page Template

Template:Semorg-additional-service-category-overview

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

Property Registration

Add the following line to LocalSettings.php:

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