Ansprechperson: Unterschied zwischen den Versionen
Aus mobil-am-land.at
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | + | {{semorg-generator | |
|template-id=AP | |template-id=AP | ||
|form-add-button-text=Ansprechperson hinzufügen | |form-add-button-text=Ansprechperson hinzufügen | ||
Zeile 8: | Zeile 8: | ||
|name=Name | |name=Name | ||
|type=txt | |type=txt | ||
− | |fields=vorname,nachname | + | |fields=prefix,vorname,nachname,suffix |
+ | }}{{semorg-generator-field | ||
+ | |id=prefix | ||
+ | |property-id=PR | ||
+ | |type=txt | ||
+ | |size=5 | ||
+ | }}{{semorg-generator-field | ||
+ | |id=suffix | ||
+ | |property-id=SU | ||
+ | |type=txt | ||
+ | |size=5 | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=vorname | |id=vorname | ||
Zeile 15: | Zeile 25: | ||
|type=txt | |type=txt | ||
|size=20 | |size=20 | ||
+ | |placeholder=Vorname | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=nachname | |id=nachname | ||
Zeile 21: | Zeile 32: | ||
|type=txt | |type=txt | ||
|size=20 | |size=20 | ||
+ | |placeholder=Nachname | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=ansprechperson-fuer | |id=ansprechperson-fuer | ||
Zeile 26: | Zeile 38: | ||
|name=Ansprechperson für | |name=Ansprechperson für | ||
|type=wpg | |type=wpg | ||
+ | }}{{semorg-generator-field | ||
+ | |id=email | ||
+ | |property-id=EM | ||
+ | |name=E-Mail-Adresse | ||
+ | |type=ema | ||
+ | }}{{semorg-generator-field | ||
+ | |id=telefon | ||
+ | |property-id=TE | ||
+ | |name=Telefonnummer | ||
+ | |type=tel | ||
+ | }}{{semorg-generator-field | ||
+ | |id=organisation | ||
+ | |property-id=OR | ||
+ | |name=Organisation | ||
+ | |type=txt | ||
+ | }}{{semorg-generator-field | ||
+ | |id=zustaendigkeit | ||
+ | |property-id=ZU | ||
+ | |name=Zuständigkeit | ||
+ | |type=txt | ||
+ | |input-type=textarea | ||
+ | |parameters=rows=1 | ||
+ | }}{{semorg-generator-field | ||
+ | |id=webseite | ||
+ | |property-id=WE | ||
+ | |name=Webseite | ||
+ | |type=uri | ||
+ | }}{{semorg-generator-field | ||
+ | |id=position | ||
+ | |property-id=PO | ||
+ | |name=Position | ||
+ | |type=num | ||
}} | }} | ||
}} | }} | ||
+ | {{handbuch-bundle}} |
Aktuelle Version vom 15. November 2022, 14:15 Uhr
Messages[ ]
"semorg-form-ansprechperson-add-button-text": "Ansprechperson hinzufügen", "semorg-form-ansprechperson-template": "ansprechperson", "semorg-form-ansprechperson-rows": "prefix, vorname, organisation, name, email, telefon, position, suffix, webseite, zustaendigkeit, nachname, ansprechperson-fuer", "semorg-list-ansprechperson-headers": "ansprechperson-prefix, ansprechperson-vorname, ansprechperson-organisation, ansprechperson-name, ansprechperson-email, ansprechperson-telefon, ansprechperson-position, ansprechperson-suffix, ansprechperson-webseite, ansprechperson-zustaendigkeit, ansprechperson-nachname, ansprechperson-ansprechperson-fuer", "semorg-field-ansprechperson-ansprechperson-fuer-name": "Ansprechperson für", "semorg-field-ansprechperson-ansprechperson-fuer-parameters": "", "semorg-field-ansprechperson-email-name": "E-Mail-Adresse", "semorg-field-ansprechperson-email-parameters": "", "semorg-field-ansprechperson-nachname-name": "Nachname", "semorg-field-ansprechperson-nachname-parameters": "", "semorg-field-ansprechperson-nachname-size": "20", "semorg-field-ansprechperson-nachname-placeholder": "Nachname", "semorg-field-ansprechperson-name-name": "Name", "semorg-field-ansprechperson-name-fields": "prefix,vorname,nachname,suffix", "semorg-field-ansprechperson-organisation-name": "Organisation", "semorg-field-ansprechperson-organisation-parameters": "", "semorg-field-ansprechperson-position-name": "Position", "semorg-field-ansprechperson-position-parameters": "", "semorg-field-ansprechperson-prefix-name": "", "semorg-field-ansprechperson-prefix-parameters": "", "semorg-field-ansprechperson-prefix-size": "5", "semorg-field-ansprechperson-suffix-name": "", "semorg-field-ansprechperson-suffix-parameters": "", "semorg-field-ansprechperson-suffix-size": "5", "semorg-field-ansprechperson-telefon-name": "Telefonnummer", "semorg-field-ansprechperson-telefon-parameters": "", "semorg-field-ansprechperson-vorname-name": "Vorname", "semorg-field-ansprechperson-vorname-parameters": "", "semorg-field-ansprechperson-vorname-size": "20", "semorg-field-ansprechperson-vorname-placeholder": "Vorname", "semorg-field-ansprechperson-webseite-name": "Webseite", "semorg-field-ansprechperson-webseite-parameters": "", "semorg-field-ansprechperson-zustaendigkeit-name": "Zuständigkeit", "semorg-field-ansprechperson-zustaendigkeit-parameters": "rows=1", "semorg-field-ansprechperson-zustaendigkeit-input-type": "textarea",
Form[ ]
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-ansprechperson-create-title}} |edit title={{int:semorg-form-ansprechperson-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|ansprechperson}} {{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|ansprechperson|}}
Category[ ]
Category:Semorg-ansprechperson
{{semorg-category}}
Template[ ]
Template:Semorg-ansprechperson
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-ansprechperson-category}}]]{{#semorg-set:ansprechperson |prefix={{{prefix|}}} |vorname={{{vorname|}}} |organisation={{{organisation|}}} |name={{{name|}}} |email={{{email|}}} |telefon={{{telefon|}}} |position={{{position|}}} |suffix={{{suffix|}}} |webseite={{{webseite|}}} |zustaendigkeit={{{zustaendigkeit|}}} |nachname={{{nachname|}}} |ansprechperson-fuer={{{ansprechperson-fuer|}}} }}{{#semorg-detail:ansprechperson}}{{#semorg-table:ansprechperson |prefix={{{prefix|}}} |vorname={{{vorname|}}} |organisation={{{organisation|}}} |name={{{name|}}} |email={{{email|}}} |telefon={{{telefon|}}} |position={{{position|}}} |suffix={{{suffix|}}} |webseite={{{webseite|}}} |zustaendigkeit={{{zustaendigkeit|}}} |nachname={{{nachname|}}} |ansprechperson-fuer={{{ansprechperson-fuer|}}} }}</includeonly>
Row Template[ ]
Template:Semorg-ansprechperson-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{prefix|}}}</td> <td>{{{vorname|}}}</td> <td>{{{organisation|}}}</td> <td>{{{name|}}}</td> <td>{{{email|}}}</td> <td>{{{telefon|}}}</td> <td>{{{position|}}}</td> <td>{{{suffix|}}}</td> <td>{{{webseite|}}}</td> <td>{{{zustaendigkeit|}}}</td> <td>{{{nachname|}}}</td> <td>{{{ansprechperson-fuer|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template[ ]
Template:Semorg-ansprechperson-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:ansprechperson |heading={{int:semorg-ansprechperson-page-name}} |formlink={{#semorg-forminput:ansprechperson}} |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-ansprechperson-overview}}
Property Registration[ ]
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['ansprechperson'] = [ "id" => "AP","fields" => ["prefix" => [ "id" => "PR","type" => "txt" ],"vorname" => [ "id" => "VN","type" => "txt" ],"organisation" => [ "id" => "OR","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"email" => [ "id" => "EM","type" => "ema" ],"telefon" => [ "id" => "TE","type" => "tel" ],"position" => [ "id" => "PO","type" => "num" ],"suffix" => [ "id" => "SU","type" => "txt" ],"webseite" => [ "id" => "WE","type" => "uri" ],"zustaendigkeit" => [ "id" => "ZU","type" => "txt" ],"nachname" => [ "id" => "NN","type" => "txt" ],"ansprechperson-fuer" => [ "id" => "AF","type" => "wpg" ], ] ];