Contact
From SemanticOrganization
Messages
"semorg-contact-template": "semorg-contact", "semorg-contact-category": "semorg-contact", "semorg-contact-form": "semorg-contact", "semorg-form-contact-create-title": "Create Kontakt", "semorg-form-contact-edit-title": "Edit Kontakt", "semorg-form-contact-page-name": "Kontakthistorie", "semorg-form-contact-template": "contact", "semorg-form-contact-rows": "location, time, contact, ref, type, participant, date, subject, details", "semorg-list-contact-headers": "contact-location, contact-time, contact-contact, contact-ref, contact-type, contact-participant, contact-date, contact-subject, contact-details", "semorg-field-contact-contact-name": "External Participants", "semorg-field-contact-contact-parameters": "input type=combobox|values from category=semorg-person-contact|mapping property=Semorg-person-name", "semorg-field-contact-date-name": "Date", "semorg-field-contact-date-parameters": "", "semorg-field-contact-details-name": "Details", "semorg-field-contact-details-parameters": "input type=textarea|autogrow|rows=1|cols=60", "semorg-field-contact-location-name": "Location", "semorg-field-contact-location-parameters": "", "semorg-field-contact-participant-name": "Internal Participants", "semorg-field-contact-participant-parameters": "input type=combobox|list|values from category=semorg-person-user|mapping property=Semorg-person-name", "semorg-field-contact-ref-name": "Reference", "semorg-field-contact-ref-parameters": "", "semorg-field-contact-subject-name": "Subject", "semorg-field-contact-subject-parameters": "input type=textarea|autogrow|rows=1|cols=60", "semorg-field-contact-time-name": "Time", "semorg-field-contact-time-parameters": "", "semorg-field-contact-type-name": "Type", "semorg-field-contact-type-parameters": "input type=dropdown|values=1-2-3-4|mapping template=semorg-mapping-contact-type",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-contact-create-title}}
|edit title={{int:semorg-form-contact-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-contact-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|contact}}
{{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|contact|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-contact-category}}]]{{#semorg-set:contact
|location={{{location|}}}
|time={{{time|}}}
|contact={{{contact|}}}
|ref={{{ref|}}}
|type={{{type|}}}
|participant={{{participant|}}}
|date={{{date|}}}
|subject={{{subject|}}}
|details={{{details|}}}
}}{{#semorg-detail:contact}}{{#semorg-table:contact
|location={{{location|}}}
|time={{{time|}}}
|contact={{{contact|}}}
|ref={{{ref|}}}
|type={{{type|}}}
|participant={{{participant|}}}
|date={{{date|}}}
|subject={{{subject|}}}
|details={{{details|}}}
}}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{location|}}}</td>
<td>{{{time|}}}</td>
<td>{{{contact|}}}</td>
<td>{{{ref|}}}</td>
<td>{{{type|}}}</td>
<td>{{{participant|}}}</td>
<td>{{{date|}}}</td>
<td>{{{subject|}}}</td>
<td>{{{details|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-contact-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:contact
|heading={{int:semorg-contact-page-name}}
|formlink={{#semorg-formlink:contact}}
|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-contact-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['contact'] = [ "id" => "CO","fields" => ["location" => [ "id" => "LO","type" => "txt" ],"time" => [ "id" => "TI","type" => "txt" ],"contact" => [ "id" => "CO","type" => "wpg" ],"ref" => [ "id" => "RE","type" => "wpg" ],"type" => [ "id" => "TY","type" => "txt" ],"participant" => [ "id" => "PA","type" => "wpg" ],"date" => [ "id" => "DA","type" => "dat" ],"subject" => [ "id" => "SU","type" => "txt" ],"details" => [ "id" => "DE","type" => "txt" ], ] ];