Person

From SemanticOrganization
Jump to: navigation, search


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": "workphone, tag, email, gender, firstname, name, ref, category, lastname, birthplace, homepage, acronym, organization, membership-number, topic, personnel, membership-start, workaddress, iban, suffix, picture, workstreet, profession, vat-number, legal-registry, worklocality, prefix, workcountry, personnel-number, birthday, legal-form, personnel-start, tax-number, note, membership-end, ssn, personnel-end, membership, workpostalcode",
"semorg-list-person-headers": "person-workphone, person-tag, person-email, person-gender, person-firstname, person-name, person-ref, person-category, person-lastname, person-birthplace, person-homepage, person-acronym, person-organization, person-membership-number, person-topic, person-personnel, person-membership-start, person-workaddress, person-iban, person-suffix, person-picture, person-workstreet, person-profession, person-vat-number, person-legal-registry, person-worklocality, person-prefix, person-workcountry, person-personnel-number, person-birthday, person-legal-form, person-personnel-start, person-tax-number, person-note, person-membership-end, person-ssn, person-personnel-end, person-membership, person-workpostalcode",
"semorg-field-person-workphone-name": "", 
"semorg-field-person-workphone-parameters": "",
"semorg-field-person-tag-name": "Tags", 
"semorg-field-person-tag-parameters": "input type=tokens|values from property=Semorg-person-tag",
"semorg-field-person-email-name": "", 
"semorg-field-person-email-parameters": "",
"semorg-field-person-gender-name": "", 
"semorg-field-person-gender-parameters": "",
"semorg-field-person-firstname-name": "", 
"semorg-field-person-firstname-parameters": "",
"semorg-field-person-name-name": "", 
"semorg-field-person-name-parameters": "",
"semorg-field-person-ref-name": "", 
"semorg-field-person-ref-parameters": "",
"semorg-field-person-category-name": "Category", 
"semorg-field-person-category-parameters": "",
"semorg-field-person-lastname-name": "", 
"semorg-field-person-lastname-parameters": "",
"semorg-field-person-birthplace-name": "", 
"semorg-field-person-birthplace-parameters": "",
"semorg-field-person-homepage-name": "", 
"semorg-field-person-homepage-parameters": "",
"semorg-field-person-acronym-name": "Acronym", 
"semorg-field-person-acronym-parameters": "size=10",
"semorg-field-person-organization-name": "", 
"semorg-field-person-organization-parameters": "",
"semorg-field-person-membership-number-name": "", 
"semorg-field-person-membership-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-personnel-name": "", 
"semorg-field-person-personnel-parameters": "",
"semorg-field-person-membership-start-name": "", 
"semorg-field-person-membership-start-parameters": "",
"semorg-field-person-workaddress-name": "", 
"semorg-field-person-workaddress-parameters": "",
"semorg-field-person-iban-name": "", 
"semorg-field-person-iban-parameters": "",
"semorg-field-person-suffix-name": "", 
"semorg-field-person-suffix-parameters": "",
"semorg-field-person-picture-name": "Picture", 
"semorg-field-person-picture-parameters": "",
"semorg-field-person-workstreet-name": "", 
"semorg-field-person-workstreet-parameters": "",
"semorg-field-person-profession-name": "profession", 
"semorg-field-person-profession-parameters": "",
"semorg-field-person-vat-number-name": "VAT identification number", 
"semorg-field-person-vat-number-parameters": "",
"semorg-field-person-legal-registry-name": "", 
"semorg-field-person-legal-registry-parameters": "",
"semorg-field-person-worklocality-name": "", 
"semorg-field-person-worklocality-parameters": "",
"semorg-field-person-prefix-name": "", 
"semorg-field-person-prefix-parameters": "",
"semorg-field-person-workcountry-name": "", 
"semorg-field-person-workcountry-parameters": "",
"semorg-field-person-personnel-number-name": "", 
"semorg-field-person-personnel-number-parameters": "",
"semorg-field-person-birthday-name": "", 
"semorg-field-person-birthday-parameters": "",
"semorg-field-person-legal-form-name": "", 
"semorg-field-person-legal-form-parameters": "",
"semorg-field-person-personnel-start-name": "", 
"semorg-field-person-personnel-start-parameters": "",
"semorg-field-person-tax-number-name": "Tax number", 
"semorg-field-person-tax-number-parameters": "",
"semorg-field-person-note-name": "", 
"semorg-field-person-note-parameters": "",
"semorg-field-person-membership-end-name": "", 
"semorg-field-person-membership-end-parameters": "",
"semorg-field-person-ssn-name": "", 
"semorg-field-person-ssn-parameters": "",
"semorg-field-person-personnel-end-name": "", 
"semorg-field-person-personnel-end-parameters": "",
"semorg-field-person-membership-name": "", 
"semorg-field-person-membership-parameters": "",
"semorg-field-person-workpostalcode-name": "", 
"semorg-field-person-workpostalcode-parameters": "",

Form

Form:Semorg-person

<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

Category:Semorg-person

{{semorg-category}}

Template

Template:Semorg-person

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-person-category}}]]{{#semorg-set:person 
  |workphone={{{workphone|}}} 
  |tag={{{tag|}}} 
  |email={{{email|}}} 
  |gender={{{gender|}}} 
  |firstname={{{firstname|}}} 
  |name={{{name|}}} 
  |ref={{{ref|}}} 
  |category={{{category|}}} 
  |lastname={{{lastname|}}} 
  |birthplace={{{birthplace|}}} 
  |homepage={{{homepage|}}} 
  |acronym={{{acronym|}}} 
  |organization={{{organization|}}} 
  |membership-number={{{membership-number|}}} 
  |topic={{{topic|}}} 
  |personnel={{{personnel|}}} 
  |membership-start={{{membership-start|}}} 
  |workaddress={{{workaddress|}}} 
  |iban={{{iban|}}} 
  |suffix={{{suffix|}}} 
  |picture={{{picture|}}} 
  |workstreet={{{workstreet|}}} 
  |profession={{{profession|}}} 
  |vat-number={{{vat-number|}}} 
  |legal-registry={{{legal-registry|}}} 
  |worklocality={{{worklocality|}}} 
  |prefix={{{prefix|}}} 
  |workcountry={{{workcountry|}}} 
  |personnel-number={{{personnel-number|}}} 
  |birthday={{{birthday|}}} 
  |legal-form={{{legal-form|}}} 
  |personnel-start={{{personnel-start|}}} 
  |tax-number={{{tax-number|}}} 
  |note={{{note|}}} 
  |membership-end={{{membership-end|}}} 
  |ssn={{{ssn|}}} 
  |personnel-end={{{personnel-end|}}} 
  |membership={{{membership|}}} 
  |workpostalcode={{{workpostalcode|}}}
}}{{#semorg-detail:person}}{{#semorg-table:person 
  |workphone={{{workphone|}}} 
  |tag={{{tag|}}} 
  |email={{{email|}}} 
  |gender={{{gender|}}} 
  |firstname={{{firstname|}}} 
  |name={{{name|}}} 
  |ref={{{ref|}}} 
  |category={{{category|}}} 
  |lastname={{{lastname|}}} 
  |birthplace={{{birthplace|}}} 
  |homepage={{{homepage|}}} 
  |acronym={{{acronym|}}} 
  |organization={{{organization|}}} 
  |membership-number={{{membership-number|}}} 
  |topic={{{topic|}}} 
  |personnel={{{personnel|}}} 
  |membership-start={{{membership-start|}}} 
  |workaddress={{{workaddress|}}} 
  |iban={{{iban|}}} 
  |suffix={{{suffix|}}} 
  |picture={{{picture|}}} 
  |workstreet={{{workstreet|}}} 
  |profession={{{profession|}}} 
  |vat-number={{{vat-number|}}} 
  |legal-registry={{{legal-registry|}}} 
  |worklocality={{{worklocality|}}} 
  |prefix={{{prefix|}}} 
  |workcountry={{{workcountry|}}} 
  |personnel-number={{{personnel-number|}}} 
  |birthday={{{birthday|}}} 
  |legal-form={{{legal-form|}}} 
  |personnel-start={{{personnel-start|}}} 
  |tax-number={{{tax-number|}}} 
  |note={{{note|}}} 
  |membership-end={{{membership-end|}}} 
  |ssn={{{ssn|}}} 
  |personnel-end={{{personnel-end|}}} 
  |membership={{{membership|}}} 
  |workpostalcode={{{workpostalcode|}}}
}}</includeonly>

Row Template

Template:Semorg-person-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{workphone|}}}</td> 
<td>{{{tag|}}}</td> 
<td>{{{email|}}}</td> 
<td>{{{gender|}}}</td> 
<td>{{{firstname|}}}</td> 
<td>{{{name|}}}</td> 
<td>{{{ref|}}}</td> 
<td>{{{category|}}}</td> 
<td>{{{lastname|}}}</td> 
<td>{{{birthplace|}}}</td> 
<td>{{{homepage|}}}</td> 
<td>{{{acronym|}}}</td> 
<td>{{{organization|}}}</td> 
<td>{{{membership-number|}}}</td> 
<td>{{{topic|}}}</td> 
<td>{{{personnel|}}}</td> 
<td>{{{membership-start|}}}</td> 
<td>{{{workaddress|}}}</td> 
<td>{{{iban|}}}</td> 
<td>{{{suffix|}}}</td> 
<td>{{{picture|}}}</td> 
<td>{{{workstreet|}}}</td> 
<td>{{{profession|}}}</td> 
<td>{{{vat-number|}}}</td> 
<td>{{{legal-registry|}}}</td> 
<td>{{{worklocality|}}}</td> 
<td>{{{prefix|}}}</td> 
<td>{{{workcountry|}}}</td> 
<td>{{{personnel-number|}}}</td> 
<td>{{{birthday|}}}</td> 
<td>{{{legal-form|}}}</td> 
<td>{{{personnel-start|}}}</td> 
<td>{{{tax-number|}}}</td> 
<td>{{{note|}}}</td> 
<td>{{{membership-end|}}}</td> 
<td>{{{ssn|}}}</td> 
<td>{{{personnel-end|}}}</td> 
<td>{{{membership|}}}</td> 
<td>{{{workpostalcode|}}}</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" => ["workphone" => [ "id" => "WPH","type" => "tel" ],"tag" => [ "id" => "TA","type" => "txt" ],"email" => [ "id" => "EM","type" => "ema" ],"gender" => [ "id" => "GD","type" => "txt" ],"firstname" => [ "id" => "FN","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"ref" => [ "id" => "RF","type" => "wpg" ],"category" => [ "id" => "CA","type" => "txt" ],"lastname" => [ "id" => "LN","type" => "txt" ],"birthplace" => [ "id" => "BP","type" => "txt" ],"homepage" => [ "id" => "HP","type" => "uri" ],"acronym" => [ "id" => "AC","type" => "txt" ],"organization" => [ "id" => "OR","type" => "txt" ],"membership-number" => [ "id" => "MEN","type" => "num" ],"topic" => [ "id" => "TO","type" => "wpg" ],"personnel" => [ "id" => "PE","type" => "boo" ],"membership-start" => [ "id" => "MES","type" => "dat" ],"workaddress" => [ "id" => "WAD","type" => "txt" ],"iban" => [ "id" => "IB","type" => "txt" ],"suffix" => [ "id" => "SF","type" => "txt" ],"picture" => [ "id" => "PI","type" => "wpg" ],"workstreet" => [ "id" => "WST","type" => "txt" ],"profession" => [ "id" => "PR","type" => "txt" ],"vat-number" => [ "id" => "VAT","type" => "txt" ],"legal-registry" => [ "id" => "LR","type" => "txt" ],"worklocality" => [ "id" => "WLO","type" => "txt" ],"prefix" => [ "id" => "PF","type" => "txt" ],"workcountry" => [ "id" => "WCO","type" => "txt" ],"personnel-number" => [ "id" => "PEN","type" => "num" ],"birthday" => [ "id" => "BD","type" => "dat" ],"legal-form" => [ "id" => "LF","type" => "txt" ],"personnel-start" => [ "id" => "PES","type" => "dat" ],"tax-number" => [ "id" => "TN","type" => "txt" ],"note" => [ "id" => "NT","type" => "txt" ],"membership-end" => [ "id" => "MEE","type" => "dat" ],"ssn" => [ "id" => "SS","type" => "txt" ],"personnel-end" => [ "id" => "PEE","type" => "dat" ],"membership" => [ "id" => "ME","type" => "boo" ],"workpostalcode" => [ "id" => "WPC","type" => "txt" ], ] ];