Role-ref
From SemanticOrganization
Messages
"semorg-role-ref-template": "semorg-role-ref", "semorg-role-ref-category": "semorg-role-ref", "semorg-role-ref-form": "semorg-role-ref", "semorg-form-role-ref-create-title": "Create Role-ref", "semorg-form-role-ref-edit-title": "Edit Role-ref", "semorg-form-role-ref-template": "role-ref", "semorg-form-role-ref-rows": "ref, role", "semorg-list-role-ref-headers": "role-ref-ref, role-ref-role", "semorg-field-role-ref-ref-name": "Verweis", "semorg-field-role-ref-ref-parameters": "", "semorg-field-role-ref-role-name": "Rolle", "semorg-field-role-ref-role-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-role-ref-create-title}} |edit title={{int:semorg-form-role-ref-edit-title}}<span class="d-none">: <page name></span> |page name= }}} {{semorg-form-template|role-ref}} {{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-ref|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-role-ref-category}}]]{{#semorg-set:role-ref |ref={{{ref|}}} |role={{{role|}}} }}{{#semorg-detail:role-ref}}{{#semorg-table:role-ref |ref={{{ref|}}} |role={{{role|}}} }}</includeonly>
Row Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{ref|}}}</td> <td>{{{role|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-role-ref-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:role-ref |heading={{int:semorg-role-ref-page-name}} |formlink={{#semorg-forminput:role-ref}} |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-ref-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['role-ref'] = [ "id" => "RR","fields" => ["ref" => [ "id" => "RE","type" => "wpg" ],"role" => [ "id" => "RO","type" => "wpg" ], ] ];