Event
From Dreams Knowledge Platform
Messages
"semorg-event-template": "semorg-event", "semorg-event-category": "semorg-event", "semorg-event-form": "semorg-event", "semorg-event-page-name": "Events", "semorg-event-entity-name": "Event", "semorg-form-event-create-title": "Create Event", "semorg-form-event-edit-title": "Edit Event", "semorg-form-event-page-name": "Events", "semorg-form-event-template": "event", "semorg-form-event-rows": "name,country,city,date,description", "semorg-list-event-headers": "event-name,event-city,event-description,", "semorg-field-event-city-name": "City", "semorg-field-event-city-parameters": "", "semorg-field-event-country-name": "Country", "semorg-field-event-country-parameters": "", "semorg-field-event-date-name": "Date", "semorg-field-event-date-parameters": "", "semorg-field-event-date-input-type": "datepicker", "semorg-field-event-description-name": "Description", "semorg-field-event-description-parameters": "", "semorg-field-event-images-name": "Images", "semorg-field-event-images-parameters": "", "semorg-field-event-name-name": "Name", "semorg-field-event-name-parameters": "", "semorg-field-event-short-description-name": "Short Description", "semorg-field-event-short-description-parameters": "", "semorg-field-event-short-description-input-type": "textarea",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-event-create-title}}
|edit title={{int:semorg-form-event-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-event-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|event}}
{{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|event|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-event-category}}]]{{#semorg-set:event
|country={{{country|}}}
|date={{{date|}}}
|name={{{name|}}}
|short-description={{{short-description|}}}
|images={{{images|}}}
|city={{{city|}}}
|description={{{description|}}}
}}{{#semorg-detail:event}}{{#semorg-table:event
|country={{{country|}}}
|date={{{date|}}}
|name={{{name|}}}
|short-description={{{short-description|}}}
|images={{{images|}}}
|city={{{city|}}}
|description={{{description|}}}
}}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{country|}}}</td>
<td>{{{date|}}}</td>
<td>{{{name|}}}</td>
<td>{{{short-description|}}}</td>
<td>{{{images|}}}</td>
<td>{{{city|}}}</td>
<td>{{{description|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-event-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:event
|heading={{int:semorg-event-page-name}}
|formlink={{#semorg-formlink:event}}
|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-event-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['event'] = [ "id" => "EV","fields" => ["country" => [ "id" => "CO","type" => "txt" ],"date" => [ "id" => "DA","type" => "dat" ],"name" => [ "id" => "NM","type" => "txt" ],"short-description" => [ "id" => "SD","type" => "txt" ],"images" => [ "id" => "IM","type" => "txt" ],"city" => [ "id" => "CI","type" => "txt" ],"description" => [ "id" => "DC","type" => "txt" ], ] ];