Person: Difference between revisions
From SemanticOrganization
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Semorg-generator | {{Semorg-generator | ||
|template-id=P | |template-id=P | ||
|form-unique-number=No | |form-unique-number=No | ||
|template-fields={{semorg-generator-field | |template-fields={{semorg-generator-field | ||
|id=ref | |id=ref | ||
|property-id=RF | |property-id=RF | ||
|type=wpg | |type=wpg | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=prefix | |id=prefix | ||
|property-id=PF | |property-id=PF | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=firstname | |id=firstname | ||
|property-id=FN | |property-id=FN | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=lastname | |id=lastname | ||
|property-id=LN | |property-id=LN | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=suffix | |id=suffix | ||
|property-id=SF | |property-id=SF | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=name | |id=name | ||
|property-id=NA | |property-id=NA | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=email | |id=email | ||
|property-id=EM | |property-id=EM | ||
|type=ema | |type=ema | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=worklocality | |id=worklocality | ||
|property-id=WLO | |property-id=WLO | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=workstreet | |id=workstreet | ||
|property-id=WST | |property-id=WST | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=workpostalcode | |id=workpostalcode | ||
|property-id=WPC | |property-id=WPC | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=workphone | |id=workphone | ||
|property-id=WPH | |property-id=WPH | ||
|type=tel | |type=tel | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=workaddress | |id=workaddress | ||
|property-id=WAD | |property-id=WAD | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=homepage | |id=homepage | ||
|property-id=HP | |property-id=HP | ||
|type=uri | |type=uri | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=organization | |id=organization | ||
|property-id=OR | |property-id=OR | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=note | |id=note | ||
|property-id=NT | |property-id=NT | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=gender | |id=gender | ||
|property-id=GD | |property-id=GD | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=birthday | |id=birthday | ||
|property-id=BD | |property-id=BD | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=birthplace | |id=birthplace | ||
|property-id=BP | |property-id=BP | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=iban | |id=iban | ||
|property-id=IB | |property-id=IB | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=membership | |id=membership | ||
|property-id=ME | |property-id=ME | ||
|type=boo | |type=boo | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=membership-number | |id=membership-number | ||
|property-id=MEN | |property-id=MEN | ||
|type=num | |type=num | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=membership-start | |id=membership-start | ||
|property-id=MES | |property-id=MES | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=membership-end | |id=membership-end | ||
|property-id=MEE | |property-id=MEE | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=personnel | |id=personnel | ||
|property-id=PE | |property-id=PE | ||
|type=boo | |type=boo | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=personnel-number | |id=personnel-number | ||
|property-id=PEN | |property-id=PEN | ||
|type=num | |type=num | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=personnel-start | |id=personnel-start | ||
|property-id=PES | |property-id=PES | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=personnel-end | |id=personnel-end | ||
|property-id=PEE | |property-id=PEE | ||
|type=dat | |type=dat | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=ssn | |id=ssn | ||
|property-id=SS | |property-id=SS | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=legal-form | |id=legal-form | ||
|property-id=LF | |property-id=LF | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=legal-registry | |id=legal-registry | ||
|property-id=LR | |property-id=LR | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=tag | |id=tag | ||
|property-id=TA | |property-id=TA | ||
|name=Tags | |name=Tags | ||
|type=txt | |type=txt | ||
|parameters=input type=tokens,values from property=Semorg-person-tag | |parameters=input type=tokens,values from property=Semorg-person-tag | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=vat-number | |id=vat-number | ||
|property-id=VAT | |property-id=VAT | ||
|name=VAT identification number | |name=VAT identification number | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=profession | |id=profession | ||
|property-id=PR | |property-id=PR | ||
|name=profession | |name=profession | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=tax-number | |id=tax-number | ||
|property-id=TN | |property-id=TN | ||
|name=Tax number | |name=Tax number | ||
|type=txt | |type=txt | ||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=acronym | |id=acronym | ||
|property-id=AC | |property-id=AC | ||
|name=Acronym | |name=Acronym | ||
|type=txt | |type=txt | ||
|parameters=size=10 | |parameters=size=10 | ||
| | }}{{semorg-generator-field | ||
|id=category | |||
|property-id=CA | |||
|name=Category | |||
|type=txt | |||
}}{{semorg-generator-field | }}{{semorg-generator-field | ||
|id=topic | |id=topic | ||
|property-id=TO | |property-id=TO | ||
|name=Topic | |name=Topic | ||
|type=wpg | |type=wpg | ||
|parameters=input type=checkboxes,values from category=semorg-topic,mapping property=Semorg-topic-name,list | |parameters=input type=checkboxes,values from category=semorg-topic,mapping property=Semorg-topic-name,list | ||
}} | }} | ||
}} | }} |
Revision as of 21:14, 7 September 2020
Messages
"semorg-person-template": "semorg-person", "semorg-person-category": "semorg-person", "semorg-person-form": "semorg-person", "semorg-form-person-create-title": "Create Person", "semorg-form-person-edit-title": "Edit Person", "semorg-form-person-template": "person", "semorg-form-person-rows": "email, workaddress, mentor, vat-number, personnel-number, birthplace, gender, tax-number, picture, prefix, personnel-start, suffix, legal-registry, lastname, note, workstreet, firstname, workcountry, membership-number, category, ref, membership, target-group, topic, worklocality, membership-end, children, workpostalcode, membership-start, birthday, iban, personnel, homepage, profession, name, legal-form, ssn, acronym, tag, personnel-end, organization, workphone", "semorg-list-person-headers": "person-email, person-workaddress, person-mentor, person-vat-number, person-personnel-number, person-birthplace, person-gender, person-tax-number, person-picture, person-prefix, person-personnel-start, person-suffix, person-legal-registry, person-lastname, person-note, person-workstreet, person-firstname, person-workcountry, person-membership-number, person-category, person-ref, person-membership, person-target-group, person-topic, person-worklocality, person-membership-end, person-children, person-workpostalcode, person-membership-start, person-birthday, person-iban, person-personnel, person-homepage, person-profession, person-name, person-legal-form, person-ssn, person-acronym, person-tag, person-personnel-end, person-organization, person-workphone", "semorg-field-person-acronym-name": "Acronym", "semorg-field-person-acronym-parameters": "size=10", "semorg-field-person-birthday-name": "", "semorg-field-person-birthday-parameters": "", "semorg-field-person-birthplace-name": "", "semorg-field-person-birthplace-parameters": "", "semorg-field-person-category-name": "Category", "semorg-field-person-category-parameters": "", "semorg-field-person-children-name": "Children", "semorg-field-person-children-parameters": "", "semorg-field-person-email-name": "", "semorg-field-person-email-parameters": "", "semorg-field-person-firstname-name": "", "semorg-field-person-firstname-parameters": "", "semorg-field-person-gender-name": "", "semorg-field-person-gender-parameters": "", "semorg-field-person-homepage-name": "", "semorg-field-person-homepage-parameters": "", "semorg-field-person-iban-name": "", "semorg-field-person-iban-parameters": "", "semorg-field-person-lastname-name": "", "semorg-field-person-lastname-parameters": "", "semorg-field-person-legal-form-name": "", "semorg-field-person-legal-form-parameters": "", "semorg-field-person-legal-registry-name": "", "semorg-field-person-legal-registry-parameters": "", "semorg-field-person-membership-name": "", "semorg-field-person-membership-parameters": "", "semorg-field-person-membership-end-name": "", "semorg-field-person-membership-end-parameters": "", "semorg-field-person-membership-number-name": "", "semorg-field-person-membership-number-parameters": "", "semorg-field-person-membership-start-name": "", "semorg-field-person-membership-start-parameters": "", "semorg-field-person-mentor-name": "Mentor", "semorg-field-person-mentor-parameters": "", "semorg-field-person-mentor-input-type": "combobox", "semorg-field-person-name-name": "", "semorg-field-person-name-parameters": "", "semorg-field-person-note-name": "", "semorg-field-person-note-parameters": "", "semorg-field-person-organization-name": "", "semorg-field-person-organization-parameters": "", "semorg-field-person-personnel-name": "", "semorg-field-person-personnel-parameters": "", "semorg-field-person-personnel-end-name": "", "semorg-field-person-personnel-end-parameters": "", "semorg-field-person-personnel-number-name": "", "semorg-field-person-personnel-number-parameters": "", "semorg-field-person-personnel-start-name": "", "semorg-field-person-personnel-start-parameters": "", "semorg-field-person-picture-name": "Picture", "semorg-field-person-picture-parameters": "", "semorg-field-person-prefix-name": "", "semorg-field-person-prefix-parameters": "", "semorg-field-person-profession-name": "profession", "semorg-field-person-profession-parameters": "", "semorg-field-person-ref-name": "", "semorg-field-person-ref-parameters": "", "semorg-field-person-ssn-name": "", "semorg-field-person-ssn-parameters": "", "semorg-field-person-suffix-name": "", "semorg-field-person-suffix-parameters": "", "semorg-field-person-tag-name": "Tags", "semorg-field-person-tag-parameters": "input type=tokens|values from property=Semorg-person-tag", "semorg-field-person-target-group-name": "Target Group", "semorg-field-person-target-group-parameters": "", "semorg-field-person-tax-number-name": "Tax number", "semorg-field-person-tax-number-parameters": "", "semorg-field-person-topic-name": "Topic", "semorg-field-person-topic-parameters": "input type=checkboxes|values from category=semorg-topic|mapping property=Semorg-topic-name|list", "semorg-field-person-vat-number-name": "VAT identification number", "semorg-field-person-vat-number-parameters": "", "semorg-field-person-workaddress-name": "", "semorg-field-person-workaddress-parameters": "", "semorg-field-person-workcountry-name": "", "semorg-field-person-workcountry-parameters": "", "semorg-field-person-worklocality-name": "", "semorg-field-person-worklocality-parameters": "", "semorg-field-person-workphone-name": "", "semorg-field-person-workphone-parameters": "", "semorg-field-person-workpostalcode-name": "", "semorg-field-person-workpostalcode-parameters": "", "semorg-field-person-workstreet-name": "", "semorg-field-person-workstreet-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-person-create-title}} |edit title={{int:semorg-form-person-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|person}} {{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|person|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-person-category}}]]{{#semorg-set:person |email={{{email|}}} |workaddress={{{workaddress|}}} |mentor={{{mentor|}}} |vat-number={{{vat-number|}}} |personnel-number={{{personnel-number|}}} |birthplace={{{birthplace|}}} |gender={{{gender|}}} |tax-number={{{tax-number|}}} |picture={{{picture|}}} |prefix={{{prefix|}}} |personnel-start={{{personnel-start|}}} |suffix={{{suffix|}}} |legal-registry={{{legal-registry|}}} |lastname={{{lastname|}}} |note={{{note|}}} |workstreet={{{workstreet|}}} |firstname={{{firstname|}}} |workcountry={{{workcountry|}}} |membership-number={{{membership-number|}}} |category={{{category|}}} |ref={{{ref|}}} |membership={{{membership|}}} |target-group={{{target-group|}}} |topic={{{topic|}}} |worklocality={{{worklocality|}}} |membership-end={{{membership-end|}}} |children={{{children|}}} |workpostalcode={{{workpostalcode|}}} |membership-start={{{membership-start|}}} |birthday={{{birthday|}}} |iban={{{iban|}}} |personnel={{{personnel|}}} |homepage={{{homepage|}}} |profession={{{profession|}}} |name={{{name|}}} |legal-form={{{legal-form|}}} |ssn={{{ssn|}}} |acronym={{{acronym|}}} |tag={{{tag|}}} |personnel-end={{{personnel-end|}}} |organization={{{organization|}}} |workphone={{{workphone|}}} }}{{#semorg-detail:person}}{{#semorg-table:person |email={{{email|}}} |workaddress={{{workaddress|}}} |mentor={{{mentor|}}} |vat-number={{{vat-number|}}} |personnel-number={{{personnel-number|}}} |birthplace={{{birthplace|}}} |gender={{{gender|}}} |tax-number={{{tax-number|}}} |picture={{{picture|}}} |prefix={{{prefix|}}} |personnel-start={{{personnel-start|}}} |suffix={{{suffix|}}} |legal-registry={{{legal-registry|}}} |lastname={{{lastname|}}} |note={{{note|}}} |workstreet={{{workstreet|}}} |firstname={{{firstname|}}} |workcountry={{{workcountry|}}} |membership-number={{{membership-number|}}} |category={{{category|}}} |ref={{{ref|}}} |membership={{{membership|}}} |target-group={{{target-group|}}} |topic={{{topic|}}} |worklocality={{{worklocality|}}} |membership-end={{{membership-end|}}} |children={{{children|}}} |workpostalcode={{{workpostalcode|}}} |membership-start={{{membership-start|}}} |birthday={{{birthday|}}} |iban={{{iban|}}} |personnel={{{personnel|}}} |homepage={{{homepage|}}} |profession={{{profession|}}} |name={{{name|}}} |legal-form={{{legal-form|}}} |ssn={{{ssn|}}} |acronym={{{acronym|}}} |tag={{{tag|}}} |personnel-end={{{personnel-end|}}} |organization={{{organization|}}} |workphone={{{workphone|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{email|}}}</td> <td>{{{workaddress|}}}</td> <td>{{{mentor|}}}</td> <td>{{{vat-number|}}}</td> <td>{{{personnel-number|}}}</td> <td>{{{birthplace|}}}</td> <td>{{{gender|}}}</td> <td>{{{tax-number|}}}</td> <td>{{{picture|}}}</td> <td>{{{prefix|}}}</td> <td>{{{personnel-start|}}}</td> <td>{{{suffix|}}}</td> <td>{{{legal-registry|}}}</td> <td>{{{lastname|}}}</td> <td>{{{note|}}}</td> <td>{{{workstreet|}}}</td> <td>{{{firstname|}}}</td> <td>{{{workcountry|}}}</td> <td>{{{membership-number|}}}</td> <td>{{{category|}}}</td> <td>{{{ref|}}}</td> <td>{{{membership|}}}</td> <td>{{{target-group|}}}</td> <td>{{{topic|}}}</td> <td>{{{worklocality|}}}</td> <td>{{{membership-end|}}}</td> <td>{{{children|}}}</td> <td>{{{workpostalcode|}}}</td> <td>{{{membership-start|}}}</td> <td>{{{birthday|}}}</td> <td>{{{iban|}}}</td> <td>{{{personnel|}}}</td> <td>{{{homepage|}}}</td> <td>{{{profession|}}}</td> <td>{{{name|}}}</td> <td>{{{legal-form|}}}</td> <td>{{{ssn|}}}</td> <td>{{{acronym|}}}</td> <td>{{{tag|}}}</td> <td>{{{personnel-end|}}}</td> <td>{{{organization|}}}</td> <td>{{{workphone|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-person-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:person |heading={{int:semorg-person-page-name}} |formlink={{#semorg-forminput:person}} |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-person-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['person'] = [ "id" => "P","fields" => ["email" => [ "id" => "EM","type" => "ema" ],"workaddress" => [ "id" => "WAD","type" => "txt" ],"mentor" => [ "id" => "MT","type" => "wpg" ],"vat-number" => [ "id" => "VAT","type" => "txt" ],"personnel-number" => [ "id" => "PEN","type" => "num" ],"birthplace" => [ "id" => "BP","type" => "txt" ],"gender" => [ "id" => "GD","type" => "txt" ],"tax-number" => [ "id" => "TN","type" => "txt" ],"picture" => [ "id" => "PI","type" => "wpg" ],"prefix" => [ "id" => "PF","type" => "txt" ],"personnel-start" => [ "id" => "PES","type" => "dat" ],"suffix" => [ "id" => "SF","type" => "txt" ],"legal-registry" => [ "id" => "LR","type" => "txt" ],"lastname" => [ "id" => "LN","type" => "txt" ],"note" => [ "id" => "NT","type" => "txt" ],"workstreet" => [ "id" => "WST","type" => "txt" ],"firstname" => [ "id" => "FN","type" => "txt" ],"workcountry" => [ "id" => "WCO","type" => "txt" ],"membership-number" => [ "id" => "MEN","type" => "num" ],"category" => [ "id" => "CA","type" => "txt" ],"ref" => [ "id" => "RF","type" => "wpg" ],"membership" => [ "id" => "ME","type" => "boo" ],"target-group" => [ "id" => "TG","type" => "wpg" ],"topic" => [ "id" => "TO","type" => "wpg" ],"worklocality" => [ "id" => "WLO","type" => "txt" ],"membership-end" => [ "id" => "MEE","type" => "dat" ],"children" => [ "id" => "CH","type" => "txt" ],"workpostalcode" => [ "id" => "WPC","type" => "txt" ],"membership-start" => [ "id" => "MES","type" => "dat" ],"birthday" => [ "id" => "BD","type" => "dat" ],"iban" => [ "id" => "IB","type" => "txt" ],"personnel" => [ "id" => "PE","type" => "boo" ],"homepage" => [ "id" => "HP","type" => "uri" ],"profession" => [ "id" => "PR","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"legal-form" => [ "id" => "LF","type" => "txt" ],"ssn" => [ "id" => "SS","type" => "txt" ],"acronym" => [ "id" => "AC","type" => "txt" ],"tag" => [ "id" => "TA","type" => "txt" ],"personnel-end" => [ "id" => "PEE","type" => "dat" ],"organization" => [ "id" => "OR","type" => "txt" ],"workphone" => [ "id" => "WPH","type" => "tel" ], ] ];