Role-holder: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
(Created page with "{{Semorg-generator |template-id=RH |form-add-button-text=Person hinzufügen |form-unique-number=No |template-fields={{Semorg-generator-field |field-id=role |field-property-id=...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
|form-add-button-text=Person hinzufügen
|form-add-button-text=Person hinzufügen
|form-unique-number=No
|form-unique-number=No
|template-fields={{Semorg-generator-field
|template-fields={{semorg-generator-field
|field-id=role
|id=role
|field-property-id=RO
|property-id=RO
|field-name=Rolle
|name=Rolle
|field-type=wpg
|type=wpg
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=holder
|id=holder
|field-property-id=HO
|property-id=HO
|field-name=Holder
|name=Holder
|field-type=wpg
|type=wpg
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=start-date
|id=start-date
|field-property-id=SD
|property-id=SD
|field-name=from
|name=from
|field-type=dat
|type=dat
}}{{Semorg-generator-field
}}{{semorg-generator-field
|field-id=end-date
|id=end-date
|field-property-id=ED
|property-id=ED
|field-name=until
|name=until
|field-type=dat
|type=dat
}}{{semorg-generator-field
|id=main-responsible
|property-id=MR
|type=boo
|suffix=Main Responsible
|parameters=input type=checkbox
}}
}}
}}
}}

Latest revision as of 15:06, 1 March 2020


Messages

"semorg-role-holder-template": "semorg-role-holder",
"semorg-form-role-holder-add-button-text": "Person hinzufügen",

"semorg-form-role-holder-template": "role-holder",
"semorg-form-role-holder-rows": "main-responsible, role, end-date, start-date, holder",
"semorg-list-role-holder-headers": "role-holder-main-responsible, role-holder-role, role-holder-end-date, role-holder-start-date, role-holder-holder",
"semorg-field-role-holder-end-date-name": "until", 
"semorg-field-role-holder-end-date-parameters": "",
"semorg-field-role-holder-holder-name": "Holder", 
"semorg-field-role-holder-holder-parameters": "",
"semorg-field-role-holder-main-responsible-name": "", 
"semorg-field-role-holder-main-responsible-parameters": "input type=checkbox", 
"semorg-field-role-holder-main-responsible-suffix": "Main Responsible",
"semorg-field-role-holder-role-name": "Rolle", 
"semorg-field-role-holder-role-parameters": "",
"semorg-field-role-holder-start-date-name": "from", 
"semorg-field-role-holder-start-date-parameters": "",

Form

Form:Semorg-role-holder

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
   |create title={{int:semorg-form-role-holder-create-title}}
   |edit title={{int:semorg-form-role-holder-edit-title}}<span class="d-none">: <page name></span>
   |page name=
}}}

{{semorg-form-template|role-holder}}
 
{{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|role-holder|}}

Category

Category:Semorg-role-holder

{{semorg-category}}

Template

Template:Semorg-role-holder

<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-holder-category}}]]{{#semorg-set:role-holder 
  |main-responsible={{{main-responsible|}}} 
  |role={{{role|}}} 
  |end-date={{{end-date|}}} 
  |start-date={{{start-date|}}} 
  |holder={{{holder|}}}
}}{{#semorg-detail:role-holder}}{{#semorg-table:role-holder 
  |main-responsible={{{main-responsible|}}} 
  |role={{{role|}}} 
  |end-date={{{end-date|}}} 
  |start-date={{{start-date|}}} 
  |holder={{{holder|}}}
}}</includeonly>

Row Template

Template:Semorg-role-holder-row

<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td> 
<td>{{{main-responsible|}}}</td> 
<td>{{{role|}}}</td> 
<td>{{{end-date|}}}</td> 
<td>{{{start-date|}}}</td> 
<td>{{{holder|}}}</td>
{{semorg-showedit
  |target={{{target|}}}
}}
</tr></includeonly>

Overview Page Template

Template:Semorg-role-holder-overview

<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:role-holder
  |heading={{int:semorg-role-holder-page-name}}
  |formlink={{#semorg-forminput:role-holder}}
  |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-role-holder-overview}}

Property Registration

Add the following line to LocalSettings.php:

$wgSemorgAdditionalProperties['role-holder'] = [ "id" => "RH","fields" => ["main-responsible" => [ "id" => "MR","type" => "boo" ],"role" => [ "id" => "RO","type" => "wpg" ],"end-date" => [ "id" => "ED","type" => "dat" ],"start-date" => [ "id" => "SD","type" => "dat" ],"holder" => [ "id" => "HO","type" => "wpg" ], ] ];