Role-holder

From SemanticOrganization
Revision as of 13:42, 21 November 2018 by Admin (talk | contribs) (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=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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" ], ] ];