Gdpr-category
From SemanticOrganization
Messages
"semorg-gdpr-category-template": "semorg-gdpr-category", "semorg-gdpr-category-category": "semorg-gdpr-category", "semorg-gdpr-category-form": "semorg-gdpr-category", "semorg-form-gdpr-category-create-title": "Create Gdpr-category", "semorg-form-gdpr-category-edit-title": "Edit Gdpr-category", "semorg-form-gdpr-category-page-name": "Datenkategorie", "semorg-form-gdpr-category-template": "gdpr-category", "semorg-form-gdpr-category-rows": "affected, prosecution, name, erase-time, sensitive", "semorg-list-gdpr-category-headers": "gdpr-category-affected, gdpr-category-prosecution, gdpr-category-name, gdpr-category-erase-time, gdpr-category-sensitive", "semorg-field-gdpr-category-affected-name": "", "semorg-field-gdpr-category-affected-parameters": "", "semorg-field-gdpr-category-erase-time-name": "", "semorg-field-gdpr-category-erase-time-parameters": "", "semorg-field-gdpr-category-name-name": "", "semorg-field-gdpr-category-name-parameters": "", "semorg-field-gdpr-category-prosecution-name": "", "semorg-field-gdpr-category-prosecution-parameters": "", "semorg-field-gdpr-category-sensitive-name": "", "semorg-field-gdpr-category-sensitive-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info |create title={{int:semorg-form-gdpr-category-create-title}} |edit title={{int:semorg-form-gdpr-category-edit-title}}<span class="d-none">: <page name></span> |page name={{int:semorg-form-gdpr-category-page-name}}/<unique number;start=1> }}} {{semorg-form-template|gdpr-category}} {{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|gdpr-category|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-gdpr-category-category}}]]{{#semorg-set:gdpr-category |affected={{{affected|}}} |prosecution={{{prosecution|}}} |name={{{name|}}} |erase-time={{{erase-time|}}} |sensitive={{{sensitive|}}} }}{{#semorg-detail:gdpr-category}}{{#semorg-table:gdpr-category |affected={{{affected|}}} |prosecution={{{prosecution|}}} |name={{{name|}}} |erase-time={{{erase-time|}}} |sensitive={{{sensitive|}}} }}</includeonly>
Row Template
Template:Semorg-gdpr-category-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr> <td>[[{{{target|}}}]]</td> <td>{{{affected|}}}</td> <td>{{{prosecution|}}}</td> <td>{{{name|}}}</td> <td>{{{erase-time|}}}</td> <td>{{{sensitive|}}}</td> {{semorg-showedit |target={{{target|}}} }} </tr></includeonly>
Overview Page Template
Template:Semorg-gdpr-category-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:gdpr-category |heading={{int:semorg-gdpr-category-page-name}} |formlink={{#semorg-formlink:gdpr-category}} |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-gdpr-category-overview}}
Property Registration
Add the following line to LocalSettings.php
:
$wgSemorgAdditionalProperties['gdpr-category'] = [ "id" => "GC","fields" => ["affected" => [ "id" => "AF","type" => "wpg" ],"prosecution" => [ "id" => "PR","type" => "boo" ],"name" => [ "id" => "NA","type" => "txt" ],"erase-time" => [ "id" => "ET","type" => "txt" ],"sensitive" => [ "id" => "SE","type" => "boo" ], ] ];